- $this->row = $iline2 - 2 * $this->lineHeight;
- $this->Text($ccol, $doc_Shipping_Company . ":", $ccol2);
- if ($doctype != 8 && isset($myrow['shipper_name']))
- $this->Text($ccol2, $myrow['shipper_name'], $mcol);
- $this->Text($mcol, $doc_Due_Date . ":", $mcol2);
- if ($doctype == 9)
- $this->Text($mcol2, sql2date($myrow['delivery_date']));
- else if ($doctype != 8 && isset($myrow['due_date']))
- $this->Text($mcol2, sql2date($myrow['due_date']));
+ $this->row = $iline2 - $this->lineHeight - 1;
+ $col = $this->leftMargin;
+ $this->TextWrap($col, $this->row, $width, $doc_Customers_Ref, 'C');
+ $col += $width;
+ $this->TextWrap($col, $this->row, $width, $doc_Our_Ref, 'C');
+ $col += $width;
+ $this->TextWrap($col, $this->row, $width, $doc_Your_VAT_no, 'C');
+ $col += $width;
+ if ($doctype == 10)
+ $this->TextWrap($col, $this->row, $width, $doc_Delivery_no, 'C');
+ else
+ $this->TextWrap($col, $this->row, $width, $doc_Our_Order_No, 'C');
+ $col += $width;
+ $this->TextWrap($col, $this->row, $width, $doc_Payment_Terms, 'C');
+ $col += $width;
+ $this->TextWrap($col, $this->row, $width, $doc_Due_Date, 'C');
+ $this->row = $iline3 - $this->lineHeight - 1;
+ $col = $this->leftMargin;
+ if ($doctype == 8)
+ $this->TextWrap($col, $this->row, $width, $myrow['supp_account_no'], 'C');
+ elseif ($doctype == 26)
+ $this->TextWrap($col, $this->row, $width, $myrow['wo_ref'], 'C');
+ elseif (isset($sales_order["customer_ref"]))
+ $this->TextWrap($col, $this->row, $width, $sales_order["customer_ref"], 'C');
+ $col += $width;