commit | 92593bb717c1cdf031733875191c4f2dca64fa91 | [log] [tgz] |
---|---|---|
author | Himanshu Warekar <himanshuwarekar@yahoo.com> | Sat Mar 23 19:46:31 2019 +0530 |
committer | Himanshu Warekar <himanshuwarekar@yahoo.com> | Sat Mar 23 19:46:31 2019 +0530 |
tree | ce346716ee9a266f565b6155d6690afb16f4f52b | |
parent | 56e491bccdd170c3aa78731ea698789a1bd20bc4 [diff] |
fix: Cost center as per company
diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js index c94c85c..97b6036 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
@@ -468,7 +468,7 @@ cur_frm.cscript.cost_center = function(doc, cdt, cdn){ var d = locals[cdt][cdn]; - if(d.idx == 1 && d.cost_center){ + if(d.cost_center){ var cl = doc.items || []; for(var i = 0; i < cl.length; i++){ if(!cl[i].cost_center) cl[i].cost_center = d.cost_center;