fix: getColumnLabel posNo

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-25 10:36:53 +07:00
parent 7543a40967
commit d457a7694e
8 changed files with 65 additions and 98 deletions

View file

@ -60,3 +60,16 @@ export function calculateAge(birthDate: Date | null) {
return `${years} ปี ${months} เดือน ${days} วัน`;
}
/**
*
* @param col
* @param isAct
* @returns
*/
export function getColumnLabel(col: any, isAct: boolean) {
if (col.name === "posNo" && isAct) {
return "เลขที่ตำแหน่ง (รักษาการแทน)";
}
return col.label;
}