Merge branch 'ticket-newExtracts' into develop
This commit is contained in:
commit
789b011f7f
@ -653,7 +653,7 @@ class AdminBulkUpdate extends AdminTab {
|
||||
foreach(glob(dirname(__FILE__).'/*.csv') as $filename) {
|
||||
unlink($filename);
|
||||
}
|
||||
$fname = date( "Ymd", strtotime($date_start)).'-'.date( "Ymd", strtotime($date_end)).'.csv';
|
||||
$fname = 'DEB-int-'.date( "Ymd", strtotime($date_start)).'-'.date( "Ymd", strtotime($date_end)).'.csv';
|
||||
$f = fopen(dirname(__FILE__).'/'.$fname, 'w');
|
||||
|
||||
// uft8 sans bom pour accent
|
||||
@ -745,7 +745,7 @@ class AdminBulkUpdate extends AdminTab {
|
||||
FROM `'._DB_PREFIX_.'order_history`
|
||||
WHERE `id_order`=d.`id_order`
|
||||
ORDER BY `date_add` DESC LIMIT 1
|
||||
) NOT IN (1,6,8,9,10,11,14,15,18)
|
||||
) NOT IN (1,6,8,9,10,11,14,15,18)
|
||||
');
|
||||
|
||||
if ($quantity_sold == 0) {
|
||||
@ -781,7 +781,6 @@ class AdminBulkUpdate extends AdminTab {
|
||||
FROM `'._DB_PREFIX_.'order_detail` d
|
||||
LEFT JOIN `'._DB_PREFIX_.'orders` o ON o.`id_order` = d.`id_order`
|
||||
WHERE d.`product_id` = '.(int) $p->id.'
|
||||
AND d.`product_attribute_id` = 0
|
||||
AND (
|
||||
SELECT `id_order_state`
|
||||
FROM `'._DB_PREFIX_.'order_history`
|
||||
@ -869,7 +868,7 @@ class AdminBulkUpdate extends AdminTab {
|
||||
);
|
||||
}
|
||||
}
|
||||
//echo "<pre>";var_dump($orders_detail);echo "</pre>";die();
|
||||
|
||||
$products = array_unique($products);
|
||||
if(count($products) > 20000){
|
||||
$output .= '<p class="conf">Choisir une plage moins grande. <br /> Export > 20000 produits</p>';
|
||||
@ -879,7 +878,7 @@ class AdminBulkUpdate extends AdminTab {
|
||||
foreach(glob(dirname(__FILE__).'/*.csv') as $filename) {
|
||||
unlink($filename);
|
||||
}
|
||||
$fname = date( "Ymd", strtotime($date_start)).'-'.date( "Ymd", strtotime($date_end)).'.csv';
|
||||
$fname = 'DEB-exp-'.date( "Ymd", strtotime($date_start)).'-'.date( "Ymd", strtotime($date_end)).'.csv';
|
||||
$f = fopen(dirname(__FILE__).'/'.$fname, 'w');
|
||||
|
||||
// uft8 sans bom pour accent
|
||||
|
Loading…
Reference in New Issue
Block a user