Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Transforming a PO with Landed Cost Enabled
Hi
I'm transforming a PO to a receipt in a server script with landed cost enabled. In the script I need to receive particular items and update the landed cost fields (there are 4 landed cost categories set up).
Populating the receipt and saving it results in the error: "Please enter value(s) for: Cost Allocation Method"
so I added the following line:
rec.setFieldValue("landedcostmethod","VALUE"); This lets the receipt save OK, but when viewed the method field has not been set. I also need to set the landed cost source and amount fields for the 4 configured landed cost categories. These fields appear to be called "landedcostsourceX" and "landedcostamountX" (where X is a numeric ID) but setting these fields on the record has no effect - the receipt saves but when viewed the Landed Cost tab is unpopulated.
0