Add check for 'is_advance_payment'

This commit is contained in:
Abhishek Kumar
2024-03-11 13:20:19 +05:30
parent 2feedba4e2
commit 72bed52379
3 changed files with 35 additions and 37 deletions

View File

@@ -1007,7 +1007,7 @@ abstract class PaymentModuleCore extends Module
$new_history = new OrderHistory();
$new_history->id_order = (int)$order->id;
if ($order_status->logable && $order->is_advance_payment && $order->advance_paid_amount < $order->total_paid_tax_incl) {
$new_history->changeIdOrderState((int)Configuration::get('PS_OS_PARTIAL_PAYMENT'), $order, true);
$new_history->changeIdOrderState((int)Configuration::get('PS_OS_PARTIAL_PAYMENT_ACCEPTED'), $order, true);
} else {
$new_history->changeIdOrderState((int)$id_order_state, $order, true);
}