$pdf->setFont('Arial', 'B', '10'); $pdf->SetTextColor(0, 0, 0); $pdf->Cell($address_width, 4, $order['billing_name']); $ypos += 4; $billing_address = $order['billing_street_address']; $billing_address .= "\n" . $order['billing_postcode']; $billing_address .= ' ' . $order['billing_city']; $billing_address .= "\n" . $order['billing_country']; $pdf->SetXY($box2x, $ypos); $pdf->setFont('Arial', '', '10'); $pdf->MultiCell($address_width, 4, $billing_address); } if (count($items) > 0) { //DRAW BARCODE $items_key = array_keys($items); $pdf->OrderBarcode($items[$items_key[0]]['orders_products_id'], 165, 32, 35); //Invoice headline $ypos = 42 + $address_height_used; $pdf->SetXY($margin, $ypos); $pdf->setFont('Arial', 'B', '18'); $headline_text = $print_delivery_note ? 'Lieferschein' : 'Rechnung/Lieferschein für'; $pdf->Cell(120, 4, $headline_text); //Ivoice subheadline $ypos += 6; $pdf->SetXY($margin, $ypos); $pdf->setFont('Arial', 'B', '10'); if ($print_delivery_note) { $pdf->Cell(70, 4, 'Bestell-Nr. ' . $order['orders_no'], 0, 1); } else { $pdf->Cell(70, 4, 'Bestell-Nr. ' . $order['orders_no']); $pdf->Cell(70, 4, 'Rechnungs-Nr. ' . $class_pi->detail['invoice_no'], 0, 1);
$labels .= "\n" . 'Kundennnr.'; $pdf->MultiCell($orderinfo_width, 4, $labels); $pdf->SetXY($leftpos2, $top_pos + 25); $pdf->setFont('Arial', '', $fontsize_big); $values = ': ' . $order['shipment_id']; if ($order['order_id'] != '') { $values .= "\n" . ': ' . $order['order_id']; } $values .= "\n" . ': ' . date('d.m.Y', strtotime($order['order_date'])); $values .= "\n" . ': ' . $order['customer_shipping_id']; $pdf->MultiCell($orderinfo_width, 4, $values); //Order Items if (count($items) > 0) { //DRAW BARCODE $items_key = array_keys($items); $pdf->OrderBarcode($items[$items_key[0]]['jng_sp_orders_items_id'], $margin, 55, 32); $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++;