$values[] = $invoice_no . $invoice_no_text;
 $values[] = tep_date_only($invoice_date);
 $pdf->MultiCell($col_width, 4, implode("\n", $labels));
 $pdf->SetXY($margin + $col_width, $ypos);
 $pdf->MultiCell(150, 4, implode("\n", $values));
 //Products:
 $col1w = 12;
 $col2w = 30;
 $col3w = 75;
 //50 + $col5w
 $col4w = 25;
 //$col5w = 25;
 $col6w = 12;
 $col7w = 27;
 //header
 $pdf->Line($margin, $ypos + 15, 200, $ypos + 15);
 $pdf->Line($margin, $ypos + 21, 200, $ypos + 21);
 $ypos += 16;
 $pdf->SetXY($margin, $ypos);
 $def_lineheight = 4;
 $pdf->setFont('Arial', 'B', '8');
 $pdf->Cell($col1w, $def_lineheight, 'Menge', 0, 0, 'C');
 $pdf->Cell($col2w, $def_lineheight, 'Artikelnummer');
 $pdf->Cell($col3w, $def_lineheight, 'Artikelbezeichnung');
 if (!$print_delivery_note) {
     $pdf->Cell($col4w, $def_lineheight, 'Einzelpreis (netto)', 0, 0, 'R');
     //$pdf->Cell($col5w, $def_lineheight, 'Gesamt (netto)', 0, 0, 'R');
     $pdf->Cell($col6w, $def_lineheight, 'MwSt.', 0, 0, 'C');
     $pdf->Cell($col7w, $def_lineheight, 'Gesamt (MwSt.)', 0, 1, 'R');
 }
 $ypos += 2;
Esempio n. 2
0
 }
 $pdf->setFont('Arial', '', '10');
 $pdf->Cell(70, 4, 'Ihre Bestellung vom ' . tep_date_only($order['date_purchased']));
 if (!$print_delivery_note) {
     $pdf->Cell(70, 4, 'Lieferdatum/Rechnungsdatum: ' . tep_date_only($class_pi->detail['invoice_date']));
 }
 //Products:
 $col1w = 12;
 $col2w = 25;
 $col3w = 60;
 $col4w = 27;
 $col5w = 23;
 $col6w = 16;
 $col7w = 20;
 //header
 $pdf->Line($margin, $ypos + 12, 200, $ypos + 12);
 $pdf->Line($margin, $ypos + 18, 200, $ypos + 18);
 $ypos += 13;
 $pdf->SetXY($margin, $ypos);
 $pdf->setFont('Arial', 'B', '8');
 $pdf->Cell($col1w, 4, 'Menge', 0, 0, 'C');
 $pdf->Cell($col2w, 4, 'Artikel-Nr');
 $pdf->Cell($col3w, 4, 'Artikel');
 if (!$print_delivery_note) {
     $pdf->Cell($col4w, 4, 'Einzelpreis (netto)', 0, 0, 'R');
     $pdf->Cell($col5w, 4, 'Gesamt (netto)', 0, 0, 'R');
     $pdf->Cell($col6w, 4, 'MwSt.', 0, 0, 'C');
     $pdf->Cell($col7w, 4, 'Gesamt (MwSt.)', 0, 0, 'R');
 }
 $ypos += 2;
 //list
 $pdf->MultiCell($col_width, 4, implode("\n", $labels));
 $pdf->SetXY($margin + $col_width, $ypos);
 $pdf->MultiCell(150, 4, implode("\n", $values));
 $col1w = 12;
 $col2w = 30;
 $col3w = 75;
 //50 + $col5w
 $col4w = 25;
 //$col5w = 25;
 $col6w = 12;
 $col7w = 27;
 $xstart = $margin;
 $def_lineheight = 6;
 $ystart = $ypos + 16;
 $ystart2 = $ystart + $def_lineheight;
 $pdf->Line($margin, $ystart, 200, $ystart);
 $pdf->Line($margin, $ystart2, 200, $ystart2);
 $pdf->setFont('Arial', 'B', $fontsize_med);
 $pdf->SetXY($xstart, $ystart);
 $pdf->Cell($col1w, $def_lineheight, 'Menge', 0, 0, 'C');
 $pdf->Cell($col2w, $def_lineheight, 'Artikelnummer', 0, 0);
 $pdf->Cell($col3w, $def_lineheight, 'Artikelbezeichnung', 0, 0);
 $pdf->Cell($col4w, $def_lineheight, 'Einzelpreis (netto)', 0, 0, 'R');
 //$pdf->Cell($col5w, $def_lineheight, 'Gesamt (netto)', 0, 0, 'R');
 $pdf->Cell($col6w, $def_lineheight, 'MwSt.', 0, 0, 'R');
 $pdf->Cell($col7w, $def_lineheight, 'Gesamt (MwSt.)', 0, 1, 'R');
 $pdf->setFont('Arial', '', $fontsize_med);
 $def_lineheight = 4;
 $item_counter = 0;
 $total_price = 0;
 $ystart3 = $ystart2 + 2;