Fix coa summary zero

This commit is contained in:
2026-06-03 13:00:50 +07:00
parent 7c8c7fb7db
commit b90a3cde4a
6 changed files with 67 additions and 35 deletions
@@ -235,7 +235,7 @@ func (p *ProductRecipeProcessorImpl) entityToResponse(entity *entities.ProductRe
CreatedAt: entity.Ingredient.CreatedAt,
UpdatedAt: entity.Ingredient.UpdatedAt,
}
// Add unit if available
if entity.Ingredient.Unit != nil {
symbol := ""
@@ -253,4 +253,4 @@ func (p *ProductRecipeProcessorImpl) entityToResponse(entity *entities.ProductRe
}
return response
}
}