cast tax amount to float (https://github.com/woocommerce/woocommerce-admin/pull/3656)
This commit is contained in:
parent
64f9cd733b
commit
8e0a6a18fd
|
@ -425,7 +425,7 @@ class DataStore extends ReportsDataStore implements DataStoreInterface {
|
|||
$tax_data = $order_item->get_taxes();
|
||||
foreach ( $order_taxes as $tax_item ) {
|
||||
$tax_item_id = $tax_item->get_rate_id();
|
||||
$tax_amount += isset( $tax_data['total'][ $tax_item_id ] ) ? $tax_data['total'][ $tax_item_id ] : 0;
|
||||
$tax_amount += isset( $tax_data['total'][ $tax_item_id ] ) ? (float) $tax_data['total'][ $tax_item_id ] : 0;
|
||||
}
|
||||
|
||||
$net_revenue = round( $order_item->get_total( 'edit' ), $decimals );
|
||||
|
|
Loading…
Reference in New Issue