Skip to content

Commit

Permalink
fixing bug where tax was not zero when items and coupons were not tax…
Browse files Browse the repository at this point in the history
…able.
  • Loading branch information
AdiCherukuri committed Dec 26, 2016
1 parent 5a623a2 commit 5b11990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public function taxTotal($format = true)
} else {
$itemPrice = $item->subTotal(false);

if (($discounted + $itemPrice) > $totalDiscount) {
if (($discounted + $itemPrice) > $totalDiscount && config('laracart.discountTaxable', true)) {
$totalTax += $item->tax($totalDiscount - $discounted);
}

Expand Down

0 comments on commit 5b11990

Please sign in to comment.