Fix condition
This commit is contained in:
parent
ccc1331763
commit
8ec00925b6
@ -699,7 +699,7 @@ if($slipNb > 0) {
|
||||
$total_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.2);
|
||||
}
|
||||
}
|
||||
if($detail['tax_rate'] == '19.600') {
|
||||
elseif($detail['tax_rate'] == '19.600') {
|
||||
if((float) $detail['reduction_percent'] != 0.0) {
|
||||
$total_products_wo_taxes_196[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
|
||||
$total_taxes_196[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.196);
|
||||
@ -911,7 +911,7 @@ if($slipNb > 0) {
|
||||
'-'.$_total_taxes_60,
|
||||
'-'.$_total_products_wo_taxes_40,
|
||||
'-'.$_total_taxes_40,
|
||||
'0.0',//'-'.$_total_products_wo_taxes_export,
|
||||
'-'.$_total_products_wo_taxes_export,
|
||||
'-'.($slip['shipping_cost'] == 1 ? ($address['id_country'] != 19 ? (float) $order['total_shipping'] / (1 + $order['carrier_tax_rate'] / 100) : 0.0) : 0.0),
|
||||
'-'.($slip['shipping_cost'] == 1 ? ($address['id_country'] != 19 ? 0.0 : $order['total_shipping']) : 0.0),
|
||||
$country,
|
||||
|
Loading…
Reference in New Issue
Block a user