|
|
|
|
|
|
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = false; |
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = false; |
|
|
if(isset($ordersTiller->orders)) { |
|
|
if(isset($ordersTiller->orders)) { |
|
|
foreach ($ordersTiller->orders as $orderTiller) { |
|
|
foreach ($ordersTiller->orders as $orderTiller) { |
|
|
if ($orderOpendistrib->tiller_external_id == $orderTiller->externalId |
|
|
|
|
|
|
|
|
if ($orderOpendistrib->tiller_external_id == $orderTiller->id |
|
|
&& (int) round($orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100) == (int) $orderTiller->currentBill) { |
|
|
&& (int) round($orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100) == (int) $orderTiller->currentBill) { |
|
|
|
|
|
|
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = true; |
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = true; |