I seem to have found a bug was wondering if anyone...
# suitescript
s
I seem to have found a bug was wondering if anyone had this
Copy code
when calling record.transform from Transfer order to an item receipt,it does not work if more there is more  than one item fulfillment 
it won't even create one item receipt ---  BUG
b
receive the item receipt in the ui and pay attention to the url parameters netsuite uses to generate the item receipt
url parameters are default values you set while transforming
s
Do you mean when you click receive and it gives you the option to receive multiple? regardless that is missing from docs and suite answers
yes if there are two item fulfillment in the UI URL is different
Copy code
app/accounting/transactions/purchordermanager.nl?type=receive&trnfrordkey=10101476
single item fulfillment
Copy code
app/accounting/transactions/itemrcpt.nl?transform=trnfrord&whence=&id=10101476&e=T&memdoc=0
b
the order manager has links to receive specific fulfillments
click the link and it will show the normal item receipt page with a new url parameter you need to use
s
Copy code
url=app/accounting/transactions/itemrcpt.nl?e=T&memdoc=0&transform=trnfrord&itemfulfillment=10101578&id=10101476
so you pass in the url
Copy code
defaultValues: {url},
yes i can build the url in the script with IF ID and TO ID
b
as in the
defaultValues: {itemfulfillment: '10101578'}
s
thanks @battk that worked
I would still say that this is undocumented if two IF it will fail and need the value passed in . if one then it will default to the current IF
b
same behavior as in the ui
you need to pick the item fulfillment when there is more than 1