From 57c643c93e58275d8d6168c23e1fd4dc0541210e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 25 Jan 2016 15:18:49 +0000 Subject: [PATCH] [2.5] Round tax/tax refunded amounts on display. Closes #10162 --- includes/admin/meta-boxes/views/html-order-items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/views/html-order-items.php b/includes/admin/meta-boxes/views/html-order-items.php index 92d09ccb759..bb497900dba 100644 --- a/includes/admin/meta-boxes/views/html-order-items.php +++ b/includes/admin/meta-boxes/views/html-order-items.php @@ -172,7 +172,7 @@ if ( wc_tax_enabled() ) { label; ?>: get_total_tax_refunded_by_rate_id( $tax->rate_id ) ) > 0 ) { - echo '' . strip_tags( $tax->formatted_amount ) . ' ' . wc_price( $tax->amount - $refunded, array( 'currency' => $order->get_order_currency() ) ) . ''; + echo '' . strip_tags( $tax->formatted_amount ) . ' ' . wc_price( WC_Tax::round( $tax->amount, wc_get_price_decimals() ) - WC_Tax::round( $refunded, wc_get_price_decimals() ), array( 'currency' => $order->get_order_currency() ) ) . ''; } else { echo $tax->formatted_amount; }