Discussions
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.