| @@ 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"> |
|
| @@ 1124-1133 (lines=10) @@ | ||
| 1121 | <?php |
|
| 1122 | do_action( 'wpinv_display_after_subtotal', $invoice, $cols ); |
|
| 1123 | ||
| 1124 | if ( wpinv_discount( $invoice_id, false ) > 0 ) { |
|
| 1125 | do_action( 'wpinv_display_before_discount', $invoice, $cols ); |
|
| 1126 | ?> |
|
| 1127 | <tr class="row-discount"> |
|
| 1128 | <td class="rate" colspan="<?php echo ( $cols - 1 ); ?>"><?php wpinv_get_discount_label( wpinv_discount_code( $invoice_id ) ); ?>:</td> |
|
| 1129 | <td class="total"><?php echo wpinv_discount( $invoice_id, true, true ); ?></td> |
|
| 1130 | </tr> |
|
| 1131 | <?php |
|
| 1132 | do_action( 'wpinv_display_after_discount', $invoice, $cols ); |
|
| 1133 | } |
|
| 1134 | ||
| 1135 | if ( $use_taxes ) { |
|
| 1136 | do_action( 'wpinv_display_before_tax', $invoice, $cols ); |
|