From f3aa55200cd8750c64ce3ad256a30de4c4a1ba31 Mon Sep 17 00:00:00 2001 From: Tiavina Date: Wed, 22 Jan 2025 15:59:04 +0300 Subject: [PATCH] client id --- gestion/lib/Controller/PageController.php | 3 +++ 1 file changed, 3 insertions(+) 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; }