round mijireh shipping amount

This commit is contained in:
Mike Jolley 2014-02-26 15:53:32 +00:00
parent 41183d1663
commit d8f504849f
1 changed files with 2 additions and 2 deletions

View File

@ -264,10 +264,10 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway {
$mj_order->discount = $wc_order->get_total_discount();
if ( get_option( 'woocommerce_prices_include_tax' ) == 'yes' ) {
$mj_order->shipping = $wc_order->get_total_shipping() + $wc_order->get_shipping_tax();
$mj_order->shipping = round( $wc_order->get_total_shipping() + $wc_order->get_shipping_tax(), 2 );
$mj_order->show_tax = false;
} else {
$mj_order->shipping = $wc_order->get_total_shipping();
$mj_order->shipping = round( $wc_order->get_total_shipping(), 2 );
$mj_order->tax = $wc_order->get_total_tax();
}