diff --git a/gestion/lib/Controller/PageController.php b/gestion/lib/Controller/PageController.php index 473ab69..3d32b06 100644 --- a/gestion/lib/Controller/PageController.php +++ b/gestion/lib/Controller/PageController.php @@ -2707,6 +2707,9 @@ class PageController extends Controller { public function exportFactureByClientAndMonthYearToPdf($clientId,$month,$year){ try{ + if($clientId == "" || $clientId == "0"){ + $clientId = 0; + } $factureFilename = $this->invoicePdfService->generateMultipleInvoicePdfByClientAndMonthYear($clientId,$month,$year,$this->idNextcloud); return $factureFilename; }