Esempio n. 1
0
 }
 //START DRAWING INVOICE
 //Invoice Header
 $pdf->setFont('Arial', '', '11');
 $pdf->SetXY($margin, $margin);
 $header_text = $print_delivery_note ? 'Lieferschein für Bestell-Nr. ' . $order['orders_no'] : 'Rechnung für ' . $class_pi->detail['invoice_no'];
 $pdf->Cell(70, 10, $header_text, 0, 0);
 $pdf->SetXY(80, $margin);
 $pdf->Cell(70, 10, tep_date_only($class_pi->detail['invoice_date']), 0, 0);
 //Shipping Address
 $boxpos1x = $margin + 1;
 $boxpos2x = 80;
 $boxpos_y = 36;
 $address_height_used = $order['delivery_company'] != '' ? $address_height2 : $address_height;
 $pdf->setFont('Arial', '', '10');
 $pdf->SetDrawColor($gray, $gray, $gray);
 $pdf->Rect($boxpos1x, $boxpos_y, $address_width, $address_height_used);
 if ($print_address_note) {
     $pdf->Rect($boxpos2x, $boxpos_y, $address_width, $address_height_used);
 }
 $box1x = $boxpos1x + 2;
 $box2x = $boxpos2x + 2;
 $box_y = $boxpos_y + 4;
 $ypos = $box_y;
 $pdf->SetXY($box1x, $ypos);
 $pdf->SetTextColor($gray, $gray, $gray);
 $pdf->Cell($address_width, 4, 'Empfänger:');
 $ypos += 6;
 if ($order['delivery_company'] != '') {
     $pdf->SetXY($box1x, $ypos);
     $pdf->setFont('Arial', 'B', '10');