Script email unpaid invoices to representatives.php

Feature/Fonction/Funcionalidad

  This script send an email to all sales representatives that are linked to a customer third party with at least one unpaid invoice.

  Ce script envoie un email à tous les commerciaux associés à un tiers clients qui possède au moins une facture impayées.

  Este script envía un e-mail a todos los comerciales asociados a un tercero cliente que tenga al menos una factura impagada.

Localisation/Localización

  • /dolibarr/scripts/invoices/email_unpaid_invoices_to_representatives.php

Syntax/Syntaxe/Sintaxis

php email_unpaid_invoices_to_representatives.php [test|confirm] [delay]

This script send an email to users to remind all unpaid invoices of customers they are sale representative for.

If you choose 'test' mode, no emails are sent.

If you add a delay (nb of days), only invoice with due date < today + delay are included.

Tables used/Tables utilisées/Tablas utilizadas