Calculate Service Charge > Reduce invoice balances by open credits are on account

Issue No: AR-8484
Created 8/16/2018 2:38:39 PM
Type Feature
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-216407 - Service Charges|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-216407]   + *Issue:* +     Currently, when a service charge calculation is setup "By Invoice" it computes service charge of past due invoices regardless if the customer has credits.   + *To Do:* +   Similar to how "By Customer Balance" was coded. Only compute service charge of customers past due invoices remaining balance as if the credits are applied to past due invoices on receive payment. Behind the scene, we will presume that the customer credits were applied to oldest invoices thru the latest when we compute for the service charge. Credits can be prepayment, overpayment, or credit memo   For example:   Customer has a couple of past due invoices of $100 each, SI-1 and SI-2. The same customer also has credit of -$190. When a user execute calculate service charge, the system presumes that the $100 credit was applied to the oldest invoice SI-1, and the remaining $90 credit to the latest invoice SI-2. Which will leave the customer an AR balance of $10. Only the remaining AR balance of $10 should incur finance charge base from the service charge maintenance setup.   Again, we will just presume that the credits were applied but we will not automatically apply the credits.   Service charge then becomes the amount _as if_ the credits were applied.