Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 56s

This commit is contained in:
harid 2026-03-06 15:31:44 +07:00
commit 7a8691ee61
2 changed files with 7 additions and 0 deletions

View file

@ -789,6 +789,9 @@ export class DevelopmentScholarshipController extends Controller {
if (!getDevelopment) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทุนการศึกษา/ฝึกอบรมนี้");
}
if (getDevelopment.status == "PENDING") {
getDevelopment.status = "REPORTED";
}
const before = structuredClone(getDevelopment);
Object.assign(getDevelopment, requestBody);
getDevelopment.lastUpdateUserId = request.user.sub;

View file

@ -628,6 +628,10 @@ export class ReportController extends Controller {
field: getDevelopment.field,
studyPlace: getDevelopment.studyPlace,
scholarshipType: getDevelopment.scholarshipType,
bookNo:
getDevelopment.bookNo == null
? ""
: Extension.ToThaiNumber(getDevelopment.bookNo),
bookNoDate:
getDevelopment.bookNoDate == null
? ""