i want to be able to print item rate in the invoic...
# ask-stanley-ai
k
i want to be able to print item rate in the invoice as net of discount in the advanced pdf
c
AI generated answer (using internal Slack threads):
To print the item rate in the invoice as net of discount in the Advanced PDF, you can customize the Advanced PDF template. Here are the steps: 1. Navigate to
Customization > Forms > Advanced PDF/HTML Templates
. 2. Click
Customize
next to the Invoice template. 3. In the template editor, locate the line where the item rate is printed. It should look something like this:
${record.item.rate}
4. Replace this line with a calculation that subtracts the discount from the item rate. It should look something like this:
${record.item.rate - record.item.discount}
5. Save the template. Please note that this assumes that your discount is a flat amount. If your discount is a percentage, you will need to adjust the calculation accordingly. Also, please note that the field names (
item.rate
,
item.discount
) are just examples. You will need to replace them with the actual field names used in your NetSuite account. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83575356
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823969543
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819849849
Please provide your feedback on this answer.
k
For "-" left-hand operand: Expected a number, but this has evaluated to a sequence+hash+string (wrapper: com.netledger.templates.model.EmptyModel): ==> record.item.rate [in template "template" at line 182, column 33] ---- FTL stack trace ("~" means nesting-related): - Failed at: ${record.item.rate - record.item.disc... [in template "template" at line 182, column 31] ----
r
The bot isn't yet programmed to answer follow-up questions in-thread. But you can ask again in the main channel.