I don't get it I set the `issue inventory number` ...
# suitescript
a
I don't get it I set the
issue inventory number
in line 20.
t
I think you are dealing with a lot numbered or serialized item, you need to fill in the inventory detail record.
Try in UI for the same item
b
make the record in the ui, then inspect the inventory detail in a debugger/console
l
If the adv invt mgmt is not enable, you just need to set the serialnumbers field on line level
r
According to Error. it looks like you're missing "serialnumber"
Copy code
obj.setCurrentLineItemValue('inventory','serialnumber',"167-21");
a
Guys I figured it out. For bin transfers it's
issueinventorynumber
, for bins it's
recieptinventorynumber
.
r
issueinventorynumber: for negative inventory adjustments(-qty), recieptinventorynumber:For positive inventory adjustments(+qty)
a
Does this have to do with the fact that bin transfers are a negative and positive quantity.
Because the bin transfer is a positive quantity.
Yet still needs issueinventorynumber.