Merge branch 'master' into staging-fixes

This commit is contained in:
Frappe Bot
2018-12-26 11:44:09 +00:00
13 changed files with 69 additions and 19 deletions

View File

@@ -91,6 +91,7 @@ class PurchaseOrder(BuyingController):
self.party_account_currency = get_party_account_currency("Supplier", self.supplier, self.company)
def validate_minimum_order_qty(self):
if not self.get("items"): return
items = list(set([d.item_code for d in self.get("items")]))
itemwise_min_order_qty = frappe._dict(frappe.db.sql("""select name, min_order_qty