RE: 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','quantitytobereceived',i,1);
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?

betwixt Rookie Asked on June 22, 2020 in SuiteScript.
Add Comment
1 Answers

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.