Skip to content

Commit

Permalink
Update data/class/helper/SC_Helper_TaxRule.php
Browse files Browse the repository at this point in the history
Co-authored-by: bbkids <[email protected]>
  • Loading branch information
nanasess and bbkids authored Jan 24, 2024
1 parent f9e1d19 commit 29ed7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/class/helper/SC_Helper_TaxRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function getTaxPerTaxRate(array $arrTaxableTotal, int $discount_to

foreach ($arrTaxableTotal as $rate => $total) {
if($rate == $defaultTaxRule){
$discount[$rate] = $divide[$GTaxRule]['discount'];
$discount[$rate] = $divide[$defaultTaxRule]['discount'];
}
else{
$discount[$rate] = round(($discount_total * $total / $taxable_total),0);
Expand Down

0 comments on commit 29ed7c5

Please sign in to comment.