- $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');
+ $this->TextWrap($col, $this->row, $width, $this->formData['wo_ref'], 'C');
+ elseif (isset($this->formData["customer_ref"]))
+ $this->TextWrap($col, $this->row, $width, $this->formData["customer_ref"], 'C');
+ elseif (isset($this->formData["debtor_ref"]))
+ $this->TextWrap($col, $this->row, $width, $this->formData["debtor_ref"], 'C');