Skip to content

Commit

Permalink
Fix call to is_compound method
Browse files Browse the repository at this point in the history
Fixes #14484
  • Loading branch information
mikejolley authored and claudiosanches committed Apr 20, 2017
1 parent e89ec0f commit 28136bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/abstracts/abstract-wc-order.php
Expand Up @@ -1351,7 +1351,7 @@ public function get_subtotal_to_display( $compound = false, $tax_display = '' )

// 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();
Expand Down

0 comments on commit 28136bb

Please sign in to comment.