fix: Billing address not fetched in Purchase Invoice
This commit is contained in:
@@ -27,12 +27,8 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
company() {
|
|
||||||
erpnext.accounts.dimensions.update_dimension(this.frm, this.frm.doctype);
|
|
||||||
}
|
|
||||||
|
|
||||||
onload() {
|
onload() {
|
||||||
super.onload();
|
this._super();
|
||||||
|
|
||||||
if(!this.frm.doc.__islocal) {
|
if(!this.frm.doc.__islocal) {
|
||||||
// show credit_to in print format
|
// show credit_to in print format
|
||||||
@@ -569,5 +565,9 @@ frappe.ui.form.on("Purchase Invoice", {
|
|||||||
frm: frm,
|
frm: frm,
|
||||||
freeze_message: __("Creating Purchase Receipt ...")
|
freeze_message: __("Creating Purchase Receipt ...")
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
|
||||||
|
company: function(frm) {
|
||||||
|
erpnext.accounts.dimensions.update_dimension(frm, frm.doctype);
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -888,9 +888,6 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.frm.doc.posting_date) var date = this.frm.doc.posting_date;
|
|
||||||
else var date = this.frm.doc.transaction_date;
|
|
||||||
|
|
||||||
if (frappe.meta.get_docfield(this.frm.doctype, "shipping_address") &&
|
if (frappe.meta.get_docfield(this.frm.doctype, "shipping_address") &&
|
||||||
in_list(['Purchase Order', 'Purchase Receipt', 'Purchase Invoice'], this.frm.doctype)) {
|
in_list(['Purchase Order', 'Purchase Receipt', 'Purchase Invoice'], this.frm.doctype)) {
|
||||||
erpnext.utils.get_shipping_address(this.frm, function(){
|
erpnext.utils.get_shipping_address(this.frm, function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user