Ver código fonte

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

dev
Guillaume Bourgeois 6 anos atrás
pai
commit
6d65d7e796
1 arquivos alterados com 6 adições e 1 exclusões
  1. +6
    -1
      backend/controllers/CronController.php

+ 6
- 1
backend/controllers/CronController.php Ver arquivo

@@ -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([

Carregando…
Cancelar
Salvar