when creating an Invoice programmatically in suite...
# suitescript
n
when creating an Invoice programmatically in suitescript, what is the recommended approach to apply an open credit memo to an new invoice after the initial record.create(options) and record.save(options) of the invoice? In the UI, the blue native 'Accept Payment' button is what I am trying to do in suitescript. Woud I create a new customerpayment record w/ default value entity option and loop through apply and credit sublists to select records?
it looks like you can do a record.transform(options) from customer to customer payment as well. I presume this should work..
oh shit you can just do a record.transform(options) directly from invoice to customer payment. Looks like this is the most straight forward approach
👍 1