X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fbank_inquiry.php;h=4330a2ade68f54fd6de21a716c05fc9df2fcdc48;hb=7eb7d3b1b680e17ba618b1a3f670f335eceb330e;hp=b264fe7f673f539571e71d27d8f51bcaefbac00a;hpb=da774ae85617b051675afe581f413da78febfc0f;p=fa-stable.git diff --git a/gl/inquiry/bank_inquiry.php b/gl/inquiry/bank_inquiry.php index b264fe7f..4330a2ad 100644 --- a/gl/inquiry/bank_inquiry.php +++ b/gl/inquiry/bank_inquiry.php @@ -46,7 +46,7 @@ start_table(TABLESTYLE_NOBORDER); start_row(); bank_accounts_list_cells(_("Account:"), 'bank_account', null); -date_cells(_("From:"), 'TransAfterDate', '', null, -30); +date_cells(_("From:"), 'TransAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days()); date_cells(_("To:"), 'TransToDate'); submit_cells('Show',_("Show"),'','', 'default'); @@ -102,7 +102,7 @@ while ($myrow = db_fetch($result)) label_cell($trandate); display_debit_or_credit_cells($myrow["amount"]); amount_cell($running_total); - label_cell(payment_person_name($myrow["person_type_id"],$myrow["person_id"])); + label_cell(get_counterparty_name($myrow["type"], $myrow["trans_no"])); label_cell(get_gl_view_str($myrow["type"], $myrow["trans_no"])); end_row(); if ($myrow["amount"] > 0 )