Fix formatting

This commit is contained in:
2026-06-08 12:30:39 +07:00
parent 69d8c8ce5e
commit 29aeb58fc0
25 changed files with 149 additions and 156 deletions
+2 -2
View File
@@ -20,11 +20,11 @@ func CalculateWasteQuantities(productIngredients []*entities.ProductIngredient,
for _, pi := range productIngredients {
// Calculate net quantity (actual quantity needed for the product)
netQty := pi.Quantity * quantity
// Calculate gross quantity (including waste)
wasteMultiplier := 1 + (pi.WastePercentage / 100)
grossQty := netQty * wasteMultiplier
// Calculate waste quantity
wasteQty := grossQty - netQty