Optimized code by adding the previous missing validations

This commit is contained in:
vishalsingh.qlo325
2024-01-31 11:19:03 +05:30
parent a614aee387
commit 4b9fc9987b
3 changed files with 676 additions and 597 deletions

View File

@@ -430,6 +430,7 @@ abstract class PaymentModuleCore extends Module
if ($order_status->logable
&& number_format($cart_total_paid, _PS_PRICE_COMPUTE_PRECISION_) != number_format($amount_paid, _PS_PRICE_COMPUTE_PRECISION_)
&& $this->name != 'wsorder'
&& $this->name != 'csvbooking'
) {
// if customer is paying full payment amount
$id_order_state = Configuration::get('PS_OS_ERROR');