set charges (not the account field) on invoice lin...
# ask-stanley-ai
d
set charges (not the account field) on invoice lines using suitescript
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To set charges on invoice lines using SuiteScript, you would typically need to manipulate the line items on the invoice record. However, it's important to note that NetSuite does not allow direct editing of charge lines on invoices, cash sales, credit memos, or cash refunds. This is likely the cause of the error message you're encountering. If you're trying to add a charge to an invoice without it affecting the customer (for example, a credit card fee), you might consider using a custom GL plugin. This would allow you to add a custom line to the invoice that doesn't directly charge the customer but still allows you to track the charge for accounting purposes. Please note that the custom GL lines plugin is still using SuiteScript 1.0. If you're trying to prevent certain items from being automatically pulled into a sales order when a job is set, this can be achieved with a script. However, you would need to ensure that the charge rules are not being used elsewhere in the process, as this could potentially disrupt other workflows. Please remember that manipulating invoice lines and charge rules can have significant impacts on your accounting processes, so it's important to thoroughly test any changes in a sandbox environment before implementing them in a live account.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815352738
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813607216
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801429451
Please provide your feedback on this answer.