+ if (!isset($packing_slip) || $packing_slip == 0)
+ {
+ $this->row -= (2 * $this->lineHeight);
+ if ($doctype == 26)
+ $str = sql2date($myrow["required_by"]);
+ 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);
+ $str = $row["terms"];
+ }
+ $this->Font('italic');
+ $this->TextWrap($ccol, $this->row, $right-$ccol, $doc_Payment_Terms . ": " . $str);
+ $this->Font();
+ }