Changes in db scheme: gl_trans.type_no optimized to int, changed lock_stock.reorder_l...
[fa-stable.git] / gl / view / gl_deposit_view.php
index 88d315aa1743038d198db0e4a11113e69c1e5533..6b1fb4dee05d6138a6edac2c177b3140b84080d6 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