adjust calculate umur ayam at recording

This commit is contained in:
giovanni
2026-05-04 11:30:53 +07:00
parent cee59c2b99
commit 0ac40adb5a
5 changed files with 47 additions and 19 deletions
@@ -31,7 +31,7 @@ func FlockAgeDay(originDate time.Time, periodDate time.Time) int {
if period.Before(origin) {
return 0
}
return int(period.Sub(origin).Hours()/24) + 1
return int(period.Sub(origin).Hours() / 24)
}
func DepreciationScheduleDay(originDate time.Time, periodDate time.Time, houseType string) int {