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

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

@ -424,6 +424,18 @@ namespace BMA.EHR.Domain.Extensions
};
}
public static int CalculateFisicalYear(this DateTime value)
{
if (value.Month >= 10)
{
return value.Year + 1;
}
else
{
return value.Year;
}
}
#endregion
#endregion