Why are Refund totals removed from Invoice?
-
I noticed that the code specifically removes the Refund order total line items. Why is that?
// remove refund lines (shouldn't be in invoice) foreach ( $totals as $key => $total ) { if ( strpos($key, 'refund_') !== false ) { unset( $totals[$key] ); } }
After disabling the above code, the refund total line item does show up. But, the Order Total does not reflect the correct amount, i.e. it is not reduced by the amount of the refund.
I would like the invoice to reflect the refunds.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Why are Refund totals removed from Invoice?’ is closed to new replies.