fix: actual qty resets to 0 on save of material receipt

This commit is contained in:
Mihir Kandoi
2025-12-31 17:28:48 +05:30
parent cb5926f59b
commit 349db6cfaf

View File

@@ -201,7 +201,7 @@ class StockEntry(StockController, SubcontractingInwardController):
def onload(self):
for item in self.get("items"):
item.update(get_bin_details(item.item_code, item.s_warehouse))
item.update(get_bin_details(item.item_code, item.s_warehouse or item.t_warehouse))
def before_insert(self):
if self.subcontracting_order and frappe.get_cached_value(