Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
3d8a69b6a6
@ -166,7 +166,7 @@ class DocType(SellingController):
|
|||||||
super(DocType, self).validate_with_previous_doc(self.tname, {
|
super(DocType, self).validate_with_previous_doc(self.tname, {
|
||||||
"Quotation": {
|
"Quotation": {
|
||||||
"ref_dn_field": "prevdoc_docname",
|
"ref_dn_field": "prevdoc_docname",
|
||||||
"compare_fields": [["customer", "="], ["company", "="], ["currency", "="]]
|
"compare_fields": [["company", "="], ["currency", "="]]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -396,7 +396,9 @@ def map_party_contact_details(contact_name=None, party_field=None, party_name=No
|
|||||||
if not contact_name and party_field:
|
if not contact_name and party_field:
|
||||||
contact_name = get_default_contact(party_field, party_name)
|
contact_name = get_default_contact(party_field, party_name)
|
||||||
|
|
||||||
contact = webnotes.conn.sql("""select * from `tabContact` where name=%s""", contact_name, as_dict=True)
|
if contact_name:
|
||||||
|
contact = webnotes.conn.sql("""select * from `tabContact` where name=%s""",
|
||||||
|
contact_name, as_dict=True)
|
||||||
|
|
||||||
if contact:
|
if contact:
|
||||||
contact = contact[0]
|
contact = contact[0]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user