return null when pdf data is empty
This commit is contained in:
parent
3d75d77574
commit
5ff78abe2c
@ -124,8 +124,8 @@ class InvoicePdfService {
|
|||||||
$currentConfig = $configs[0];
|
$currentConfig = $configs[0];
|
||||||
$logo = $this->getLogo();
|
$logo = $this->getLogo();
|
||||||
$invoiceData = $this->gestionBdd->getInvoicePdfDataByClientAndMonthYear($clientId,$month,$year,$currentConfig);
|
$invoiceData = $this->gestionBdd->getInvoicePdfDataByClientAndMonthYear($clientId,$month,$year,$currentConfig);
|
||||||
if($invoiceData == null){
|
if(empty($invoiceData)){
|
||||||
return "";
|
return null;
|
||||||
}
|
}
|
||||||
$pdf = new InvoicePdfHandler();
|
$pdf = new InvoicePdfHandler();
|
||||||
$pdf->MutlipleInvoicePdfFactory($invoiceData,$logo);
|
$pdf->MutlipleInvoicePdfFactory($invoiceData,$logo);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user