Commit f694fa40 authored by Bastien Ho's avatar Bastien Ho :alien:
Browse files

shipping_tax can be a float

parent a91ab08c
Pipeline #34704 passed with stages
in 3 seconds
Showing with 2 additions and 1 deletion
+2 -1
......@@ -75,6 +75,7 @@ function woocommerce_accounting_export_data() {
$order_args = array(
'limit' => -1,
'type' => 'shop_order',
'status' => $order_status,
'orderby' => 'ID',
'order' => 'ASC',
......@@ -147,7 +148,7 @@ function woocommerce_accounting_export_data() {
$order->original_date = $order->piecedate;
$order->total_tax = (float) $wcOrder->get_total_tax();
$order->shipping_tax = (float) intval($wcOrder->get_shipping_tax());
$order->shipping_tax = (float) $wcOrder->get_shipping_tax();
$order->outcome = round($wcOrder->get_total(), $rounding_precision);
$order->income_tax = round($order->total_tax > $small_number ? $order->total_tax : 0, $rounding_precision) + round($order->shipping_tax > $small_number ? $order->shipping_tax : 0, $rounding_precision);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment