Change in payroll save : GWM

This commit is contained in:
Smart 2024-09-18 08:17:23 +05:30
parent be86795246
commit 8674ff7f1c

View File

@ -939,18 +939,21 @@ class Payslip extends BaseController
$Festivalbonus_first = explode(".", $Festival_Bonus);
if (!is_numeric($Festival_Bonus) || (strlen((string)$Festival_Bonus)) > 8 || (strlen((string)$Festivalbonus_first[0])) > 5) {
// echo $EmpID . "-Festival bonus Invalid Data!";
$ErrorFlag++;
}
$Other_Deductions_first = explode(".", $Other_Deductions);
if (!is_numeric($Other_Deductions) || (strlen((string)$Other_Deductions)) > 8 || (strlen((string)$Other_Deductions_first[0])) > 5) {
//echo $EmpID . "-Loan Recoverd Invalid Data!";
// echo $EmpID . "-Other Deductions Invalid Data!";
$ErrorFlag++;
}
$Estimate_first = explode(".", $Estimate);
if (!is_numeric($Estimate) || (strlen((string)$Estimate)) > 8 || (strlen((string)$Estimate_first[0])) > 5) {
//echo $EmpID . "-Loan Recoverd Invalid Data!";
if (!is_numeric($Estimate) || (strlen((string)$Estimate)) > 8 || (strlen((string)$Estimate_first[0])) > 6) {
// echo $Estimate_first[0];
// echo $EmpID . "-Estimate Invalid Data!";
$ErrorFlag++;
}