- $col += $width;
- if ($doctype == 26)
- $this->TextWrap($col, $this->row, $width, sql2date($myrow["required_by"]), 'C');
- else
- {
- $id = $myrow['payment_terms'];
- $sql = "SELECT terms FROM ".TB_PREF."payment_terms WHERE terms_indicator='$id'";
- $result = db_query($sql,"could not get paymentterms");
- $row = db_fetch($result);
- $this->TextWrap($col, $this->row, $width, $row["terms"], 'C');
- }