copy letter head from invoice to payment entry
This commit is contained in:
parent
6923397ef6
commit
d0d22ff203
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user