The effect of the discount is not reflected in the sales invoice when the coupon code is applied.
Pricing rule on Transaction
Discount on: Net Amount
Coupon code applied: Shopping Cart
Discount is reflected in quotation and sales order as an additional discount in Additional Discounts and Coupon Code
When comes to invoices the discount amount is shown in the Additional Discount Amount. On save value reset to 0.