Implemented journal entries with multiply virtual AR/AP subaccounts.
[fa-stable.git] / reporting / rep702.php
index 01d3606a420f84a9c46d9ce57525daf6785b2ebc..9fdde38eb02970756f53731a0cba51adf5db3f04 100644 (file)
@@ -95,7 +95,7 @@ function print_list_of_journal_entries()
             $rep->TextCol(0, 1, $TransName . " # " . $myrow['type_no']);
             $rep->TextCol(1, 2, get_reference($myrow['type'], $myrow['type_no']));
             $rep->DateCol(2, 3, $myrow['tran_date'], true);
-            $coms =  payment_person_name($myrow["person_type_id"],$myrow["person_id"]);
+            $coms =  get_subaccount_name($myrow["account"], $myrow["person_id"]);
             $memo = get_comments_string($myrow['type'], $myrow['type_no']);
             if ($memo != '')
             {