Browse Source

[Administration] Tiller : correctif synchronisation

feature/souke
Guillaume Bourgeois 11 months ago
parent
commit
b6b26e972c
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      common/logic/Order/Order/Service/TillerManager.php

+ 10
- 3
common/logic/Order/Order/Service/TillerManager.php View File

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(
} }
} }
} }
}
}*/
} }
} }



Loading…
Cancel
Save