add tax it (22%)

This commit is contained in:
Michael RICOIS 2018-01-23 09:47:24 +01:00
parent 5aff766d38
commit 2886d760fd

View File

@ -81,6 +81,8 @@ $headers = array(
'id_customer',
'firstname',
'lastname',
'total_product_wo_taxes_220',
'total_taxes_220',
'total_products_wo_taxes_210',
'total_taxes_210',
'total_products_wo_taxes_200',
@ -206,6 +208,8 @@ if ($orderNb > 0) {
);
$invoice_address = $invoice_address[0];
$total_products_wo_taxes_220 = array();
$total_taxes_220 = array();
$total_products_wo_taxes_210 = array();
$total_taxes_210 = array();
$total_products_wo_taxes_200 = array();
@ -242,15 +246,16 @@ if ($orderNb > 0) {
$ldetails[$detail['id_order_detail']] = $detail;
$wholesale_price += (float) ($detail['wholesale_price'] * $detail['product_quantity']);
if($address['id_country'] != 19) {
if($detail['tax_rate'] == '20.000') {
if($detail['tax_rate'] == '22.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.2);
$total_products_wo_taxes_220[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_220[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.22);
} else {
$total_products_wo_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.2);
$total_products_wo_taxes_220[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_220[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.22);
}
} elseif($detail['tax_rate'] == '21.000') {
}
elseif($detail['tax_rate'] == '21.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_210[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_210[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.21);
@ -258,7 +263,17 @@ if ($orderNb > 0) {
$total_products_wo_taxes_210[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_210[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.21);
}
} elseif($detail['tax_rate'] == '19.600') {
}
elseif($detail['tax_rate'] == '20.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.2);
} else {
$total_products_wo_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.2);
}
}
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']);
$total_taxes_196[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.196);
@ -266,7 +281,8 @@ if ($orderNb > 0) {
$total_products_wo_taxes_196[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_196[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.196);
}
} elseif($detail['tax_rate'] == '10.000') {
}
elseif($detail['tax_rate'] == '10.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_100[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_100[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.100);
@ -274,23 +290,8 @@ if ($orderNb > 0) {
$total_products_wo_taxes_100[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_100[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.100);
}
} elseif($detail['tax_rate'] == '5.500') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_55[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_55[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.055);
} else {
$total_products_wo_taxes_55[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_55[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.055);
}
} elseif($detail['tax_rate'] == '2.100') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.021);
} else {
$total_products_wo_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.021);
}
} elseif($detail['tax_rate'] == '6.000') {
}
elseif($detail['tax_rate'] == '6.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_60[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_60[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.060);
@ -298,7 +299,17 @@ if ($orderNb > 0) {
$total_products_wo_taxes_60[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_60[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.060);
}
} elseif($detail['tax_rate'] == '4.000') {
}
elseif($detail['tax_rate'] == '5.500') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_55[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_55[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.055);
} else {
$total_products_wo_taxes_55[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_55[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.055);
}
}
elseif($detail['tax_rate'] == '4.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_40[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_40[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.040);
@ -306,7 +317,17 @@ if ($orderNb > 0) {
$total_products_wo_taxes_40[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_40[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.040);
}
} else {
}
elseif($detail['tax_rate'] == '2.100') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
$total_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity'] * 0.021);
} else {
$total_products_wo_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity']);
$total_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity'] * 0.021);
}
}
else {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_export[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity']);
} else {
@ -322,6 +343,15 @@ if ($orderNb > 0) {
}
}
$_total_products_wo_taxes_220 = 0.0;
foreach($total_products_wo_taxes_220 as $value) {
$_total_products_wo_taxes_220 += $value;
}
$_total_taxes_220 = 0.0;
foreach($total_taxes_220 as $value) {
$_total_taxes_220 += $value;
}
$_total_products_wo_taxes_210 = 0.0;
foreach($total_products_wo_taxes_210 as $value) {
$_total_products_wo_taxes_210 += $value;
@ -429,6 +459,8 @@ if ($orderNb > 0) {
$order['id_customer'],
$invoice_address['firstname'],
$invoice_address['lastname'],
$_total_products_wo_taxes_220,
$_total_taxes_220,
$_total_products_wo_taxes_210,
$_total_taxes_210,
$_total_products_wo_taxes_200,
@ -446,8 +478,8 @@ if ($orderNb > 0) {
$_total_products_wo_taxes_40,
$_total_taxes_40,
$_total_products_wo_taxes_export,
($address['id_country'] != 19? (float) $order['total_shipping'] / (strtotime($order['date_add']) >= mktime(0, 0, 0, 1, 1, 2014)? 1.2: 1.196): 0.0),
($address['id_country'] != 19? 0.0: $order['total_shipping']),
($address['id_country'] != 19 ? (float) $order['total_shipping'] / (strtotime($order['date_add']) >= mktime(0, 0, 0, 1, 1, 2014) ? 1.2 : 1.196) : 0.0),
($address['id_country'] != 19 ? 0.0 : $order['total_shipping']),
$country,
$order['total_discounts'],
$order['total_paid'],
@ -615,6 +647,8 @@ if($slipNb > 0) {
');
$ldetails = array();
$total_products_wo_taxes_220 = array();
$total_taxes_220 = array();
$total_products_wo_taxes_210 = array();
$total_taxes_210 = array();
$total_products_wo_taxes_200 = array();
@ -638,6 +672,33 @@ if($slipNb > 0) {
$wholesale_price += (float) ($detail['wholesale_price'] * $detail['product_quantity_refunded']);
if($address['id_country'] != 19) {
if($detail['tax_rate'] == '22.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_220[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_220[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.22);
} else {
$total_products_wo_taxes_220[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_220[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.22);
}
}
elseif($detail['tax_rate'] == '21.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_210[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_210[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.21);
} else {
$total_products_wo_taxes_210[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_210[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.21);
}
}
elseif($detail['tax_rate'] == '20.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.2);
} else {
$total_products_wo_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.2);
}
}
if($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']);
@ -646,15 +707,8 @@ if($slipNb > 0) {
$total_products_wo_taxes_196[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_196[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.196);
}
} elseif($detail['tax_rate'] == '21.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_210[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_210[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.21);
} else {
$total_products_wo_taxes_210[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_210[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.21);
}
} elseif($detail['tax_rate'] == '10.000') {
}
elseif($detail['tax_rate'] == '10.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_100[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_100[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.100);
@ -662,7 +716,8 @@ if($slipNb > 0) {
$total_products_wo_taxes_100[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_100[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.100);
}
} elseif($detail['tax_rate'] == '5.500') {
}
elseif($detail['tax_rate'] == '5.500') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_55[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_55[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.055);
@ -670,23 +725,8 @@ if($slipNb > 0) {
$total_products_wo_taxes_55[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_55[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.055);
}
} elseif($detail['tax_rate'] == '2.100') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.021);
} else {
$total_products_wo_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.021);
}
} elseif($detail['tax_rate'] == '20.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_200[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.2);
} else {
$total_products_wo_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_200[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.2);
}
} elseif($detail['tax_rate'] == '6.000') {
}
elseif($detail['tax_rate'] == '6.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_60[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_60[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.06);
@ -694,7 +734,8 @@ if($slipNb > 0) {
$total_products_wo_taxes_60[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_60[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.06);
}
} elseif($detail['tax_rate'] == '4.000') {
}
elseif($detail['tax_rate'] == '4.000') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_40[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_40[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.04);
@ -702,7 +743,17 @@ if($slipNb > 0) {
$total_products_wo_taxes_40[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_40[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.04);
}
} else {
}
elseif($detail['tax_rate'] == '2.100') {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
$total_taxes_21[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded'] * 0.021);
} else {
$total_products_wo_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded']);
$total_taxes_21[] = (float) (($detail['product_price'] - (float) $detail['reduction_amount']) * $detail['product_quantity_refunded'] * 0.021);
}
}
else {
if((float) $detail['reduction_percent'] != 0.0) {
$total_products_wo_taxes_export[] = (float) ($detail['product_price'] * (1 - (float) $detail['reduction_percent'] / 100) * $detail['product_quantity_refunded']);
} else {
@ -718,6 +769,15 @@ if($slipNb > 0) {
}
}
$_total_products_wo_taxes_220 = 0.0;
foreach($total_products_wo_taxes_220 as $value) {
$_total_products_wo_taxes_220 += $value;
}
$_total_taxes_220 = 0.0;
foreach($total_taxes_220 as $value) {
$_total_taxes_220 += $value;
}
$_total_products_wo_taxes_210 = 0.0;
foreach($total_products_wo_taxes_210 as $value) {
$_total_products_wo_taxes_210 += $value;
@ -833,6 +893,8 @@ if($slipNb > 0) {
$order['id_customer'],
$invoice_address['firstname'],
$invoice_address['lastname'],
'-'.$_total_products_wo_taxes_220,
'-'.$_total_taxes_220,
'-'.$_total_products_wo_taxes_210,
'-'.$_total_taxes_210,
'-'.$_total_products_wo_taxes_200,
@ -850,12 +912,30 @@ if($slipNb > 0) {
'-'.$_total_products_wo_taxes_40,
'-'.$_total_taxes_40,
'-'.$_total_products_wo_taxes_export,
'-'.($slip['shipping_cost'] == 1? ($address['id_country'] != 19? (float) $order['total_shipping'] / (strtotime($order['date_add']) >= mktime(0, 0, 0, 1, 1, 2014)? 1.2: 1.196): 0.0): 0.0),
'-'.($slip['shipping_cost'] == 1? ($address['id_country'] != 19? 0.0: $order['total_shipping']): 0.0),
'-'.($slip['shipping_cost'] == 1 ? ($address['id_country'] != 19 ? (float) $order['total_shipping'] / (strtotime($order['date_add']) >= mktime(0, 0, 0, 1, 1, 2014) ? 1.2 : 1.196) : 0.0) : 0.0),
'-'.($slip['shipping_cost'] == 1 ? ($address['id_country'] != 19 ? 0.0 : $order['total_shipping']) : 0.0),
$country,
'-0.0',
'-'.($_total_products_wo_taxes_210 + $_total_taxes_210 + $_total_products_wo_taxes_200 + $_total_taxes_200 + $_total_products_wo_taxes_196 + $_total_taxes_196 + $_total_products_wo_taxes_100 + $_total_taxes_100 + $_total_products_wo_taxes_55 + $_total_taxes_55 + $_total_products_wo_taxes_21 + $_total_taxes_21 + $_total_products_wo_taxes_60 + $_total_taxes_60 + $_total_products_wo_taxes_40 + $_total_taxes_40 + $_total_products_wo_taxes_export + ($slip['shipping_cost'] == 1? (float) $order['total_shipping']: 0.0)),
'-'.($_total_products_wo_taxes_210 + $_total_taxes_210 + $_total_products_wo_taxes_200 + $_total_taxes_200 + $_total_products_wo_taxes_196 + $_total_taxes_196 + $_total_products_wo_taxes_100 + $_total_taxes_100 + $_total_products_wo_taxes_55 + $_total_taxes_55 + $_total_products_wo_taxes_21 + $_total_taxes_21 + $_total_products_wo_taxes_60 + $_total_taxes_60 + $_total_products_wo_taxes_40 + $_total_taxes_40 + $_total_products_wo_taxes_export + ($slip['shipping_cost'] == 1? (float) $order['total_shipping']: 0.0)),
'-'.($_total_products_wo_taxes_220 + $_total_taxes_220
+ $_total_products_wo_taxes_210 + $_total_taxes_210
+ $_total_products_wo_taxes_200 + $_total_taxes_200
+ $_total_products_wo_taxes_196 + $_total_taxes_196
+ $_total_products_wo_taxes_100 + $_total_taxes_100
+ $_total_products_wo_taxes_55 + $_total_taxes_55
+ $_total_products_wo_taxes_21 + $_total_taxes_21
+ $_total_products_wo_taxes_60 + $_total_taxes_60
+ $_total_products_wo_taxes_40 + $_total_taxes_40
+ $_total_products_wo_taxes_export + ($slip['shipping_cost'] == 1 ? (float) $order['total_shipping'] : 0.0)),
'-'.($_total_products_wo_taxes_220 + $_total_taxes_220
+ $_total_products_wo_taxes_210 + $_total_taxes_210
+ $_total_products_wo_taxes_200 + $_total_taxes_200
+ $_total_products_wo_taxes_196 + $_total_taxes_196
+ $_total_products_wo_taxes_100 + $_total_taxes_100
+ $_total_products_wo_taxes_55 + $_total_taxes_55
+ $_total_products_wo_taxes_21 + $_total_taxes_21
+ $_total_products_wo_taxes_60 + $_total_taxes_60
+ $_total_products_wo_taxes_40 + $_total_taxes_40
+ $_total_products_wo_taxes_export + ($slip['shipping_cost'] == 1 ? (float) $order['total_shipping'] : 0.0)),
'-'.$wholesale_price,
'REFUND '.strtoupper($order['payment']),
$order['direct_payment'],