mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
Gocardless correction (#15554)
This commit is contained in:
committed by
Rushabh Mehta
parent
b2281cc1fd
commit
3b11debcd2
@@ -46,8 +46,10 @@ def check_mandate(data, reference_doctype, reference_docname):
|
|||||||
prefilled_customer = {
|
prefilled_customer = {
|
||||||
"company_name": payer.name,
|
"company_name": payer.name,
|
||||||
"given_name": primary_contact.first_name,
|
"given_name": primary_contact.first_name,
|
||||||
"family_name": primary_contact.last_name,
|
|
||||||
}
|
}
|
||||||
|
if primary_contact.last_name is not None:
|
||||||
|
prefilled_customer.update({"family_name": primary_contact.last_name})
|
||||||
|
|
||||||
if primary_contact.email_id is not None:
|
if primary_contact.email_id is not None:
|
||||||
prefilled_customer.update({"email": primary_contact.email_id})
|
prefilled_customer.update({"email": primary_contact.email_id})
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user