We have created a suitescript/JSON Payload to gen...
# ask-stanley-ai
j
We have created a suitescript/JSON Payload to generate Invoices within Netsuite from an external billing source. The Netsuite Auto Invoice numbering is overwriting what is specified in the Payload. Is there any specific code to add ? The Invoice transaction form itself allows override
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the issue you're facing is related to the auto-numbering feature in NetSuite. When you're creating invoices via SuiteScript or JSON payload, if the auto-numbering feature is enabled, it will overwrite the invoice number specified in the payload. To avoid this, you can temporarily disable the auto-numbering feature in NetSuite. However, this might not be the best solution if you're dealing with a large number of invoices or if you want to maintain the auto-numbering for other transactions. Another approach could be to use the 'Generate Document Number on Save' feature. This feature allows you to generate a document number when the record is saved, which could potentially solve your issue. However, it's important to note that this feature might not work well with integrations or if you're dealing with a high volume of requests in a short time. If you're importing invoices from a CSV file, you can exclude the invoice number column from the CSV file. This way, NetSuite will auto-generate the invoice numbers when the CSV file is uploaded. However, you might need to set an External ID if you don't set a document number. ****** 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.852966309
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84930408
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84564209
Please provide your feedback on this answer.
j
Answers not available
a
you can control this from setup -> company -> auto generated number. Then 'Allow override' checkbox
j
Thanks Abdul. This is whats confusing me as this is already allowed 🥲
a
plz do one thing more, set tranid after setting entity(customer)
❤️ 1
j
Thank you I will check it . Appreciate the help 🙌
👍 1
a
That makes me think this should be done with the creating record in Dynamic mode so that the sourcing happens in a predictable pattern based on the order your script enters values into the fields.