| @@ 129-140 (lines=12) @@ | ||
| 126 | </tr> |
|
| 127 | <?php } ?> |
|
| 128 | ||
| 129 | <?php if ( wpinv_discount( $invoice_id, false ) > 0 ) { ?> |
|
| 130 | <tr class="wpinv_cart_footer_row wpinv_cart_discount_row"> |
|
| 131 | <?php do_action( 'wpinv_receipt_items_table_discount_first', $cart_items, $invoice ); ?> |
|
| 132 | <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_discount_label text-right"> |
|
| 133 | <strong><?php wpinv_get_discount_label( wpinv_discount_code( $invoice_id ) ); ?>:</strong> |
|
| 134 | </td> |
|
| 135 | <td class="wpinv_cart_discount text-right"> |
|
| 136 | <span class="wpinv_cart_discount_amount"><?php echo wpinv_discount( $invoice_id, true, true ); ?></span> |
|
| 137 | </td> |
|
| 138 | <?php do_action( 'wpinv_receipt_items_table_discount_last', $cart_items, $invoice ); ?> |
|
| 139 | </tr> |
|
| 140 | <?php } ?> |
|
| 141 | ||
| 142 | <?php if ( !$zero_tax && $use_taxes && wpinv_is_cart_taxed() ) { ?> |
|
| 143 | <tr class="wpinv_cart_footer_row wpinv_cart_tax_row"> |
|
| @@ 1129-1138 (lines=10) @@ | ||
| 1126 | <?php |
|
| 1127 | do_action( 'wpinv_display_after_subtotal', $invoice, $cols ); |
|
| 1128 | ||
| 1129 | if ( wpinv_discount( $invoice_id, false ) > 0 ) { |
|
| 1130 | do_action( 'wpinv_display_before_discount', $invoice, $cols ); |
|
| 1131 | ?> |
|
| 1132 | <tr class="row-discount"> |
|
| 1133 | <td class="rate" colspan="<?php echo ( $cols - 1 ); ?>"><?php wpinv_get_discount_label( wpinv_discount_code( $invoice_id ) ); ?>:</td> |
|
| 1134 | <td class="total"><?php echo wpinv_discount( $invoice_id, true, true ); ?></td> |
|
| 1135 | </tr> |
|
| 1136 | <?php |
|
| 1137 | do_action( 'wpinv_display_after_discount', $invoice, $cols ); |
|
| 1138 | } |
|
| 1139 | ||
| 1140 | if ( $use_taxes ) { |
|
| 1141 | do_action( 'wpinv_display_before_tax', $invoice, $cols ); |
|