Anpassung bei der Erstellung der PDF Übersichten für die EÜR
This commit is contained in:
@@ -19,6 +19,7 @@ $pdf->SetDisplayMode('fullpage');
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->SetRightMargin(10);
|
||||
$pdf->SetLeftMargin(20);
|
||||
$pdf->SetY(50);
|
||||
$pdf->SetFont('Helvetica', 'B', 14);
|
||||
$pdf->SetTextColor($_SESSION['Firma']['F2_Red'], $_SESSION['Firma']['F2_Green'], $_SESSION['Firma']['F2_Blue']);
|
||||
@@ -91,8 +92,8 @@ $pdf->SetFont('Helvetica', 'B', 10);
|
||||
$pdf->Cell(105, 4, "", 0);
|
||||
$pdf->Cell(25, 4, "Netto", 0, 0, 'R');
|
||||
$pdf->Cell(25, 4, "MwSt", 0, 0, 'R');
|
||||
$pdf->Cell(25, 4, "Gesamt", 0, 0, 'R');
|
||||
$pdf->Write(4, "\n\n");
|
||||
$pdf->Cell(25, 4, "Gesamt", 0, 1, 'R');
|
||||
$pdf->Write(4, "\n");
|
||||
$y = $pdf->GetY() - 2;
|
||||
$pdf->Line(20, $y, 200, $y);
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
@@ -108,8 +109,7 @@ while ($ntust = $resultust->fetch_assoc())
|
||||
$pdf->SetFont('Helvetica', 'B', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'] * 0.19, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'] * 1.19, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->Write(4, "\n");
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'] * 1.19, '2', ',', '.') . " €", 0, 1, 'R');
|
||||
}
|
||||
elseif (7 == $ntust['MwSt'])
|
||||
{
|
||||
@@ -118,8 +118,7 @@ while ($ntust = $resultust->fetch_assoc())
|
||||
$pdf->SetFont('Helvetica', 'B', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'] * 0.07, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'] * 1.07, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->Write(4, "\n");
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'] * 1.07, '2', ',', '.') . " €", 0, 1, 'R');
|
||||
}
|
||||
elseif (0 == $ntust['MwSt'])
|
||||
{
|
||||
@@ -128,8 +127,7 @@ while ($ntust = $resultust->fetch_assoc())
|
||||
$pdf->SetFont('Helvetica', 'B', 10);
|
||||
$pdf->Cell(25, 4, number_format(0, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'], '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->Write(4, "\n");
|
||||
$pdf->Cell(25, 4, number_format($ntust['Preis'], '2', ',', '.') . " €", 0, 1, 'R');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -144,8 +142,7 @@ if (0 != $Sonst_Preis)
|
||||
$pdf->SetFont('Helvetica', 'B', 10);
|
||||
$pdf->Cell(25, 4, number_format($Sonst_MwSt, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($Sonst_Preis + $Sonst_MwSt, '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->Write(4, "\n");
|
||||
$pdf->Cell(25, 4, number_format($Sonst_Preis + $Sonst_MwSt, '2', ',', '.') . " €", 0, 1, 'R');
|
||||
}
|
||||
$ntsum = $resultsum->fetch_assoc();
|
||||
$pdf->Cell(105, 4, "Gesamt", 0);
|
||||
@@ -153,7 +150,7 @@ $pdf->Cell(25, 4, number_format($ntsum['Preis'], '2', ',', '.') . " €", 0, 0,
|
||||
$pdf->SetFont('Helvetica', 'B', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntsum['MwSt'], '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->SetFont('Helvetica', '', 10);
|
||||
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 0, 'R');
|
||||
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
||||
|
||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user