I am finding a matching line on a Vendor Bill Paym...
# suitescript
c
I am finding a matching line on a Vendor Bill Payment and checking the apply box. There's no other manipulation going on but when I do this, I get an error of "NEGATIVE_BILL_PAYMENT_ERROR_MSG - Negative Bill Payment is not allowed" but you can create payment from the Vendor Bill and check the apply box on the resulting Vendor Payment just fine.. So works in UI doesn't work in Script but its doing the same thing. Anyone seen this one (SuiteAnswers is no help on this one for dev)?
turns out that record.transform doesn't auto apply the vendor bill in addition to what i was trying to apply. I swear it used to auto apply on record.transform but I guess not. Once I checked apply for both transactions, everything was fine.