| @@ 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"> |
|
| @@ 1110-1119 (lines=10) @@ | ||
| 1107 | <?php |
|
| 1108 | do_action( 'wpinv_display_after_subtotal', $invoice, $cols ); |
|
| 1109 | ||
| 1110 | if ( wpinv_discount( $invoice_id, false ) > 0 ) { |
|
| 1111 | do_action( 'wpinv_display_before_discount', $invoice, $cols ); |
|
| 1112 | ?> |
|
| 1113 | <tr class="row-discount"> |
|
| 1114 | <td class="rate" colspan="<?php echo ( $cols - 1 ); ?>"><?php wpinv_get_discount_label( wpinv_discount_code( $invoice_id ) ); ?>:</td> |
|
| 1115 | <td class="total"><?php echo wpinv_discount( $invoice_id, true, true ); ?></td> |
|
| 1116 | </tr> |
|
| 1117 | <?php |
|
| 1118 | do_action( 'wpinv_display_after_discount', $invoice, $cols ); |
|
| 1119 | } |
|
| 1120 | ||
| 1121 | if ( $use_taxes ) { |
|
| 1122 | do_action( 'wpinv_display_before_tax', $invoice, $cols ); |
|