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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Error on negative % gross profit on standard netsuite script
Have incorporated the following script to figure GP on line items within SO transactions, I am getting error messages when Margins go negative. Not knowing much about coding I thought someone here might be willing to give me some guidance....
Thanks, appreciate any help.
/* -------------------------------------------------------------------------------------------------------
*
Function: grossProfitPercent
Functionality:
Calculates gross profit percent at line item level.
Deployment:
The script can be deployed on Sales Order.
Event triggering the script:
1) validate Line.
Custom Fields:
+------------------------------------------------------------------------------------------------------+
| S. No.| Id | Type | Level | Description
+------------------------------------------------------------------------------------------------------+
| (1) | _purchaseprice | Currency | Column | It holds purchase price sourced from
item master |
| (2) | _grossprofitpercent | Percent | Column | Holds gross profit percent calculated |