Преглед на файлове

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

dev
Guillaume Bourgeois преди 4 години
родител
ревизия
4c457adbef
променени са 1 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. +6
    -4
      common/helpers/Tiller.php

+ 6
- 4
common/helpers/Tiller.php Целия файл

@@ -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;
}
}
}
}

Loading…
Отказ
Запис