sensson / whmcs-moneybird

Integrates WHMCS into Moneybird 🐦
Apache License 2.0
7 stars 5 forks source link

Create invoice loop #15

Closed ikbenjoeri closed 3 years ago

ikbenjoeri commented 4 years ago

Every time the cronjob is running, the same invoice is created again in moneybird

https://i.imgur.com/TFBQm5o.png

ju5t commented 4 years ago

For some reason the sendInvoice() method is not called in lib/Models/Invoice.php#L212.

https://github.com/sensson/whmcs-moneybird/blob/9c6b22194b289c58e9641c3416dcb4f2dc93861d/lib/Models/Invoice.php#L212

My first guess would be that you did not set up any of the ledgers.

The module logs exceptions in mod_moneybird_log. This table is created during the installation and at the moment it is only accessible if you access the database directly. If there is an entry there, could you share it?

What is the output of the cron when you run it by yourself?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We get that this might not be what you had expected but we're trying to limit stale as issues as much as possible. Thank you for your contributions.