I am trying to remove the landed costs from an inb...
# suitescript
s
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
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
Oh sorry, I was thinking of Item Recipts landed cost. The Inbound shipment might not work in the same way...
s
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
Do you want to remove the whole line? or just the landed cost on the line?
s
I need to remove all landed costs so that I can update the "expected quantities" to match what was actually received
c
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?
s
It is tied to it