Create a new transaction (sale) with line items and optional coupon
@CurrentUser decorator.
@CurrentUser('id')sum(price * quantity)discount = (coupon.percentage / 100) * subtotaltotal = subtotal - discount@CurrentUser decorator automatically extracts the user ID from the JWT token, so you don’t need to include it in the request body.