With a LandedCost record, how do I update the quan...
# administration
s
With a LandedCost record, how do I update the quantity expected? Code: (-1 is for testing)
Copy code
newRec.setSublistValue({
    sublistId: 'items',
    line: i,
    fieldId: 'quantity',
    value: Number(qty) - 1
});
Error:
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.
s
sublist id is likely
item
not
items
?
s
@Shawn Talbert It was items. I just got it working, but i don't remember what it was now lol. The problem i'm facing at the moment is trying to change the qtyExpected on the inbound when an item receipt is created. Getting:
The Item line cannot be changed as it shares a landed cost amount with items on an Inbound Shipment which have been partially or fully received
s
wow, leave it to NS to use plural items sublist name in one spot and singular most everywhere else.
netsuite 3
s
hahaha