when sourcing the taxcode from the line level via ...
# ask-stanley-ai
a
when sourcing the taxcode from the line level via a script, what sort of value does this pull? Internal ID value or a string such as 'Standard Rate'
c
AI generated answer (using internal Slack threads):
When sourcing the taxcode from the line level via a script, it pulls the Internal ID value. This is evident from the code snippet provided in the conversation where the tax code is being accessed using the
getLineItemValue
method:
Copy code
javascript
var tax_code = so.getLineItemValue('item', 'taxcode', i);
In this case,
taxcode
is the field id and
i
is the line number. The value returned by this method is the Internal ID of the tax code, not a string such as 'Standard Rate'. However, it's important to note that the Internal ID of a tax code may not always be a 5-character length number as mentioned in the conversation. It can vary depending on the number of tax codes created in the system. ****** 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.824900448
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823308706
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819852471
Please provide your feedback on this answer.