GX-Abgewiesen #40921 » ot_coupon.patch
src/includes/modules/order_total/ot_coupon.php (revision ) | ||
---|---|---|
489 | 489 |
|
490 | 490 |
//$tod_amount = ($valid_array[$p]['products_price'] * $tax_rate) / 100 * $t_gm_ratio; |
491 | 491 |
$t_gm_reduced_price = $valid_array[$p]['products_price'] - $od_amount * $t_gm_ratio; |
492 |
$t_gm_reduced_price_tax = (($t_gm_reduced_price / (1 + $tax_rate / 100)) - $t_gm_reduced_price) * (-1); |
|
493 |
$t_gm_reduce_tax = ((($valid_array[$p]['products_price'] / (1 + $tax_rate / 100)) - $valid_array[$p]['products_price']) * (-1)) - $t_gm_reduced_price_tax; |
|
492 |
$t_gm_reduce_tax = $valid_array[$p]['products_price'] * ($tax_rate / 100) - $t_gm_reduced_price * ($tax_rate / 100); |
|
494 | 493 |
$order->info['tax_groups'][$tax_desc] -= $t_gm_reduce_tax; |
495 | 494 |
$order->info['tax'] -= $t_gm_reduce_tax; |
496 | 495 |
|