Anybody have any experience setting vendor pricing...
# suitescript
m
Anybody have any experience setting vendor pricing on the item when multi-currency is enabled? This is how I was setting before multi-currency, but it's no longer working. I looked through the schema, but can't find anything related to item vendor price currency.
Copy code
const preferred_vendor_line = itemRecord.findSublistLineWithValue({
                sublistId: 'itemvendor',
                fieldId: 'preferredvendor',
                value: true
            });

            itemRecord.setSublistValue({
                sublistId: 'itemvendor',
                fieldId: 'purchaseprice',
                line: preferred_vendor_line,
                value: parseFloat(price || '0').toFixed(2)
            });

            itemRecord.save({
                ignoreMandatoryFields: true
            });
b
m
Thanks I just realized it would probably be like Inventory Details.
Worked...thanks.