-**Global** date.js

-แก้ไข  Expense สมบูรแบบ
This commit is contained in:
x2Skyz
2025-11-25 15:47:20 +07:00
parent d29744bcfb
commit 5e22a0af02
4 changed files with 90 additions and 26 deletions

View File

@@ -57,11 +57,11 @@ export class BudgetExpenseController {
// ถ้าเจอ Project (aryResult.length >= 1)
if (aryResult.length > 0) {
// [Check 1] เช็คว่าโครงการนี้อนุมัติไปแล้วหรือยัง?
const project = aryResult[0];
if (project.prjcomstt === 'BAP') {
return sendError('โครงการนี้ได้รับการอนุมัติงบประมาณไปแล้ว ไม่สามารถทำรายการซ้ำได้', 'Project Already Approved');
}
// // [Check 1] เช็คว่าโครงการนี้อนุมัติไปแล้วหรือยัง?
// const project = aryResult[0];
// if (project.prjcomstt === 'BAP') {
// return sendError('โครงการนี้ได้รับการอนุมัติงบประมาณไปแล้ว ไม่สามารถทำรายการซ้ำได้', 'Project Already Approved');
// }
// เรียก makeArySave เพื่อทำการตัดงบ
const promise = await this.makeArySave(req, database);