Merge pull request #18824 from rohitwaghchaure/fix_actual_qty_showing_different_in_the_report_and_form

fix: Actual qty in the sales order showing different on the sales ord…
This commit is contained in:
rohitwaghchaure
2019-08-29 09:23:32 +05:30
committed by GitHub

View File

@@ -31,7 +31,7 @@ class SellingController(StockController):
def onload(self):
super(SellingController, self).onload()
if self.doctype in ("Sales Order", "Delivery Note", "Sales Invoice"):
if self.docstatus==0 and 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))