Added memo/comments print in remittance and receipt. Optimized memo/prints in other...
[fa-stable.git] / reporting / rep107.php
index 620117f775f595b0dfe62d7acd9f1b6b4f3923ff..17fbd69dd3640d7b734c39eae78562786915d9bc 100644 (file)
@@ -129,12 +129,11 @@ function print_invoices()
                                        $rep->NewPage();
                        }
 
-                       $comments = get_comments(ST_SALESINVOICE, $i);
-                       if ($comments && db_num_rows($comments))
+                       $memo = get_comments_string(ST_SALESINVOICE, $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);