Merge pull request #18908 from rohitwaghchaure/update_qty_even_after_submission_of_the_sales_transaction

fix: update actual qty even after submission of the sales transactions
This commit is contained in:
rohitwaghchaure
2019-09-03 15:59:26 +05:30
committed by GitHub

View File

@@ -31,7 +31,7 @@ class SellingController(StockController):
def onload(self):
super(SellingController, self).onload()
if self.docstatus==0 and self.doctype in ("Sales Order", "Delivery Note", "Sales Invoice"):
if self.doctype in ("Sales Order", "Delivery Note", "Sales Invoice"):
for item in self.get("items"):
item.update(get_bin_details(item.item_code, item.warehouse))