diff --git a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php index ffcf6ec19..c03062ce6 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php @@ -213,10 +213,10 @@ class AdminOrderRefundRulesController extends ModuleAdminController if ($paymentType == '') { $this->errors[] = $this->l('Invalid payment type.'); } - if (!$fullPayAmount) { + if (!$fullPayAmount && floatval($fullPayAmount) != 0) { $this->errors[] = $this->l('Enter deduction value for full payment.'); } - if (!$advPayAmount) { + if (!$advPayAmount && floatval($advPayAmount) != 0) { $this->errors[] = $this->l('Enter deduction value for advance payment.'); }