浏览代码

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

dev
父节点
当前提交
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;
}
}
}
}

正在加载...
取消
保存