Apply Credit Memo to Invoice -which API to use
So, I created 'standard' Credit Memo by inserting into Interface Tables and running AutoInvoice. Now I need to apply Credit Memo to the invoice using api. Which api to use? AR_CM_API_PUB.apply_on_account or ar_cm_application_pub.activity_application? Confusing...
Note: user from the screen usually applies CM to invoice by navigating to Actions->Applications and adding application line for an open invoice.