I am trying to remove the landed costs from an inbound shipment after being partially received. The sublist remove line does not throw an error, but also does not seem to actually remove them.
Is there a way to remove landed costs after it has been partially received?
c
Caiman
12/17/2021, 3:25 PM
The landed cost is a sublist subrecord and you can use the getSublistSubrecord method from the N/record module (or getCurrentSublistSubrecord if dynamic mode)
From there you can remove the landed cost line as a whole or just set it to 0
Caiman
12/17/2021, 3:27 PM
Oh sorry, I was thinking of Item Recipts landed cost. The Inbound shipment might not work in the same way...
s
screnshaw
12/17/2021, 3:27 PM
Yeah, I think it is a sublist. My problem is if it has been received, I dn't seem to be able to remove them 😕
c
Caiman
12/17/2021, 3:28 PM
Do you want to remove the whole line? or just the landed cost on the line?
s
screnshaw
12/17/2021, 3:28 PM
I need to remove all landed costs so that I can update the "expected quantities" to match what was actually received
c
Caiman
12/17/2021, 3:36 PM
I'm guessing that line might be tied in some way to the item receipt created when you partially received the order, perhaps you need to start there?