using SuiteScript: can I create an invoice and add...
# ask-stanley-ai
m
using SuiteScript: can I create an invoice and add subscriptions and charges on the lines?
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. ****** Yes, you can create an invoice and add subscriptions and charges on the lines using SuiteScript. However, it's important to note that this process can be complex and may require a good understanding of NetSuite's SuiteScript API and the specific business logic of your NetSuite instance. For adding a custom GL line to an invoice, you can use a custom GL lines plugin. Although it's still SuiteScript 1.0, it works effectively. This can be used to add a 3% credit card fee to every invoice without charging the customer for it. For adding an item after the subscription is active, you can use SuiteBilling. However, it's important to note that adding an Add-On line via scripting can be challenging. You might need to first create a price plan and then try to add an item to the subscription via a subscription line and/or price interval. If you encounter any errors, it would be helpful to know what they are to troubleshoot the issue. As for the feature of invoicing in advance of fulfillment, it's not possible to turn it on for a specific subsidiary only. A potential workaround could be to use a workflow to hide the Invoice button until the Sales Order status is "Pending Billing". However, if you do partial invoicing, this could get trickier as you'd have to look at line items, which generally workflows aren't good at. In this case, you might need a script. Please note that these are general guidelines and the actual implementation may vary based on your specific requirements and the configuration of your NetSuite instance.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851921201
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841697931
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836786509
Please provide your feedback on this answer.