Browse Source

[Backend] Tiller : correctif synchronisation

refactoring
Guillaume 2 years ago
parent
commit
1ccdeb64c0
2 changed files with 5 additions and 1 deletions
  1. +3
    -1
      backend/controllers/DistributionController.php
  2. +2
    -0
      common/helpers/Tiller.php

+ 3
- 1
backend/controllers/DistributionController.php View File

@@ -1267,7 +1267,9 @@ class DistributionController extends BackendController
$orders = Order::searchAll([
'distribution.date' => $date,
'order.tiller_synchronization' => 1
]);
], [
'conditions' => 'date_delete IS NULL'
]);

$strDate = date('Y-m-d\T12:i:s+0000', strtotime($date) + 1);


+ 2
- 0
common/helpers/Tiller.php View File

@@ -79,6 +79,8 @@ class Tiller
$ordersOpendistrib = Order::searchAll([
'distribution.date' => $date,
'order.tiller_synchronization' => 1
], [
'conditions' => 'date_delete IS NULL'
]);

$ordersOpendistribSynchro = [];

Loading…
Cancel
Save