Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Why Landed Cost Accrual not working properly on afterSubmit event on Item Receipts?
For the longest time, this has not worked properly. Sometimes the value gets set, other times it does not. I just did a bunch of testing and can't understand this at all.
Trying to calculate the total cost of all lines and then take a percentage of that value to pop into the "Landed Cost Accrual" field. Each time I do this, all other fields set but this one doesn't. I've also tried to use nlapiSubmitField('itemreceipt', recID, 'landedcostamount1', caclCost); and that doesn't work. HOWEVER, it works when I do it through the console. It's almost as if something runs on afterSubmit that wipes this out.
Tagged:
0