if there is a credit against any client, it should be adjusted against the total amount while creating a new invoice.
Created by Mitesh from Refrens