Exclude credit invoice from notification for unpaid invoices

Hi everyone,

I have put in place automatic email notification using cron jobs which sends emails for unpaid invoices.

The system works fine however when I create a credit invoice / note invoice. A notification is also sent for my client. How can I excluse this type of invoices?

The parameters I have used are the following:

|Module|facture|
|Nom de fichier intégrant la classe|compta/facture/class/facture.class.php|
|Instance/objet à créer|Facture|
|Méthode|sendEmailsRemindersOnInvoiceDueDate|
|Paramètres|-9,all,FACT_IMPAYE|

Thanks in advance
Regards

Hi,

I have found the solution:

In the function sendEmailsRemindersOnInvoiceDueDate (file compta/facture/class/facture.class.php line 5691),

you need to replace

$sql .= " WHERE f.paye = 0";

with

$sql .= " WHERE f.paye = 0 and f.type = 0";

Hope this will help
Regards