[minor] remove letter head / terms from purchase invoice, fixes #3328, #3345

This commit is contained in:
Rushabh Mehta 2015-05-27 12:29:57 +05:30
parent e7b37af525
commit c185734bf3
2 changed files with 831 additions and 838 deletions

File diff suppressed because it is too large Load Diff

View File

@ -209,9 +209,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
me.frm.set_value('plc_conversion_rate', 1.0);
}
if (company_doc.default_letter_head) {
me.frm.set_value("letter_head", company_doc.default_letter_head);
if(me.frm.fields_dict.letter_head) {
me.frm.set_value("letter_head", company_doc.default_letter_head);
}
}
if (company_doc.default_terms) {
if (company_doc.default_terms && me.frm.doc.doctype != "Purchase Invoice") {
me.frm.set_value("tc_name", company_doc.default_terms);
}