Automate values on inventory adjustment Record in NetSuite

A Customer want to automate few values on the inventory adjustment record here I am writing few updates on how easily you can achieve the customization via User event or Client script.  Here we choose  Adjustment Account, fielded: Account (Select the appropriate account for inventory adjustments. Usually, this will be an expense account. For details on accounts, go to Setup > Accounting > Chart of Accounts.) and

 Adjustment Location Field id: Adjlocation( To select the location to associate with this adjustment transaction:

1.Select New to enter a new location.

2.Go to Setup > Company > Locations for information on existing locations.)

The values for the fields of Account and Adjlocation of Inventory Adjustment records are dependent on the Subsidiary record. Thus, to set the values via a Client script, it is needed to set the Subsidiary value first via a User Event script before setting the value of Account and Adjlocation via postSourcing. this can be Achieved via Client and User Event scripts:

User Event Script:

define([ ‘N/error’ ], function(error) {

              function beforeLoad(scriptContext) {

                             var MyRecord = scriptContext.newRecord;


                                           fieldId : ‘subsidiary’,

                                           value : 123,

                                           ignoreFieldChange : true,

                                           fireSlavingSync : true



                                           title : ‘Debug’,

                                           details : ‘Account ‘



                                           fieldId : ‘account’,

                                           value : 999,

                                           ignoreFieldChange : true,

                                           fireSlavingSync : true



              return {

                             beforeLoad : beforeLoad



Reference :, netsuite help  and netsuite guide.

Feel free to reach out Netsuite Solution provider  TheSmilingCoders for proper netsuite implementationnetsuite consultation , netsuite customizationnetsuite Supportnetsuite Training NetSuite Celigo Integration , Celigo ConsultantCeligo Integration Consultant.

contact us :

Facebook :

Linkedin :



November 25, 2020 at 5:13 am

generic viagra online in usa where to buy female viagra us sildenafil 50 mg tablet coupon


November 26, 2020 at 9:57 pm

real viagra 100mg sildenafil 20 mg discount sildenafil generic costs


November 26, 2020 at 10:22 pm

site sur pour commander viagra cuanto se demora el viagra en hacer efecto viagra generic vs brand name


November 28, 2020 at 2:05 pm

citing a website in an essay research paper writing services 500 word research paper


November 28, 2020 at 2:18 pm

writing quotes in essays college essay helper research paper hypothesis


November 28, 2020 at 11:02 pm

brand pfizer viagra online pfirer viagra viagra under 50


November 29, 2020 at 6:23 am

writing a thank you speech kinds of essay writing dissertation undergraduate


November 30, 2020 at 3:46 am

pay to write a paper best website to buy essays mba essay advice

Leave a Reply