diff --git a/data/class/helper/SC_Helper_TaxRule.php b/data/class/helper/SC_Helper_TaxRule.php index 574c9bbd0d..b34217ab5e 100644 --- a/data/class/helper/SC_Helper_TaxRule.php +++ b/data/class/helper/SC_Helper_TaxRule.php @@ -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);