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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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