GX-Bug #51102 » CouponVatFix.patch
| src/includes/modules/order_total/ot_coupon.php (revision ) | ||
|---|---|---|
| 620 | 620 | |
| 621 | 621 |
if($tax_rate > 0) |
| 622 | 622 |
{
|
| 623 |
if($_SESSION['customers_status']['customers_status_show_price_tax'] === '0') |
|
| 624 |
{
|
|
| 625 |
$t_gm_od_amount = ($od_amount - $shipping_costs_reduction); |
|
| 626 |
|
|
| 623 | ||
| 627 |
$t_gm_reduced_price = ($valid_array[$p]['products_price'] * (1 + ($tax_rate / 100))) - $t_gm_od_amount * $t_gm_ratio; |
|
| 628 |
$t_gm_reduced_price /= (1 + $tax_rate / 100); |
|
| 629 |
} |
|
| 630 |
else |
|
| 631 |
{
|
|
| 632 |
$t_gm_reduced_price = $valid_array[$p]['products_price'] - $t_gm_od_amount * $t_gm_ratio; |
|
| 624 |
$t_gm_reduced_price = $valid_array[$p]['products_price'] - $t_gm_od_amount * $t_gm_ratio; |
|
| 633 |
} |
|
| 634 |
|
|
| 625 | ||
| 635 | 626 |
if($_SESSION['customers_status']['customers_status_show_price_tax'] === '1') |
| 636 | 627 |
{
|
| 637 | 628 |
$t_gm_reduced_price_tax = (($t_gm_reduced_price / (1 + $tax_rate / 100)) - $t_gm_reduced_price) * (-1); |