Merged changes from stable branch up to 2.3.23.
[fa-stable.git] / gl / view / gl_deposit_view.php
index 6ff9bf4d712ee73ab200ab2e9f4472dc397c784f..152a99efa26da1de292dae253d226d1a28688ff7 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'");
@@ -142,4 +142,3 @@ else
 }
 
 end_page(true, false, false, ST_BANKDEPOSIT, $trans_no);
-?>
\ No newline at end of file