NetSuite Term records allow you to configure them with a conditional discount or as installments, but you cannot have terms with both installments and discounts. There are some fairly rare vendors and circumstances where the terms for the vendor bill are installments with a discount, which is challenging to deal with in NetSuite.
Note: This is a fragile solution which may need to be adjusted to fit a given company’s situation.
But first, the assumptions that were true at the time of solution design:
I used the following FreeMarker code to calculate the original amounts before the 2% discount. The rounding in this code doesn’t exactly match up with how NetSuite splits up the installments, which is where we get the 1-cent deviance in some cases.
Line 13 checks if the bill payment apply line is for an installment; if it is, then the code calculates the original amount, balance due, and discount. The Payment (apply.amount) is the actual NetSuite value, so that will always be correct even if the other three fields are off by a penny.
Line 23 handles if the bill payment apply line is not for an installment.
View from Bill Payment record.
View from Bill Payment PDF. Note that the Original Amt, Balance due, and discount don’t match the Bill Payment record.
Enter the bill as normal, and add an Expense line where:
If the customer is willing to pay for it, we could script a solution to automatically add this expense line when the terms on the bill are installment terms.
Process and pay the bill as usual.
Setup > Accounting > Accounting Lists > Filter: Type = Term
We like to update our blogs and articles to make sure they help resolve any troubleshooting difficulties you are having. Sometimes, there is a related feature to enable or a field to fill out that we miss during the instructions. If this article didn't resolve the issue, please use the chat and let us know so that we can update this article!
If you have general questions about NetSuite or more specific questions about how our team can support your business, contact us! Anchor Group is a certified Oracle NetSuite Alliance Partner and Commerce Partner equipped to handle all kinds of NetSuite and SuiteCommerce projects, large or small.
Tagged with Training