minor fix

This commit is contained in:
Nabin Hait 2018-06-14 17:09:55 +05:30
parent 44341c1637
commit d1f40ad0b6

View File

@ -343,7 +343,7 @@ class StockController(AccountsController):
raise frappe.ValidationError
def update_blanket_order(self):
blanket_orders = list(set([d.blanket_order for d in self.items]))
blanket_orders = list(set([d.blanket_order for d in self.items if d.blanket_order]))
for blanket_order in blanket_orders:
frappe.get_doc("Blanket Order", blanket_order).update_ordered_qty()