how do I create a custom transaction that can be r...
# ask-stanley-ai
s
how do I create a custom transaction that can be referenced on a customer payment
c
AI generated answer (using internal Slack threads):
To create a custom transaction that can be referenced on a customer payment, you can follow these steps: 1. Create a custom record with a single integer field. This will serve as the storage of the reference number with a starting value of 1. 2. On the beforeSubmit event, get this value and set it to the custom field within the transaction record. 3. After the record is submitted, update the integer field by incrementing the value by 1. This process will require a workflow or a script to automate. However, it's important to note that NetSuite's custom transactions are akin to the standard functionality of a "Sales Order". There are item/inventory, tax, and rev rec implications, but all other stuff is done on a separate transaction type (e.g. Invoice -> Customer Payment or Cash Sale). NetSuite pitches it as it can replace an invoice and the documentation for transformation is all "Custom Transaction > Payment", but there is no Amount Due / Amount Remaining on the Custom Sales Transaction Summary Table (top right). If you make a Payment against it, nothing happens to the custom sales transaction (that you can see). There is no button to accept payment. ****** 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.836362123
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833384037
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830376208
Please provide your feedback on this answer.