copy letter head from invoice to payment entry

This commit is contained in:
Nabin Hait 2017-03-12 15:22:02 +05:30
parent 6923397ef6
commit d0d22ff203
2 changed files with 3 additions and 1 deletions

View File

@ -684,6 +684,7 @@ def get_payment_entry(dt, dn, party_amount=None, bank_account=None, bank_amount=
pe.paid_amount = paid_amount
pe.received_amount = received_amount
pe.allocate_payment_amount = 1
pe.letter_head = doc.get("letter_head")
pe.append("references", {
"reference_doctype": dt,

View File

@ -31,7 +31,8 @@ frappe.ui.form.on("Company", {
},
onload_post_render: function(frm) {
frm.get_field("delete_company_transactions").$input.addClass("btn-danger");
if(frm.get_field("delete_company_transactions").$input)
frm.get_field("delete_company_transactions").$input.addClass("btn-danger");
},
country: function(frm) {
erpnext.company.set_chart_of_accounts_options(frm.doc);