Просмотр исходного кода

Les commandes annulées configurées avec paiement automatique ne doivent pas être débitées.

dev
Guillaume Bourgeois 6 лет назад
Родитель
Сommit
6d65d7e796
1 измененных файлов: 6 добавлений и 1 удалений
  1. +6
    -1
      backend/controllers/CronController.php

+ 6
- 1
backend/controllers/CronController.php Просмотреть файл

*/ */
$arrayOrders = Order::searchAll([ $arrayOrders = Order::searchAll([
'distribution.date' => $date
'distribution.date' => $date,
'distribution.id_producer' => $producer['id']
], [
'conditions' => 'date_delete IS NULL'
]) ; ]) ;


foreach($arrayOrders as $order) { foreach($arrayOrders as $order) {
$arrayOrders = Order::searchAll([ $arrayOrders = Order::searchAll([
'distribution.date' => $date, 'distribution.date' => $date,
'distribution.id_producer' => $producer['id'] 'distribution.id_producer' => $producer['id']
], [
'conditions' => 'date_delete IS NULL'
]) ; ]) ;
$user = User::searchOne([ $user = User::searchOne([

Загрузка…
Отмена
Сохранить