$orders = Order::searchAll([ | $orders = Order::searchAll([ | ||||
'distribution.date' => $date, | 'distribution.date' => $date, | ||||
'order.tiller_synchronization' => 1 | 'order.tiller_synchronization' => 1 | ||||
]); | |||||
], [ | |||||
'conditions' => 'date_delete IS NULL' | |||||
]); | |||||
$strDate = date('Y-m-d\T12:i:s+0000', strtotime($date) + 1); | $strDate = date('Y-m-d\T12:i:s+0000', strtotime($date) + 1); | ||||
$ordersOpendistrib = Order::searchAll([ | $ordersOpendistrib = Order::searchAll([ | ||||
'distribution.date' => $date, | 'distribution.date' => $date, | ||||
'order.tiller_synchronization' => 1 | 'order.tiller_synchronization' => 1 | ||||
], [ | |||||
'conditions' => 'date_delete IS NULL' | |||||
]); | ]); | ||||
$ordersOpendistribSynchro = []; | $ordersOpendistribSynchro = []; |