Another Item Receipt question: I’m attempting to ...
# inventory
w
Another Item Receipt question: I’m attempting to replace all of the lines on an IR with the following REST command: Calling NetSuite API: PATCH URL Uri: record/v1/itemreceipt/1361309) [dd.service=rails dd.trace_id=3537402724481768748 dd.span_id=0] Headers: {“Authorization”=>“REDACTED”, “Content-Type”=>“application/json”, “Accept”=>“application/json”} Request Body: {“item”{“items”[{“item”{“id”“642”},“quantity”3.0},{“item”{“id”“645”},“quantity”10.0}]}} Params: {:replaceSelectedFields=>true, :replace=>“item”} [dd.service=rails dd.trace_id=3537402724481768748 dd.span_id=0] Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist. Error code: USER_ERROR Path: item Is the “item” sublist on an Item Receipt considered static? I can update the quantity on an existing line just fine. 1. But can I not replace the entire “item” sublist? 2. Will I be able to add a line with a new item if I need to?
r
Items on Receipts are tied directly to the lines on the Purchase Orders, this is a hard restriction (and appropriately so) of NetSuite. You cannot add, edit, or remove the items themselves.
m
The general rule of thumb is of you can't do it in the UI you can't do it via API
w
You can edit them, but you can’t replace them wholesale.