ทำฟังก์ชันกลางคำนวณปีงบประมาณ

This commit is contained in:
harid 2025-10-09 16:43:37 +07:00
parent fe4a174bf7
commit 3d9f922fc9
2 changed files with 13 additions and 1 deletions

View file

@ -385,7 +385,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
Description = req.Description,
Status = "NEW",
Type = req.Type.Trim().ToUpper(),
Year = req.Year == null ? DateTime.Now.Year : req.Year,
Year = req.Year == null ? DateTime.Now.CalculateFisicalYear() : req.Year,
CaseType = req.CaseType,
CaseNumber = req.CaseNumber,
Fullname = req.Fullname,