memo field was not written in list of journal entries
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 13 Aug 2009 09:44:13 +0000 (09:44 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 13 Aug 2009 09:44:13 +0000 (09:44 +0000)
CHANGELOG.txt
reporting/rep702.php

index ed777e5a09a74ca3a857f537a6e66a09584a9b59..56f66f3441743b95eda4bd1e6a35a9418e465d04 100644 (file)
@@ -23,6 +23,8 @@ $ -> Affected files
 # [0000159] Memo field's GL entries are not saved (gl_trans) in supplier invoice
 $ /purchasing/includes/purchasing_db.inc
   /purchasing/includes/db/invoice_db.inc
+# memo field was not written in list of journal entries.
+$ /reporting/rep702.php
   
 08-Aug-2009 Janusz Dobrowolski
 # Fixed bug in calculation of taxes for quick entries using multiply tax rates
index 2600df6ba3f02fced02f9598cc88050603b15b1d..5955c52fb14ebe0d9bd9d7d06e8b2300c98b752d 100644 (file)
@@ -87,7 +87,12 @@ function print_list_of_journal_entries()
             $coms =  payment_person_types::person_name($myrow["person_type_id"],$myrow["person_id"]);
             $memo = get_comments_string($myrow['type'], $myrow['type_no']);
             if ($memo != '')
-               $coms .= ($coms!= "")?"/":"" . $memo;
+            {
+               if ($coms == "")
+                       $coms = $memo;
+               else
+                       $coms .= " / ".$memo;
+            }          
             $rep->TextCol(3, 6, $coms);
             $rep->NewLine(2);
         }