Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 56s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 56s
This commit is contained in:
commit
7a8691ee61
2 changed files with 7 additions and 0 deletions
|
|
@ -789,6 +789,9 @@ export class DevelopmentScholarshipController extends Controller {
|
||||||
if (!getDevelopment) {
|
if (!getDevelopment) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทุนการศึกษา/ฝึกอบรมนี้");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลทุนการศึกษา/ฝึกอบรมนี้");
|
||||||
}
|
}
|
||||||
|
if (getDevelopment.status == "PENDING") {
|
||||||
|
getDevelopment.status = "REPORTED";
|
||||||
|
}
|
||||||
const before = structuredClone(getDevelopment);
|
const before = structuredClone(getDevelopment);
|
||||||
Object.assign(getDevelopment, requestBody);
|
Object.assign(getDevelopment, requestBody);
|
||||||
getDevelopment.lastUpdateUserId = request.user.sub;
|
getDevelopment.lastUpdateUserId = request.user.sub;
|
||||||
|
|
|
||||||
|
|
@ -628,6 +628,10 @@ export class ReportController extends Controller {
|
||||||
field: getDevelopment.field,
|
field: getDevelopment.field,
|
||||||
studyPlace: getDevelopment.studyPlace,
|
studyPlace: getDevelopment.studyPlace,
|
||||||
scholarshipType: getDevelopment.scholarshipType,
|
scholarshipType: getDevelopment.scholarshipType,
|
||||||
|
bookNo:
|
||||||
|
getDevelopment.bookNo == null
|
||||||
|
? ""
|
||||||
|
: Extension.ToThaiNumber(getDevelopment.bookNo),
|
||||||
bookNoDate:
|
bookNoDate:
|
||||||
getDevelopment.bookNoDate == null
|
getDevelopment.bookNoDate == null
|
||||||
? ""
|
? ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue