Anpassungen zur Erstellung von Verzeichnissen in der PDF Generierung

This commit is contained in:
2017-11-06 09:56:56 +00:00
parent c94c55b8a9
commit cea1cf9289
20 changed files with 90 additions and 15 deletions

View File

@@ -127,6 +127,10 @@ $pdf->Write(10, "Gesamt " . $Typ . ": ");
$pdf->SetX(130);
$pdf->Cell(70, 10, number_format($ntsum['Preis'] - $GesamtTeil, '2', ',', '.') . "", 0, 0, 'R');
if(!is_dir(__DIR__ . "/" . PREFIX . "/oposten"))
{
mkdir(__DIR__ . "/" . PREFIX . "/oposten", 0777, true);
}
$file = __DIR__ . "/" . PREFIX . "/oposten/O_" . date('Ymd') . ".pdf";
$pdf->Output($file, "F");