fix issue #2007
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
harid 2025-11-19 17:44:58 +07:00
parent 7ee1477ee2
commit 65e85b7194

View file

@ -501,13 +501,18 @@ namespace BMA.EHR.Placement.Service.Controllers
int calStp2 = cal % 11;
int chkDigit = 11 - calStp2;
if (chkDigit == 10)
//////if (chkDigit == 10)
//////{
////// chkDigit = 1;
//////}
//////else if (chkDigit == 11)
//////{
////// chkDigit = chkDigit % 10;
//////}
if (chkDigit >= 10)
{
chkDigit = 1;
}
else if (chkDigit == 11)
{
chkDigit = chkDigit % 10;
chkDigit = 0;
}
if (citizenIdDigits[12] != chkDigit)
@ -817,13 +822,9 @@ namespace BMA.EHR.Placement.Service.Controllers
int calStp2 = cal % 11;
int chkDigit = 11 - calStp2;
if (chkDigit == 10)
if (chkDigit >= 10)
{
chkDigit = 1;
}
else if (chkDigit == 11)
{
chkDigit = chkDigit % 10;
chkDigit = 0;
}
if (citizenIdDigits[12] != chkDigit)