helper igr
This commit is contained in:
parent
f8ce413fa0
commit
4346c80801
@ -37,7 +37,7 @@ if (!function_exists('generate_igr_number')) {
|
||||
$type = 1; // IGRNO/25-26/00001 // 2025 april onwards karthick asked to changed this type.
|
||||
} elseif (preg_match('/^\w+-\d+$/', $last_igrno)) {
|
||||
// echo $last_igrno;
|
||||
$type = 2; // IGRNO-00001 // karthick asked to checked this type 2023- 2025 april
|
||||
$type = 2; // IGRNO-0001 // karthick asked to checked this type 2023- 2025 april
|
||||
} else {
|
||||
// echo $last_igrno;
|
||||
$type = 3; // IGRNO00001 // very first time we followed this type
|
||||
@ -47,7 +47,7 @@ if (!function_exists('generate_igr_number')) {
|
||||
$result = explode('/', $last_igrno);
|
||||
$requestedFinYear = $result[1];
|
||||
$leftPad = "IGR";
|
||||
$digit = 5;
|
||||
$digit = 4;
|
||||
|
||||
if($requestedFinYear == $shortenFinYear){ // here i am comparing the shoren fin year
|
||||
$number = ((int)$result[2])+1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user