Files
opensem/app/Repositories/Shop
Valentin Lab 936c9473a7 new: send stock alert email when offer stock crosses threshold
When a purchase causes an offer's ``stock_current`` to drop to or below
its ``minimum_ondemand`` threshold, an email is sent to
``commande@jardinenvie.com`` using an editable mail template (Spatie
``MailTemplate``).

The check runs in ``OfferStocks::decreaseStock()`` after updating stock.
Only threshold-crossing events trigger the alert (not every low-stock
sale).  Failures are caught and logged to avoid disrupting the order
flow.
2026-02-13 07:13:56 +01:00
..
2023-07-16 14:45:42 +02:00
2024-02-22 19:35:51 +01:00
2023-12-09 21:02:28 +01:00
2024-02-22 19:35:51 +01:00
2025-10-05 09:39:27 +02:00
2024-02-23 08:35:41 +01:00
2024-01-05 01:30:46 +01:00
2025-02-15 12:12:42 +01:00
2024-01-30 23:24:00 +01:00
2025-02-15 12:12:42 +01:00
2023-07-16 14:45:42 +02:00
2024-01-30 23:24:00 +01:00
2025-10-05 09:39:27 +02:00
2023-09-13 22:53:37 +02:00
2023-12-09 21:02:28 +01:00
2023-07-16 14:45:42 +02:00
2024-03-11 19:02:57 +01:00
2024-04-29 22:01:45 +02:00
2024-01-30 23:24:00 +01:00
2023-07-16 14:45:42 +02:00
2024-01-07 20:42:37 +01:00
2023-11-14 00:11:31 +01:00
2025-10-05 09:39:27 +02:00
2024-01-05 01:30:46 +01:00
2024-02-23 08:35:41 +01:00
2024-01-05 01:30:46 +01:00
2024-02-23 08:35:41 +01:00
2024-02-23 08:35:41 +01:00
2024-02-23 08:35:41 +01:00