This commit is contained in:
Ron Rennick 2020-02-05 07:50:02 -08:00 committed by GitHub
parent 64f9cd733b
commit 8e0a6a18fd
1 changed files with 1 additions and 1 deletions

View File

@ -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 );