Steven Craig
06/11/2025, 3:08 PMCeligo AI
06/11/2025, 3:10 PMAI generated answer (using internal Slack threads):In SuiteScript, to determine if a tax schedule has any Nexus with the 'is taxable' checkbox checked, you would need to load the tax schedule record and iterate over the nexus sublist. Here's a basic example of how you might do this:
javascript
var taxScheduleRecord = record.load({
type: record.Type.TAX_SCHEDULE,
id: 'yourTaxScheduleId'
});
var nexusCount = taxScheduleRecord.getLineCount({
sublistId: 'nexuses'
});
for (var i = 0; i < nexusCount; i++) {
var isTaxable = taxScheduleRecord.getSublistValue({
sublistId: 'nexuses',
fieldId: 'istaxable',
line: i
});
if (isTaxable) {
// This nexus is taxable
}
}
In this code, we're loading the tax schedule record, getting the count of nexuses associated with it, and then iterating over each nexus. For each nexus, we're checking the value of the 'istaxable' field. If it's true, then that nexus is taxable.
Please note that you'll need to replace 'yourTaxScheduleId' with the actual ID of the tax schedule you're interested in.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/11/2025, 3:10 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854675651
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837085962
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83577925
Celigo AI
06/11/2025, 3:10 PMCeligo AI
06/11/2025, 3:12 PM