소스 검색

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

Loading…
취소
저장