This commit is contained in:
giovanni
2026-04-22 01:44:37 +07:00
parent 091f706276
commit fec7bb5825
3 changed files with 79 additions and 6 deletions
@@ -312,10 +312,10 @@ func (u *ProjectflockController) LookupProjectFlockKandang(c *fiber.Ctx) error {
mapped := warehouseDTO.ToWarehouseRelationDTO(*warehouse)
dtoResult.Warehouse = &mapped
}
if isTransition, isLaying, serr := u.ProjectflockService.GetProjectFlockKandangTransferStateAtDate(c, result.Id, recordDate); serr != nil {
if _, isLaying, serr := u.ProjectflockService.GetProjectFlockKandangTransferStateAtDate(c, result.Id, recordDate); serr != nil {
return serr
} else {
dtoResult.IsTransition = isTransition
dtoResult.IsTransition = false
dtoResult.IsLaying = isLaying
}
applyCutOverLayingLookupOverride(&dtoResult)