fix: getColumnLabel label posNo

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-25 10:42:46 +07:00
parent 87257cd1bf
commit 710e9fe7b3
3 changed files with 20 additions and 12 deletions

View file

@ -8,3 +8,16 @@ export function calculateFiscalYear(date: Date) {
const month = date.getMonth() + 1;
return month >= 10 ? date.getFullYear() + 1 : date.getFullYear();
}
/**
*
* @param col
* @param isAct
* @returns
*/
export function getColumnLabel(col: any, isAct: boolean) {
if (col.name === "posNo" && isAct) {
return `${col.label} (รักษาการแทน)`;
}
return col.label;
}