From b739264243bf7351ffbd30f9387036084457fa5f Mon Sep 17 00:00:00 2001 From: nabinhait Date: Mon, 28 Jul 2014 14:55:08 +0530 Subject: [PATCH] Don't run company trigger on amendment --- erpnext/public/js/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js index 93dd432f55..95c7963c4e 100644 --- a/erpnext/public/js/transaction.js +++ b/erpnext/public/js/transaction.js @@ -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"); } }