Browse Source

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

refactoring
Guillaume Bourgeois 6 years ago
parent
commit
6d65d7e796
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      backend/controllers/CronController.php

+ 6
- 1
backend/controllers/CronController.php View File

*/ */
$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([

Loading…
Cancel
Save