fix: getColumnLabel label posNo
This commit is contained in:
parent
87257cd1bf
commit
710e9fe7b3
3 changed files with 20 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue