<?php
// cron/relances.php — Quotidien 06h00
// Relances chrono non converti J+7/J+30/J+60

require_once __DIR__ . '/_bootstrap.php';

use App\Services\RelanceService;

$service = new RelanceService();
$nb  = $service->traiterRelancesJ7();
$nb += $service->traiterRelancesJ30();
$nb += $service->traiterRelancesJ60();

error_log('[CRON relances] ' . date('c') . " — {$nb} relances envoyées");
