+ elseif ($doctype == 13)
+ {
+ $ref = $myrow['order_'];
+ if ($print_invoice_no == 0)
+ {
+ $ref = get_reference(ST_SALESORDER, $myrow['order_']);
+ if (!$ref)
+ $ref = "";
+ }
+ $this->TextWrap($col, $this->row, $width, $ref, 'C');
+ }
+ elseif ($doctype == 26)
+ $this->TextWrap($col, $this->row, $width, $myrow["location_name"], 'C');