|
|
|
|
|
|
|
|
$amountTotalOrderOpendistrib = (int)round( |
|
|
$amountTotalOrderOpendistrib = (int)round( |
|
|
$orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100 |
|
|
$orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100 |
|
|
); |
|
|
); |
|
|
if ($amountTotalOrderOpendistrib == (int)$orderTiller->currentPayedAmount |
|
|
|
|
|
|| $amountTotalOrderOpendistrib == (int)$orderTiller->currentBill) { |
|
|
|
|
|
|
|
|
if ($amountTotalOrderOpendistrib >= (int)$orderTiller->currentPayedAmount |
|
|
|
|
|
|| $amountTotalOrderOpendistrib >= (int)$orderTiller->currentBill) { |
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = true; |
|
|
$ordersOpendistribSynchro[$orderOpendistrib->id] = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |