Merge pull request #5180 from nabinhait/stock_entry_actual_qty
[fix] Set actual qty onload of the draft stock entry. Fixed #5172
This commit is contained in:
commit
b713406e22
@ -27,9 +27,8 @@ class StockEntry(StockController):
|
||||
return _("From {0} to {1}").format(self.from_warehouse, self.to_warehouse)
|
||||
|
||||
def onload(self):
|
||||
if self.docstatus==1:
|
||||
for item in self.get("items"):
|
||||
item.update(get_bin_details(item.item_code, item.s_warehouse))
|
||||
for item in self.get("items"):
|
||||
item.update(get_bin_details(item.item_code, item.s_warehouse))
|
||||
|
||||
def validate(self):
|
||||
self.pro_doc = None
|
||||
|
Loading…
Reference in New Issue
Block a user