fix: allow editing sold egg weight on recording

This commit is contained in:
Adnan Zahir
2026-05-02 17:03:57 +07:00
parent 28fd711ece
commit da99bf1429
3 changed files with 65 additions and 1 deletions
@@ -148,6 +148,19 @@ func EggTotalsEqual(a, b map[uint]EggTotals) bool {
return true
}
func EggQtyByWarehouseEqual(a, b map[uint]EggTotals) bool {
if len(a) != len(b) {
return false
}
for key, value := range a {
other, ok := b[key]
if !ok || value.Qty != other.Qty {
return false
}
}
return true
}
func DepletionRouteMapsEqual(a, b map[DepletionRoute]float64) bool {
if len(a) != len(b) {
return false