$ei3_top_pos = $ypos + $def_lineheight * 2; //Fehler $top_pos = $ei3_top_pos; $xpos = $margin + 2; $title = 'Fehler'; $pdf->SetXY($xpos, $top_pos); $pdf->setFont('Arial', 'B', $fontsize_sml_med); $pdf->Cell(0, $def_lineheight, $title, 0, 1); $text = array(); $text[] = '10 = Material/Verarbeitung mangelhaft'; //$text[] = '11 = Artikel funktioniert nicht'; $text[] = '12 = Artikel beschädigt'; //$text[] = '13 = Artikel nicht vollständig'; //$text[] = '14 = Artikel beschmutzt oder zerknittert'; $fulltext = implode("\n", $text); $pdf->SetX($xpos); $pdf->setFont('Arial', '', $fontsize_sml_med); $pdf->MultiCell(0, $def_lineheight, $fulltext, 0); //Bestellung / Lieferung // $top_pos += $def_lineheight*4; // $xpos = $margin + 5; $xpos = $margin + 42; $title = 'Bestellung / Lieferung'; $pdf->SetXY($xpos, $top_pos); $pdf->setFont('Arial', 'B', $fontsize_sml_med); $pdf->Cell(0, $def_lineheight, $title, 0, 1); $text = array(); $text[] = '20 = falscher Artikel geliefert'; $text[] = '21 = Artikel fehlt'; //$text[] = '22 = Artikel falsch berechnet'; //$text[] = '30 = Lieferung kam zu spät';
$total_items = 15; $col1w = 40; $col2w = 70; $col3w = 20; $ystart = 75; $def_lineheight = 6; $pdf->setFont('Arial', 'B', $fontsize_med); $pdf->SetXY($margin, $ystart); $pdf->Cell($col1w, $def_lineheight * 2, 'Artikelnummer', 1, 0); $pdf->Cell($col2w, $def_lineheight * 2, 'Artikelbezeichnung', 1, 0); $pdf->Cell($col3w, $def_lineheight * 2, 'Menge', 1, 1, 'C'); $pdf->setFont('Arial', '', $fontsize_med); $item_counter = 0; foreach ($items as $item) { $item_counter++; $pdf->SetX($margin); $pdf->Cell($col1w, $def_lineheight, $item['article_number'], 1, 0); // $pdf->Cell($col2w, $def_lineheight, $item['billing_text'], 1, 0); $pdf->Cell($col2w, $def_lineheight, $class_pm->displayProductName($item['products_id'], 65), 1, 0); $pdf->Cell($col3w, $def_lineheight, intval($item['order_quantity']), 1, 1, 'C'); } if ($item_counter < $total_items) { $item_counter++; for ($ic = $item_counter; $ic <= $total_items; $ic++) { $pdf->SetX($margin); $pdf->Cell($col1w, $def_lineheight, '', 1, 0); $pdf->Cell($col2w, $def_lineheight, '', 1, 0); $pdf->Cell($col3w, $def_lineheight, '', 1, 1, 'C'); } } //Items return Info