Fix call to is_compound method

Fixes #14484
This commit is contained in:
Mike Jolley 2017-04-18 12:00:21 +01:00
parent 16345137e2
commit de016c6615
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();