$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; $pdf->setY($ystart3); foreach ($items as $item) { $item_counter++; $net_price = $item['price'] / (1 + VAT); $qty_net_price = $item['order_quantity'] * $net_price; $vat = VAT * 100 . '%'; $tot_price = $item['order_quantity'] * $item['price']; $total_price += $tot_price; $pdf->SetX($xstart); $pdf->Cell($col1w, $def_lineheight, intval($item['order_quantity']), 0, 0, 'C'); $pdf->Cell($col2w, $def_lineheight, $item['article_number'], 0, 0); // $pdf->Cell($col3w, $def_lineheight, html_entity_decode($item['billing_text']), 0, 0); $pdf->Cell($col3w, $def_lineheight, $class_pm->displayProductName($item['products_id'], 55), 0, 0); $pdf->Cell($col4w, $def_lineheight, displayCurrency('EUR', $net_price), 0, 0, 'R'); //$pdf->Cell($col5w, $def_lineheight, displayCurrency('EUR', $qty_net_price), 0, 0, 'R'); $pdf->Cell($col6w, $def_lineheight, $vat, 0, 0, 'R');