Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Submit Unapplied Payment
I'm trying to unapply payments for certain invoices and have the following script:
paymentRecord.setFieldValue('autoapply','F'); paymentRecord.setLineItemValue('apply', 'applapply', lineNum, 'F' ); paymentRecord.setLineItemValue('apply', 'appldisc', lineNum, null); paymentRecord.setLineItemValue('apply', 'applamount', lineNum, null); nlapiSubmitRecord(paymentRecord, false, true); It seems to work fine so long as the invoice is not the only item that the payment is applied to (i.e. so long as the payment is not left unapplied). If it is the following error is returned: USER_ERROR Details: Please enter a payment amount or apply credits/deposits.
If I was doing the same thing via the UI I would be asked to confirm that I wanted to enter an unapplied payment and would be allowed to do so. Is there a way to do this via SS?
0