[0003239] Bank Account Inquiry: fixed missing counterparty info for some transactions.
[fa-stable.git] / gl / inquiry / bank_inquiry.php
index 577d234693021a2b63f6f60399b3f3fa53b4c8b9..d2196a2cf94db4549f42afcbd604e84c0eadbf8f 100644 (file)
@@ -103,7 +103,9 @@ while ($myrow = db_fetch($result))
        label_cell($trandate);
        display_debit_or_credit_cells($myrow["amount"]);
        amount_cell($running_total);
-       label_cell(get_counterparty_name($myrow["type"], $myrow["trans_no"]));
+
+       label_cell(payment_person_name($myrow["person_type_id"],$myrow["person_id"]));
+
        label_cell(get_comments_string($myrow["type"], $myrow["trans_no"]));
        label_cell(get_gl_view_str($myrow["type"], $myrow["trans_no"]));