Merge pull request #14486 from woocommerce/fix/14484

Fix call to is_compound method
This commit is contained in:
Claudio Sanches 2017-04-18 18:29:57 -03:00 committed by GitHub
commit e034a69c98
1 changed files with 1 additions and 1 deletions

View File

@ -1351,7 +1351,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
// Remove non-compound taxes.
foreach ( $this->get_taxes() as $tax ) {
if ( $this->is_compound() ) {
if ( $tax->is_compound() ) {
continue;
}
$subtotal = $subtotal + $tax->get_tax_total() + $tax->get_shipping_tax_total();