เช็ตเลขบัตร

This commit is contained in:
kittapath 2024-11-29 14:16:29 +07:00
parent 03f269ddd0
commit 5d91ed91e4

View file

@ -230,9 +230,7 @@ class Extension {
public static ToThaiShortYear(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
return (
yy.toString()
);
return yy.toString();
}
public static sumObjectValues(array: any, propertyName: any) {
@ -247,6 +245,9 @@ class Extension {
public static CheckCitizen(value: string) {
let citizen = value;
if (citizen == null || citizen == "") {
return citizen;
}
if (citizen.length !== 13) {
throw new HttpError(
HttpStatus.NOT_FOUND,