Fix file not always defined
This commit is contained in:
parent
0e15aef44f
commit
0feae17ef5
@ -122,6 +122,8 @@ class pdf_paiement
|
|||||||
|
|
||||||
$month = sprintf("%02d",$month);
|
$month = sprintf("%02d",$month);
|
||||||
$year = sprintf("%04d",$year);
|
$year = sprintf("%04d",$year);
|
||||||
|
|
||||||
|
$file = $dir . "/payments-".$year."-".$month.".pdf";
|
||||||
switch ($this->doc_type) {
|
switch ($this->doc_type) {
|
||||||
case "client":
|
case "client":
|
||||||
$file = $dir . "/payments-".$year."-".$month.".pdf";
|
$file = $dir . "/payments-".$year."-".$month.".pdf";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user