mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
fix: Supplier trigger onload
This commit is contained in:
@@ -28,7 +28,7 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
|
|||||||
|
|
||||||
// Trigger supplier event on load if supplier is available
|
// Trigger supplier event on load if supplier is available
|
||||||
// The reason for this is PI can be created from PR or PO and supplier is pre populated
|
// The reason for this is PI can be created from PR or PO and supplier is pre populated
|
||||||
if (this.frm.doc.supplier) {
|
if (this.frm.doc.supplier && this.frm.doc.__islocal) {
|
||||||
this.frm.trigger('supplier');
|
this.frm.trigger('supplier');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user