Merged last changes from stable.
[fa-stable.git] / gl / view / gl_deposit_view.php
index 88d315aa1743038d198db0e4a11113e69c1e5533..21dfcc3234c4cd674889bb688925b0e70e0dcd4f 100644 (file)
@@ -68,7 +68,7 @@ label_cells(_("Amount"), number_format2($to_trans['amount'], user_price_dec()),
 label_cells(_("Date"), sql2date($to_trans['trans_date']), "class='tableheader2'");
 end_row();
 start_row();
-label_cells(_("From"), payment_person_name($to_trans['person_type_id'], $to_trans['person_id']), "class='tableheader2'", "colspan=$colspan1");
+label_cells(_("From"), get_counterparty_name(BT_BANKDEPOSIT, $to_trans['trans_no']), "class='tableheader2'", "colspan=$colspan1");
 if ($show_currencies)
 {
        label_cells(_("Settle currency"), $to_trans['settle_curr'], "class='tableheader2'");