Update the error message text

This commit is contained in:
aradhana kumari
2026-08-18 15:52:19 +05:30
parent 1adc3d0493
commit f08bed4c20

View File

@@ -271,11 +271,11 @@ public function initPageHeaderToolbar()
if (Tools::getValue('submitCreditSlip')) {
$creditSlipAmount = trim(Tools::getValue('credit_slip_amount'));
if (empty($creditSlipAmount)) {
$this->errors[] = $this->l('Credit slip Amount is required for the generate credit slip');
$this->errors[] = $this->l('Credit slip amount is required.');
} elseif (!is_numeric($creditSlipAmount)) {
$this->errors[] = $this->l('Credit slip Amount must be a valid number');
$this->errors[] = $this->l('Credit slip amount is not valid');
} elseif ((float) $creditSlipAmount <= 0) {
$this->errors[] = $this->l('Credit slip Amount must be greater than 0');
$this->errors[] = $this->l('Credit slip amount must be greater than 0');
}
$remark = trim(Tools::getValue('remark'));