I'm trying to update a `WorkOrder` that has Specia...
# suitescript
j
I'm trying to update a
WorkOrder
that has Special Order line items. I'm not updating any of the lines, just the header fields, but I still get an error like:
Please configure the inventory detail in line 2 of the item list.
I don't know what I'm supposed to actually do. I assume there's a reason why it's not easy to edit this work order.
c
Do you use WIP and Routing? Has the Work Order been built? Is the finished good and/or any of the components serialized or lot-controlled items?
j
We do not use WIP, but I don't know what Routing is. These are for lot-controlled items. The work order is not yet built (I'm going to have to double check this) The other words I know are that these are nested work orders, apparently a work order has created this work order. I don't know if that has any implication.
Currently it's marked as built
c
@Joe What header field(s) are you trying to update?
j
The error log actually came half an hour before System Information says status was set to Built
• trandate • externalid • orderstatus (B: Release) • firmed • custom_lotnumber • custom_external_link
c
Is the item line in question one of the Special Order lines?
j
Yes, specifically. The update is attempting to add a new line, but I've hacked through the debugger and tried a few things. I've tried updating only the headers, only adding the new line, and trying to update all lines, even though nothing has changed.
For future reference, the special order line quantity was updated within NetSuite, so as my app integration tried to make a change with the original quantity, or none, that for some reason threw the error