[0003245] Invoice/Quotation Report: fixed option for printing order as quotation.
[fa-stable.git] / reporting / rep601.php
index 56a53c353ae2c9047aa0d0e2bf8ee6cba809a5b2..ba630465ab1062e2c6a64d11444217674e6759f0 100644 (file)
@@ -125,7 +125,7 @@ function print_bank_transactions()
                                $rep->TextCol(1, 2,     $myrow['trans_no']);
                                $rep->TextCol(2, 3,     $myrow['ref']);
                                $rep->DateCol(3, 4,     $myrow["trans_date"], true);
-                               $rep->TextCol(4, 5,     payment_person_name($myrow["person_type_id"],$myrow["person_id"], false));
+                               $rep->TextCol(4, 5,     get_counterparty_name($myrow["type"], $myrow["trans_no"], false));
                                if ($myrow['amount'] > 0.0)
                                {
                                        $rep->AmountCol(5, 6, abs($myrow['amount']), $dec);
@@ -174,4 +174,3 @@ function print_bank_transactions()
        $rep->End();
 }
 
-?>
\ No newline at end of file