This addon is unmaintained and has issues with newer versions of WHMCS / PHP. Let me know if you would like to contribute by fixing the open issues.
A simple module that allows admins to credit / refund invoices.
The module adds buttons to the WHMCS invoice edit page. You can refund an invoice and easily navigate between it's corresponding credit note.
The module does this by duplicating an invoice, setting it's status to "Paid", and then inverting all the amounts to negative. Finally it adds some data to both the original invoice admin notes as well as the credit notes admin notes, this is to be able to easily keep track of which credit note belongs to which invoice, and vise-versa.
- Download the latest version
- Extract the archive and copy the credit_invoice folder to whmcs_path/modules/addons
- Activate the module from the "Addon Modules" settings page.
- On the same page as above, press "Configure" and choose the admin groups that can create credit notes.
Open an invoice. You should see a new button, "Credit invoice". When pressed, a new invoice will be created.
The new invoice will contain the exact same line items, but with reversed amounts ($10 becomes -$10).
You will be redirected to the new credit note, where you can send the invoice to your client (standard WHMCS way). It is also possible to navigate between the original and the credit note by pressing the button.
- Add development tools with Composer (phpcs, phpcbf, Phan, etc.)
- Add tests
Use GitHub releases