There is a preference/parameter that we set in sui...
# ask-stanley-ai
t
There is a preference/parameter that we set in suitescript for ignoring date filters on bank deposit sublist, so that it doesn’t filter out payments and refunds based on date selected, without that I cannot find my payment
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you are trying to create a deposit record and filter the transactions on the sublist based on the transaction from/to date. However, you are unable to do so because the first 10k results on deposit do not include the rows you're interested in. In SuiteScript, you can create a deposit record and set default values for the transactions to be deposited. Here is an example:
Copy code
javascript
var myDeposit = record.create({
    type: record.Type.DEPOSIT,
    defaultValues: {
        'deposits': '818,819'
    }
});
In this example, '818,819' are the IDs of the transactions to be deposited. If you are trying to add payments to a bank deposit record, you can use the
findSublistLineWithValue
method to find the line number for the payment to apply, and then use the
setSublistValue
method to set the value. Here is an example:
Copy code
javascript
var lineNumber = depositRecord.findSublistLineWithValue({
    sublistId: 'payment',
    fieldId: 'id',
    value: relTransId
});
depositRecord.setSublistValue({
    sublistId: 'payment',
    fieldId: 'id',
    line: lineNumber,
    value: relTransId,
});
depositRecord.setSublistValue({
    sublistId: 'payment',
    fieldId: 'deposit',
    line: lineNumber,
    value: true,
});
In this example,
relTransId
is the ID of the related transaction. ****** 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.824250221
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821659505
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810245335
Please provide your feedback on this answer.