[minor] sales invoice to delivery note mapping and prevdoc validation

This commit is contained in:
Nabin Hait
2013-07-29 13:27:18 +05:30
parent 354d0bdca8
commit 90d74d4bfa
5 changed files with 65 additions and 15 deletions

View File

@@ -8,5 +8,5 @@ class DocType:
self.doc, self.doclist = d, dl
def validate(self):
for key in ["cust_master_name", "customer_group", "territory", "allow_same_sales_rate"]:
for key in ["cust_master_name", "customer_group", "territory", "maintain_same_sales_rate"]:
webnotes.conn.set_default(key, self.doc.fields.get(key, ""))