Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Converting Purchase Units to Sale Units in Javascript
I need to be able to check when a vendor price is changed to see if the Sale Units and the Purchase Units are different.
If the sale unit do not match the purchase unit, I need to convert the vendor price (purchase units) to how we sell the item (sale units) and then store this value in a custom field without affecting the actual purchase price.
Seems simple right...
I retrieve the sale unit, purchase unit, and vendor price using: var theSaleUnit = nlapiGetFieldValue('saleUnit');
Then I attempted to use this mess...
var fields = ['baseUnit', 'conversionRate', 'name', 'unitName', 'internalId']