I created a simple user event script for Receive I...
# general
r
I created a simple user event script for Receive Inbound Shipment:
Copy code
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?
b
are you sure this action is possible in the ui
unsetting
receiveitem
usually means you arent receiving quantity
if you arent receiving quantity, you cant set the quantity
r
I tried without checkbox line, the same problem
b
its is a pretty weird recordd, it just may not be settable