Hello everyone, I'm attempting to transform a Sale...
# suitescript
r
Hello everyone, I'm attempting to transform a Sales Order into an Invoice while populating the inventory details from the Item Fulfillment. However, I keep encountering the error: "You have entered an Invalid Field Value XYZ001 for the following field: issueinventorynumber." I have tried passing both the internal ID and the text value, but the issue persists. I also tested it in both dynamic and standard modes, yet the error remains. When tried to create invoice via UI with same data it worked any suggestion to resolve this issue
b
honestly sounds like you are trying to do something wrong, the inventory detail should already be on the invoice
replacing it will probably confuse netsuite since the inventory detail has already been issued
r
NetSuite does not support direct transformation from Item Fulfillment to Invoice. To achieve this, I'm transforming the Sales Order to an Invoice while ensuring that only the items and inventory numbers from the IF are included. For example, if an SO has one item with two lot numbers and has two IFs (each with one lot), I will create two separate Invoices, each corresponding to a single lot.
b
your lot number is already on the invoice from the transformation
trying to set it again will give you the error you see, since the lot has already been allocated