text correction in the refund rule creation(Manage Order Refund Rules) page

This commit is contained in:
sumit panwar
2021-01-27 18:14:33 +05:30
parent 6b7ef21e3a
commit ece94094ef
2 changed files with 12 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ class AdminOrderRefundRulesController extends ModuleAdminController
$this->fields_options = array(
'modulesetting' => array(
'title' => $this->l('Hotel Testimonials Setting'),
'title' => $this->l('Order Refund Setting'),
'fields' => array(
'WK_ORDER_REFUND_ALLOWED' => array(
'title' => $this->l('Enable Order Refund'),
@@ -221,26 +221,26 @@ class AdminOrderRefundRulesController extends ModuleAdminController
if ($paymentType == HotelOrderRefundRules::WK_REFUND_RULE_PAYMENT_TYPE_PERCENTAGE) {
if (!Validate::isFloat($fullPayAmount)) {
$this->errors[] = $this->l('Enter a valid Deduction percentage.');
$this->errors[] = $this->l('Enter a valid deduction percentage for full payment.');
} elseif ($fullPayAmount > 100 || $fullPayAmount < 0) {
$this->errors[] = $this->l('Enter a valid percentage(0 < % and 100 >= %).');
$this->errors[] = $this->l('Enter a valid percentage(0 < % and 100 >= %) for full payment.');
}
if (!Validate::isFloat($advPayAmount)) {
$this->errors[] = $this->l('Enter a valid Deduction percentage.');
$this->errors[] = $this->l('Enter a valid deduction percentage for advance payment.');
} elseif ($advPayAmount > 100 || $advPayAmount < 0) {
$this->errors[] = $this->l('Enter a valid percentage(0 < % and 100 > %).');
$this->errors[] = $this->l('Enter a valid percentage(0 < % and 100 > %) for advance payment.');
}
} elseif ($paymentType == HotelOrderRefundRules::WK_REFUND_RULE_PAYMENT_TYPE_FIXED) {
if (!Validate::isPrice($fullPayAmount)) {
$this->errors[] = $this->l('Enter a valid Deduction amount.');
$this->errors[] = $this->l('Enter a valid deduction amount for full payment.');
}
if (!Validate::isPrice($advPayAmount)) {
$this->errors[] = $this->l('Enter a valid Deduction amount.');
$this->errors[] = $this->l('Enter a valid deduction amount for advance payment.');
}
}
$objRefundRule = new HotelOrderRefundRules($idRefundRule);
if ($cancelationDays == '') {
$this->errors[] = $this->l('Enter How many days before Check In date rule will be aplied.');
$this->errors[] = $this->l('Enter before how many days of check in date, rule will be applied.');
} else if (!Validate::isUnsignedInt($cancelationDays)) {
$this->errors[] = $this->l('Enter valid number of days.');
} else if ($objRefundRule->checkIfRuleExistsByCancelationdays($cancelationDays)) {

View File

@@ -73,7 +73,7 @@
<div class="form-group">
<label for="refund_payment_type" class="required control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Select type of payment you want." mod="hotelreservationsyatem"}'>{l s="Select Payment Type" mod="hotelreservationsystem"}</span>
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Select type of deduction (percentage or fixed amount)." mod="hotelreservationsyatem"}'>{l s="Select deduction type" mod="hotelreservationsystem"}</span>
</label>
<div class="col-lg-8">
<div class="row">
@@ -89,7 +89,7 @@
<div class="form-group">
<label for="deduction_value_adv_pay" class="required control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Enter how much percent of total amount will be deducted as cancellation charges." mod="hotelreservationsyatem"}'>{l s='Deduction Value For Advance Payment' mod="hotelreservationsyatem"}</span>
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Enter deduction value (percentage or fixed amount) from the total amount, which will be deducted as cancellation charges for advance payment." mod="hotelreservationsyatem"}'>{l s='Deduction value for advance payment' mod="hotelreservationsyatem"}</span>
</label>
<div class="col-lg-2">
<div class="input-group">
@@ -101,7 +101,7 @@
<div class="form-group">
<label for="deduction_value_full_pay" class="required control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Enter how much percent of total amount will be deducted as cancellation charges." mod="hotelreservationsyatem"}'>{l s='Deduction Value For Full Payment' mod="hotelreservationsyatem"}</span>
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Enter deduction value (percentage or fixed amount) from the total amount, which will be deducted as cancellation charges for full payment." mod="hotelreservationsyatem"}'>{l s='Deduction value for full payment' mod="hotelreservationsyatem"}</span>
</label>
<div class="col-lg-2">
<div class="input-group">
@@ -113,7 +113,7 @@
<div class="form-group">
<label for="cancelation_days" class="required control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Enter the days How much days before this rule will be applied." mod="hotelreservationsyatem"}'>{l s='Days Before Cancellation' mod="hotelreservationsyatem"}</span>
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title='{l s="Enter before how many days of check in date, rule will be applied." mod="hotelreservationsyatem"}'>{l s='Days before cancellation' mod="hotelreservationsyatem"}</span>
</label>
<div class="col-lg-2">
<input class="form-control" type="text" id="cancelation_days" name="cancelation_days" {if isset($edit)} {if isset($refund_rules_info['days'])}style = "display:block;" value="{$refund_rules_info['days']}" {/if}{/if}>