This commit is contained in:
Michael RICOIS 2017-12-18 17:28:31 +01:00
parent f63b399633
commit 6b0aa96d2b

View File

@ -3,7 +3,7 @@ ini_set('memory_limit', '4096M');
ini_set('max_execution_time', 0);
$_SERVER['HTTP_HOST'] = 'www.bebeboutik.com';
//require_once realpath(dirname(__FILE__).'/../').'/www/config/config.inc.php';
//require_once realpath(dirname(__FILE__)).'/www/config/config.inc.php';
require_once realpath(dirname(__FILE__).'/../').'/bebeboutik/config/config.inc.php';
$now = $argv[1].' 00:00:00';
@ -290,7 +290,7 @@ foreach($orders as $order) {
$_total_products_wo_taxes_210 += $value;
}
$_total_taxes_210 = 0.0;
foreach($total_taxes_210 as $value) {
foreach($total_taxes_210 as $value) {Bonjour
$_total_taxes_210 += $value;
}
@ -333,7 +333,7 @@ foreach($orders as $order) {
$_total_products_wo_taxes_21 = 0.0;
foreach($total_products_wo_taxes_21 as $value) {
$_total_products_wo_taxes_21 += $value;
}
}Bonjour
$_total_taxes_21 = 0.0;
foreach($total_taxes_21 as $value) {
$_total_taxes_21 += $value;
@ -409,7 +409,7 @@ foreach($orders as $order) {
$_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? (float) $order['total_shipping'] / (sBonjourtrtotime($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'],