|
|
|
|
|
|
|
|
if ($ordersOpendistrib) { |
|
|
if ($ordersOpendistrib) { |
|
|
foreach ($ordersOpendistrib as $orderOpendistrib) { |
|
|
foreach ($ordersOpendistrib as $orderOpendistrib) { |
|
|
$this->orderBuilder->initOrder($orderOpendistrib); |
|
|
$this->orderBuilder->initOrder($orderOpendistrib); |
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = false; |
|
|
|
|
|
if (isset($ordersTiller->orders)) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($orderOpendistrib->tiller_external_id) { |
|
|
|
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = true; |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*if (isset($ordersTiller->orders)) { |
|
|
foreach ($ordersTiller->orders as $orderTiller) { |
|
|
foreach ($ordersTiller->orders as $orderTiller) { |
|
|
if ($orderOpendistrib->tiller_external_id == $orderTiller->id) { |
|
|
if ($orderOpendistrib->tiller_external_id == $orderTiller->id) { |
|
|
$amountTotalPaidOrderOpendistrib = (int)round( |
|
|
$amountTotalPaidOrderOpendistrib = (int)round( |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|