Added memo/comments print in remittance and receipt. Optimized memo/prints in other...
[fa-stable.git] / reporting / rep113.php
index bca06d1b2cea99c4dd07da2ade2d4e9b25be8ad6..7a612243ff6a2b313f6b92b17e6b94e4a18e0ad9 100644 (file)
@@ -131,12 +131,11 @@ function print_credits()
                                        $rep->NewPage();
                        }
 
-                       $comments = get_comments(ST_CUSTCREDIT, $i);
-                       if ($comments && db_num_rows($comments))
+                       $memo = get_comments_string(ST_CUSTCREDIT, $i);
+                       if ($memo != "")
                        {
                                $rep->NewLine();
-                       while ($comment=db_fetch($comments))
-                               $rep->TextColLines(0, 6, $comment['memo_'], -2);
+                               $rep->TextColLines(1, 5, $memo, -2);
                        }
 
                        $DisplaySubTot = number_format2($SubTotal,$dec);