User event script for Receive Inbound Shipment

I created a simple user event script for Receive Inbound Shipment:

function beforeLoad(type,form)
for (var i = 1; i <= nlapiGetLineItemCount('receiveitems'); i++)
nlapiSetLineItemValue('receiveitems','receiveitem',i, 'F');

Checkbox ‘receiveitem’ work correct, but setting value ‘1’ for field ‘quantitytobereceived’ doesn’t work. Can anybody help with this problem?

Rookie Asked on June 22, 2020 in SuiteScript.
Add Comment
1 Answer(s)

Any chance it isn’t working because the inventory detail is not configured?

Intermediate Answered on June 22, 2020.

I can change value in ‘ quantitytobereceived’ manually.

on June 22, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor