mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
[issues #437] [fix] pulling terms and conditions
This commit is contained in:
@@ -50,12 +50,12 @@ class BuyingController(StockController):
|
||||
self.set_missing_item_details(get_item_details)
|
||||
|
||||
def set_supplier_defaults(self):
|
||||
self.get_default_supplier_address(self.doc.fields)
|
||||
self.doc.fields.update(self.get_default_supplier_address(self.doc.fields))
|
||||
|
||||
def get_purchase_tax_details(self):
|
||||
self.doclist = self.doc.clear_table(self.doclist, "purchase_tax_details")
|
||||
self.set_taxes()
|
||||
|
||||
|
||||
def validate_warehouse_belongs_to_company(self):
|
||||
for warehouse, company in webnotes.conn.get_values("Warehouse",
|
||||
self.doclist.get_distinct_values("warehouse"), "company").items():
|
||||
@@ -286,4 +286,4 @@ class BuyingController(StockController):
|
||||
from `tabItem` where name in (%s) and is_purchase_item='Yes'""" % \
|
||||
(", ".join((["%s"]*len(item_codes))),), item_codes)]
|
||||
|
||||
return self._purchase_items
|
||||
return self._purchase_items
|
||||
Reference in New Issue
Block a user