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!
Populate custom field on invoice transaction line based on posting period, and item's account code,
Hi, complete newbie to suitescript.
I'm trying to populate a custom field (revMonth) on an invoice with multiple transaction lines, based on the posting period (at header level, Field ID: postingperiod) and the line item's income account code/number (Field ID: incomeaccount).
i.e. For each line on the invoice that has an item: IF item's income account number begins with '2' THEN revMonth = postingPeriod + 1 month ELSE postingPeriod
Each item has an income account number associated with it, so I assume there will be a need to do a lookup of some sort to determine what the number is. The custom field (revMonth) is currently a 'free-text' field.