Juan Ma Concari
10/09/2025, 4:27 PMCeligo AI
10/09/2025, 4:27 PMAI generated answer (using internal Slack threads):To mark a created Customer Payment as deposited using SuiteScript, you need to set the 'undepfunds' field to false. By default, when a Customer Payment record is created, the 'undepfunds' field is set to true, which means the payment is in 'Undeposited Funds'. If you want to mark it as deposited, you need to set this field to false. Here is an example of how you can do this:
javascript
var custPayRec = record.create({
type: 'customerpayment',
isDynamic: true
});
custPayRec.setValue({
fieldId: 'customer',
value: customer,
});
custPayRec.setValue({
fieldId: 'undepfunds',
value: false
});
// Set other necessary fields and save the record
Please note that this will only work if the payment is not a credit card payment. For credit card payments, you need to set the 'ccapproved' field to true.
******
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
10/09/2025, 4:27 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839599609
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831298828
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829773
Celigo AI
10/09/2025, 4:27 PM