Advertisement
Guest User

set_value_on_trigger.js

a guest
Mar 14th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. cur_frm.cscript.item_group = function(doc) {
  2. if(doc.item_group="Finished Goods") {
  3. cur_frm.set_value("default_warehouse", "Finished Goods Warehouse");
  4. cur_frm.set_value("is_purchase_item", "No");
  5. }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement