mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-05 11:33:56 +00:00
Don't run company trigger on amendment
This commit is contained in:
@@ -26,7 +26,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
||||
me.frm.set_value(fieldname, value);
|
||||
});
|
||||
|
||||
if(this.frm.doc.company) {
|
||||
if(this.frm.doc.company && !this.frm.doc.amended_from) {
|
||||
cur_frm.script_manager.trigger("company");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user