|
|
|
|
|
|
|
|
if ($ordersOpendistrib) { |
|
|
if ($ordersOpendistrib) { |
|
|
foreach ($ordersOpendistrib as $orderOpendistrib) { |
|
|
foreach ($ordersOpendistrib as $orderOpendistrib) { |
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = false; |
|
|
$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; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |