more updates to party

This commit is contained in:
Rushabh Mehta
2014-01-29 15:26:04 +05:30
parent 49dd7bee87
commit 24da761a17
11 changed files with 61 additions and 50 deletions

View File

@@ -35,10 +35,10 @@ class SellingController(StockController):
def set_missing_lead_customer_details(self):
from erpnext.selling.doctype.customer.customer import get_customer_details
if self.doc.customer:
self.doc.update_if_not_set(get_customer_details(self.doc.customer))
self.doc.update_if_missing(get_customer_details(self.doc.customer))
elif self.doc.lead:
self.doc.update_if_not_set(self.get_lead_defaults())
self.doc.update_if_missing(self.get_lead_defaults())
def set_price_list_and_item_details(self):
self.set_price_list_currency("Selling")