Browse Source

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

refactoring
Guillaume Bourgeois 5 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

@@ -240,7 +240,10 @@ class CronController extends BackendController
*/
$arrayOrders = Order::searchAll([
'distribution.date' => $date
'distribution.date' => $date,
'distribution.id_producer' => $producer['id']
], [
'conditions' => 'date_delete IS NULL'
]) ;

foreach($arrayOrders as $order) {
@@ -265,6 +268,8 @@ class CronController extends BackendController
$arrayOrders = Order::searchAll([
'distribution.date' => $date,
'distribution.id_producer' => $producer['id']
], [
'conditions' => 'date_delete IS NULL'
]) ;
$user = User::searchOne([

Loading…
Cancel
Save