Merge branch 'version-11-hotfix' into v11_optimized_code_to_get_items_for_pos
This commit is contained in:
@@ -31,7 +31,7 @@ class SellingController(StockController):
|
|||||||
|
|
||||||
def onload(self):
|
def onload(self):
|
||||||
super(SellingController, self).onload()
|
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"):
|
for item in self.get("items"):
|
||||||
item.update(get_bin_details(item.item_code, item.warehouse))
|
item.update(get_bin_details(item.item_code, item.warehouse))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user