Team, I am having an issue updating a line on an I...
# ask-stanley-ai
a
Team, I am having an issue updating a line on an Invoice that contains Billable Time lines. I try to set the value on the sublist “time”, but the sublist is not changed. Anyone has done this?
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. ****** Based on the conversations, it seems that updating a line on an Invoice that contains Billable Time lines can be a bit tricky. The 'time' sublist is not directly editable via SuiteScript. However, there are a few things you can try: 1. Overwrite the amount on the billable time sublist with a zero. This does not update the time records, which can lead to inaccurate reports and saved searches. 2. You can try to load the record in XML mode. To do this, append
&xml=T
to the URL or open the developer console and run the following code:
Copy code
javascript
var rec = nlapiLoadRecord('recordtype', 'internalid');
Then output
rec
to the console and you'll see that part of the object is 'lineitems'. 3. If the field is a custom transaction line field, it might not be visible in the 'time' sublist. You might need to check the custom form for the field. 4. If you're trying to source a field from the 'timebill' record to the transaction line, you might need to check the Time and Group on Invoices under the Apply subtab of the custom transaction line (assuming it is one). Remember, these are just suggestions based on previous conversations and might not work in your specific case.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852642417
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83779633
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824726045
Please provide your feedback on this answer.