Skip to content

Commit

Permalink
fix: incorrect value of available_qty_for_consumption in subcontracti… (
Browse files Browse the repository at this point in the history
frappe#43836)

fix: incorrect value of available_qty_for_consumption in subcontracting receipt
  • Loading branch information
rohitwaghchaure authored Oct 28, 2024
1 parent 6d7c587 commit ad6ce09
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,12 @@ def set_available_qty_for_consumption(self):
supplied_items_details[item.name] = {}

for supplied_item in supplied_items:
if supplied_item.rm_item_code not in supplied_items_details[item.name]:
supplied_items_details[item.name][supplied_item.rm_item_code] = 0.0

supplied_items_details[item.name][
supplied_item.rm_item_code
] = supplied_item.available_qty
] += supplied_item.available_qty
else:
for item in self.get("supplied_items"):
item.available_qty_for_consumption = supplied_items_details.get(item.reference_name, {}).get(
Expand Down

0 comments on commit ad6ce09

Please sign in to comment.