update pos consumer

This commit is contained in:
2026-03-29 18:07:10 +03:30
parent 1e2f94261e
commit c10623bc3f
86 changed files with 2935 additions and 385 deletions
@@ -0,0 +1,12 @@
import { ValidatorFn } from '@angular/forms';
export function nationalIdValidator(): ValidatorFn {
return (control) => {
if (control.value === null || control.value === undefined || control.value === '') {
return null;
}
return control.value.length === 10 && /^[0-9]{10}$/.test(control.value)
? null
: { nationalId: true };
};
}