fix: no need call for company method in sales invoice js

(cherry picked from commit e3bd8d10b0a99fca326c7252063ef11b3665d3cf)
This commit is contained in:
kunhi 2024-02-13 22:32:10 +04:00 committed by Mergify
parent 14fe0af887
commit bef38f74fe

View File

@ -13,26 +13,6 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e
this.setup_posting_date_time_check();
super.setup(doc);
}
company() {
super.company();
erpnext.accounts.dimensions.update_dimension(this.frm, this.frm.doctype);
let me = this;
if (this.frm.doc.company) {
frappe.call({
method:
"erpnext.accounts.party.get_party_account",
args: {
party_type: 'Customer',
party: this.frm.doc.customer,
company: this.frm.doc.company
},
callback: (response) => {
if (response) me.frm.set_value("debit_to", response.message);
},
});
}
}
onload() {
var me = this;
super.onload();