fix: Update matricule format
This commit is contained in:
parent
c332696024
commit
8ee5a940c4
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ class Salarie extends Model
|
|||
*/
|
||||
public static function getFormattedMatricule(string $matricule): string
|
||||
{
|
||||
return ltrim(preg_replace('/[^\d]/', '', $matricule), '0');
|
||||
return str_pad(ltrim(preg_replace('/[^\d]/', '', $matricule), '0'), 7, "0", STR_PAD_LEFT);
|
||||
}
|
||||
|
||||
// * RELATIONSHIPS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue