Testcase Document On-Auto-apply Credit Memos to Invoices

Requirement :

For another customer, we need the following:

  • Customer creates credit memos for customers on a regular basis. these credit memos can not be applied to existing invoices since the customers get all incoming payments via credit cards at the moment of invoice generation, so normally all invoices are already fully paid. Therefore, at the moment of creation of the credit memo, a standalone credit memo is created.
  • We need a script (different customer than the one the previous bill run was for) that at the moment of creating an invoice, a check is done whether existing credit memos exist and if so, the credit memo should be immediately applied to the invoice (maximum value to be applied is, of course, the amount of the sales invoice). This needs to be done at the moment of creating the invoice so that when a payment run is triggered, only the remaining open account is captured from the customer’s credit card.

Leave a comment

Your email address will not be published. Required fields are marked *