From 65b26d706c850116a996e4c4fb79bbeafb6ccca9 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 24 Jul 2023 16:44:49 +0530 Subject: [PATCH] Remove Cancellation Days validation for Refund Rules during save --- .../controllers/admin/AdminOrderRefundRulesController.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php index ffcf6ec19..ccbecb923 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php @@ -244,14 +244,6 @@ class AdminOrderRefundRulesController extends ModuleAdminController $this->errors[] = $this->l('Enter number of days before check-in date for this rule to be applicable.'); } else if (!Validate::isUnsignedInt($cancelationDays)) { $this->errors[] = $this->l('Enter valid number of days.'); - } else if ($objRefundRule->checkIfRuleExistsByCancelationdays($cancelationDays)) { - if ($idRefundRule) { - if ($objRefundRule->days != $cancelationDays) { - $this->errors[] = $this->l('Refund rule for ').$cancelationDays.$this->l(' days already exists.'); - } - } else { - $this->errors[] = $this->l('Refund rule for ').$cancelationDays.$this->l(' days already exists.'); - } } if (!count($this->errors)) {