Created
May 16, 2015 10:52
-
-
Save rs77/03fe5ed629e495b5b7e5 to your computer and use it in GitHub Desktop.
Couldn't find an easy way to change the Department field on a per line basis in NetSuite, so ended up using a jQuery hack that ran in the browser's console.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery("td:contains('Company (10)')").each( | |
function( i, el ) { | |
jQuery(el).click(); | |
jQuery("input[name='department']").val("9"); | |
jQuery("input#indx_department").val("23"); | |
jQuery("input[name='department_display']").val("Trading (18 CEM)"); | |
jQuery("input#item_addedit").click(); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment