Can I remove zero line items from a customer invoi...
# ask-stanley-ai
s
Can I remove zero line items from a customer invoice
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that you can remove zero line items from a customer invoice in NetSuite. In SuiteScript 1.0, you can remove lines from an invoice that is being created from a sales order. However, this cannot be done in a beforeLoad script as data cannot be manipulated for records that are loaded in beforeLoad scripts. If you attempt to update a record loaded in beforeLoad, the logic is ignored. However, data can be manipulated for records created in beforeLoad user events. If that doesn't work, you would need to create a client script to do the work. For example, one user mentioned that they were able to remove the lines within a loop by getting the id's of the lines they needed to remove and then after the loop removed them in reverse order. In addition, you can omit the $0.00 line item from the PDF template of the invoice. This can be done using advanced PDFs. There are many SuiteAnswers articles that provide examples of this logic. Lastly, to prevent some lines on a sales order from being invoiced, you can close the line on the sales order. ****** 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.821474
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820447624
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819312811
Please provide your feedback on this answer.