Parcourir la source

Tiller : correction bug récupération 'orders'

refactoring
Guillaume Bourgeois il y a 4 ans
Parent
révision
4c457adbef
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  1. +6
    -4
      common/helpers/Tiller.php

+ 6
- 4
common/helpers/Tiller.php Voir le fichier

@@ -86,11 +86,13 @@ class Tiller
if ($ordersOpendistrib) {
foreach ($ordersOpendistrib as $orderOpendistrib) {
$ordersOpendistribSynchro[$orderOpendistrib->id] = false;
foreach ($ordersTiller->orders as $orderTiller) {
if ($orderOpendistrib->id == $orderTiller->externalId
&& ($orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100) == $orderTiller->currentBill) {
if(isset($ordersTiller->orders)) {
foreach ($ordersTiller->orders as $orderTiller) {
if ($orderOpendistrib->id == $orderTiller->externalId
&& ($orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100) == $orderTiller->currentBill) {

$ordersOpendistribSynchro[$orderOpendistrib->id] = true;
$ordersOpendistribSynchro[$orderOpendistrib->id] = true;
}
}
}
}

Chargement…
Annuler
Enregistrer