update check citizen2

This commit is contained in:
AdisakKanthawilang 2025-07-17 14:39:02 +07:00
parent 657285ea6f
commit 9ea012f4d2
3 changed files with 14 additions and 28 deletions

View file

@ -1859,10 +1859,8 @@ export class ProfileEmployeeController extends Controller {
citizenIdDigits[11] * 2;
const calStp2 = cal % 11;
let chkDigit = 11 - calStp2;
if (chkDigit === 10) {
chkDigit = 1;
} else if (chkDigit === 11) {
chkDigit = chkDigit % 10;
if (chkDigit >= 10) {
chkDigit = 0;
}
if (citizenIdDigits[12] !== chkDigit) {
@ -1953,10 +1951,8 @@ export class ProfileEmployeeController extends Controller {
citizenIdDigits[11] * 2;
const calStp2 = cal % 11;
let chkDigit = 11 - calStp2;
if (chkDigit === 10) {
chkDigit = 1;
} else if (chkDigit === 11) {
chkDigit = chkDigit % 10;
if (chkDigit >= 10) {
chkDigit = 0;
}
if (citizenIdDigits[12] !== chkDigit) {