From f9f7bb8b79702e5d2adca23e46fa8fb8fe323c50 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 13 Aug 2009 09:44:13 +0000 Subject: [PATCH] memo field was not written in list of journal entries --- CHANGELOG.txt | 2 ++ reporting/rep702.php | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ed777e5..56f66f3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/reporting/rep702.php b/reporting/rep702.php index 2600df6..5955c52 100644 --- a/reporting/rep702.php +++ b/reporting/rep702.php @@ -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); } -- 2.30.2