add livestock weight types to allocation info for pos
This commit is contained in:
@@ -64,7 +64,7 @@ def rancher_quota_weight(rancher, inventory_entry: InventoryEntry):
|
||||
count = livestock_counts.get(live_stock_meta.get(animal_type), 0)
|
||||
|
||||
weight = per_head * count
|
||||
details[animal_type] = weight
|
||||
details[animal_type] = {"weight": weight, "type": alloc.livestock_type.weight_type}
|
||||
total_weight += weight
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user