[fix] Set actual qty onload of the draft stock entry. Fixed #5172
This commit is contained in:
parent
f1b276122e
commit
32b2a7795e
@ -27,7 +27,6 @@ class StockEntry(StockController):
|
|||||||
return _("From {0} to {1}").format(self.from_warehouse, self.to_warehouse)
|
return _("From {0} to {1}").format(self.from_warehouse, self.to_warehouse)
|
||||||
|
|
||||||
def onload(self):
|
def onload(self):
|
||||||
if self.docstatus==1:
|
|
||||||
for item in self.get("items"):
|
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))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user