# 2017-09-20

v1.3

### What's new?

* Add feature to notify administrators when a client changes an invoice's payment method
* Deleting client credentials now shows a confirmation dialog
* Add credit to client account if invoice was cancelled and paid
* No amountout will be applied if Invoice has not been credited (Paid) previously
* If invoice was cancelled, no recon will take place if "Skip Cancelled Invoices" is checked
* Statement fetching can now be backdated (or paused) for x amount of days.
* Add back Credit Card processing using the native "[Offline Credit Card](https://docs.whmcs.com/Offline_Credit_Card)" gateway module. Simply add your Credit Card Token Vault key on the Debitize settings page. Credit Cards are managed by WHMCS
(Use the "Credit Card Information" link on the client profile)

### Bug fix

* Missing 'batch_id' columns on installation has been fixed
* Bank detail will be validated again upon submission and not just when added
* PHP error won't be thrown if CC is updated when no Vault Service Key is specified
* CC Token will now be removed when client 'clears' their card data
* Fixed issue where the letter 'w' would sometimes be omitted during sending to Sage

### Misc.

* Removed failed fees. Use WHMCS internal fees
* Optimised logging behavior
* Removed update database nag
* Debitize now creates internal references for consolidated invoices. This will help in cases where invoice id lengths exceed the API character limit
* Due to WHMCS cron schedule, cron predictions became erratic so we removed 'Next WHMCS cron run' and 'Next scheduled batch run' from batch preview
* Change links and contact detail from Interexcel references to Interexcel Digital Marketing.

# 2017-03-07

v1.2.4

### What's new?

* Add ability to change the status that get set when an invoice is submitted for processing

v1.1.0

### What's new?

* Add ability to check invoice by due date and not only 'Unpaid' status
* Add grace period as well
* WHMCS v7.0 support
* All models fully utilising Eloquent ORM
* Batch Previews - Allow export to CSV
* Batch Previews - Show company name in preview
* Batch files will now properly detect partial invoice payments and reflect this in the batch file
* Automatically clean up generated log files after x days
* Now uses company name as account name
* "Cron halted" email now provides reason for failure
* Removed "Statement Error" email. Instead logs it to the Activity Log
* Statements will now reconcile on a per-item basis
* Failed statements will now be re-fetched when the Debitize cron is run
* Un-reconciled items will be reconciled when the Debitize cron is run

### Misc.

* Better required field indicators on config page
* Better instructions on config page
* Moved all logging activity to whm-data directory
* Display module log location on config page
* Better highlighting of what rules are used when submitting batches on the preview tab
* Remove unused models
* Debitize cron will now generate output

# 2016-10-01

v1.0.1

### Bug fix

* Local key will now save correctly and license checks should succeed during periods where remote server might be inaccessible
* Fix bug where some tables failed to be created during installation
* Required folders now get created on startup
* Fix issue where customer ID custom field would get duplicated on subsequent install
* Recon will better detect and distinguish between it's own line items and other items when reconciling statements
* A _lot_ of smaller optimisations and bug fixes

### What's new?

* Add checks for PHP SOAP availability
* When reconciling large batches, the module will now attempt to prolong server execution time so as to not time out and potentially corrupt data
* Add preview of action dates on Batch Preview tab
* Sage Accounting Services now acts as a separate pop-out window.


# 2016-06-13

v0.9.5

### Bug fix

* Fix accounts that start with zero not being correctly validated

# 2016-06-01

v0.9.4

### What's new?

* Fix issue where Statements weren't reconciling due to an non-existent module on older PHP versions
* Added more verbose logging for debugging and troubleshooting during recon process
* Fix issue where action date would sometimes not be detected

v0.9.3

### What's new?

* Fixed issue where manually invoking batch run failed when date was not in schedule
* Added batch total to batch preview
* Fix issue where batch would fail if no client name was set

# 2016-05-23

v0.9.1

### What's new?

* Added PayNow module to Debitize download
* Made admin email more verbose by adding which client's invoices failed to be included and why
* Module will now recheck previously failed statements
* Module will only check statements in the past to avoid time issues / unavailable errors
* If statement fails, an email will be sent to admin

### Misc.

* Send admin email only after batch has actually run and not simply when the cron was initiated


# 2016-05-05

### What's new?

* Batch files can now be manually submitted, just go to Batch Preview, scroll to the bottom, then click 'Run Batch Now?'
* System Admins will now get an email after a batch file submission has been initiated
* Changed wording on Batch Preview to better reflect cron states
* Added some folder permission checks on the main module config page
* Added some cron checks and debugging on the main module config page
* Alert about folder permission errors
* Add helpful license info to email being sent on license errors
* Remove central error logging. The folder modules/addons/debitize/includes/raven-php-master can now safely be removed

### Bug fixes:

* Fix issue where relative paths were causing issues for some users
* Fix DebitizeDO logo detection
* Fix issue where not all consolidated invoice statuses were being updated

# 2016-04-22

### Bug fixes:

* This release fixes a minor issue where during reconciliation some invoices weren't correctly detected
* It also improves cron detection and fixed an issue where the Debitize cron didn't correctly include dependencies.

### Misc.

* A lot of small additional changes were also made that which includes some more verbose debugging to the log to help debug.


# 2016-02-22

### What's new?

* n/a

### Bug fixes:

* Fixed statement timezone error.
* Fixed statement time check. Should be less than 12. Not less-than and equal.

### Misc.

* Add (hidden) option to retrieve statements (for testing purposes) by viewing admin/addonmodules.php?module=debitize&tab=test-statements

---

# 2016-02-19

### What's new?

* Allow specifying custom dates for submitting batch files
* Changed distribution zip file folder structure
* Better cronjob detection

### Bug fixes:

* Fixed timezone issues when requesting statement. Will now always use 'South Africa/Johannesburg' and not rely on server time
* Fixed issue where action date was always the current date. The batch action date will now always be a valid action date, retrieved from Sage Pay
* Fix status being incorrectly applied when debit batch is interrupted
* Some more verbose logging

### Misc.

* Renamed Interexcel Debit Order payment module to Debitize DO


# 2016-02-29

### Bug fixes:

* Fix error where Debit Order module was not displaying correctly on the admin side


# 2016-03-02

### Bug fixes:

* Fix error where empty statements would halt execution and thus not process subsequent statements
* Fix incorrect 'failed' reading when adding transactions
* Status was incorrectly set to Draft after recon has successfully run
* Status will default to unpaid and only set to Draft if localAPI fails or transaction is successfully reconciled

### Misc.

* Improve layout of recon screen so everything is listed below each other instead of next to each other
* Add some more verbose logging


# 2016-03-04

### Bug fixes:

* Fix issue where SVK got corrupted


# 2016-03-11

### Bug fixes:

* Fix issue where Debit Order module sometimes include duplicate files


# 2016-03-15

### Bug fixes:

* Fix for when license server might be down temporarily

# 2016-03-17

### Bug fixes:

* Remove deprecated CC update hook

# 2016-03-29

### What's new?

* Migrate license managing to a new system. No need to ask for IP and server details. It will be automatically detected when run.
* Licenses are now automatically generated and renewed
* Remove need for iesage-license file

### Bug fixes:

* Fix issue where invoices created via DebtizeDO payment method were excluded from batch files
* Fix issue where statement simulation got corrupted

### Misc.

* Change Interexcel "Service Key" to "License Key"
* Add license test page
* Log IP address and domain name when debugging is on and license check fails
