Fix directory permission problems with pdf output.
This commit is contained in:
@@ -246,10 +246,4 @@ $pdf->Cell(25, 4, number_format(($_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',',
|
||||
$pdf->SetFont('Helvetica','', 10);
|
||||
$pdf->Cell(25, 4, number_format(($_19 + $_7 + $_0 + $Sonst_Preis + $_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',', '.')." €", 0, 0, 'R');
|
||||
|
||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
||||
{
|
||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
||||
}
|
||||
|
||||
$file = __DIR__ . "/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf";
|
||||
$pdf->Output($file, "F");
|
||||
$pdf->Output("A_" . date('Ymd') . ".pdf", "I");
|
||||
@@ -170,10 +170,4 @@ $pdf->Cell(25, 4, number_format(($_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',',
|
||||
$pdf->SetFont('Helvetica','', 10);
|
||||
$pdf->Cell(25, 4, number_format(($_19 + $_7 + $_0 + $Sonst_Preis + $_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',', '.')." €", 0, 0, 'R');
|
||||
|
||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
||||
{
|
||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
||||
}
|
||||
|
||||
$file = __DIR__ . "/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf";
|
||||
$pdf->Output($file, "F");
|
||||
$pdf->Output("A_" . date('Ymd') . ".pdf", "I");
|
||||
@@ -152,10 +152,5 @@ $pdf->Cell(25, 4, number_format($ntsum['MwSt'], '2', ',', '.') . " €", 0, 0, '
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
||||
|
||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
||||
{
|
||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
||||
}
|
||||
|
||||
$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf";
|
||||
$pdf->Output($file, "F");
|
||||
$pdf->Output("E_" . date('Ymd') . ".pdf", "I");
|
||||
@@ -150,10 +150,4 @@ $pdf->Cell(25, 4, number_format($ntsum['MwSt'], '2', ',', '.') . " €", 0, 0, '
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
||||
|
||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
||||
{
|
||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
||||
}
|
||||
|
||||
$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf";
|
||||
$pdf->Output($file, "F");
|
||||
$pdf->Output("E_" . date('Ymd') . ".pdf", "I");
|
||||
Reference in New Issue
Block a user