简体   繁体   中英

Updating field on GL Impact on Item Fullfillment record

I'm trying to update fields on GL Impact Sublist of a Item Fullfillment record. I do not know which sublist ID to assign it. To then loop through each line and update a field on the sublist record.

Can anyone assist on what I need to do in Suitescript

You can not edit GL Impact lines using script or even using the UI. The GL Impact is calculated by Netsuite based on the Transaction data (in your case, based on the Item Fulfillment record data), like the selected Accounts (or the concerned Items accounts), the Transaction Status or Approval Status...

Although @b-assem is correct in that you cannot directly affect the GL Impact of a transaction you can do this after a fashion using the 'Custom GL Lines Plug-in'. Search for that in the Netsuite help for more details.

The plugin calls a script every time the GL impact of a transaction is updated so it should be quick or it could have a major impact on your account's performance.

basically it allows you to reverse some or all of the GL impacts of your transaction and to add new GL Lines to balance those reversals.

You could also do much the same by scripting a JE in an Item Fulfillment After Submit Event script but that is a much more involved process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM