commit | 1758357a0aea8728bb21591799c936ebf15b48f2 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Mon Mar 02 19:22:28 2015 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Tue Mar 03 11:08:22 2015 +0530 |
tree | b984df2360447b657104f952924b4d989349993e | |
parent | 593d56265feee76f1c663cb9d0e184c897e5d2f8 [diff] |
[item] toggle reqd, fixes #2832
diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index eec8ec2..0face22 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js
@@ -109,6 +109,9 @@ method: "copy_specification_from_item_group" }); }, + is_stock_item: function(frm) { + erpnext.item.toggle_reqd(frm); + } }); $.extend(erpnext.item, {