lumnik. / scenarios All scenarios · Français

An invoice past its deadline: 30 days, 50 for a hospital, 30 days end of month

Goal Be alerted to each unpaid invoice past its deadline, computed at the door by customer: 30 days for a public buyer, 50 for a hospital, 30 days end of month for a private customer.

The deadline is not a date on the invoice: it is computed from reception, and the rule depends on the customer. A public buyer pays within 30 days, a public health establishment within 50. A private customer, here, at 30 days end of month.

factures.csv
invoice_no;buyer;buyer_type;received_on;amount;status
F-101;Mairie de Saint-Aubin;collectivite;2026-10-12;4 860,00;A_PAYER
F-102;Centre hospitalier de Valmont;hopital;2026-10-12;12 340,50;A_PAYER
F-103;Préfecture de région;etat;2026-10-07;2 150,00;PAYEE
F-104;Communauté de communes du Val;collectivite;2026-11-11;780,00;A_PAYER
F-105;Centre hospitalier de Valmont;hopital;2026-09-22;3 920,00;A_PAYER
P-201;Garage Morel;prive;2026-09-12;1 380,00;A_PAYER
P-202;Boulangerie Roux;prive;2026-11-16;245,90;A_PAYER
$ lm inbox --process workflow:scenario-payment-deadline-a
ID     WHEN      PROCESS                               MESSAGE                                                                                           ENTITY_KEY
31723  just now  workflow:scenario-payment-deadline-a  P-201 — Garage Morel, 1380 €: unpaid, its payment deadline passed on 2026-10-30                   P-201
31722  just now  workflow:scenario-payment-deadline-a  F-105 — Centre hospitalier de Valmont, 3920 €: unpaid, its payment deadline passed on 2026-11-11  F-105
31721  just now  workflow:scenario-payment-deadline-a  F-101 — Mairie de Saint-Aubin, 4860 €: unpaid, its payment deadline passed on 2026-11-11          F-101

Limits

This scenario needs lumnik Pro.

See the editions →