fix format report data

This commit is contained in:
AdisakKanthawilang 2024-06-06 14:39:41 +07:00
parent 8f7f8eaab6
commit b415035aeb
2 changed files with 28 additions and 11 deletions

View file

@ -112,6 +112,17 @@ class Extension {
);
}
public static ToThaiShortDate_noPrefix(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
return (
value.getDate() +
" " +
Extension.ToThaiShortMonth(value.getMonth() + 1) +
" " +
yy.toString().slice(-2)
);
}
public static sumObjectValues(array: any, propertyName: any) {
let sum = 0;
for (let i = 0; i < array.length; i++) {