diff --git a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php index c777cfa43..9bf4de500 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php @@ -326,10 +326,13 @@ class AdminOrderRefundRequestsController extends ModuleAdminController } else { $this->errors[] = $this->l('Invalid refund state.'); } - if (!$voucher_expiry_date = Tools::getValue('voucher_expiry_date')) { - $this->errors[] = $this->l('Voucher expiry date is required.'); - } elseif (!Validate::isDate($voucher_expiry_date)) { - $this->errors[] = $this->l('Invalid voucher expiry date.'); + + if (Tools::isSubmit('generateDiscount')) { + if (!$voucher_expiry_date = Tools::getValue('voucher_expiry_date')) { + $this->errors[] = $this->l('Voucher expiry date is required.'); + } elseif (!Validate::isDate($voucher_expiry_date)) { + $this->errors[] = $this->l('Invalid voucher expiry date.'); + } } } else { $this->errors[] = $this->l('Invalid refund information found.'); diff --git a/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl b/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl index ad04059d2..ea4f1328a 100644 --- a/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl @@ -5,7 +5,7 @@  {l s='Order Cancellation Request Information' mod='hotelreservationsystem'}
-
+
{if isset($customer_name)}