X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Ftax_inquiry.php;h=d1a38637d9eb26a77f0d35a74831dffa866e43d6;hb=1ca0c7081f7a4cb3f68f3ffb6ee05739abb6cebf;hp=ec96716a267b12279ce09d921a63306ac21e582f;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/gl/inquiry/tax_inquiry.php b/gl/inquiry/tax_inquiry.php index ec96716a..d1a38637 100644 --- a/gl/inquiry/tax_inquiry.php +++ b/gl/inquiry/tax_inquiry.php @@ -58,7 +58,7 @@ function tax_inquiry_controls() start_table(TABLESTYLE_NOBORDER); start_row(); - date_cells(_("from:"), 'TransFromDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days()); + date_cells(_("from:"), 'TransFromDate', '', null, -user_transaction_days()); date_cells(_("to:"), 'TransToDate'); submit_cells('Show',_("Show"),'','', 'default'); @@ -73,8 +73,6 @@ function tax_inquiry_controls() function show_results() { - global $path_to_root; - /*Now get the transactions */ div_start('trans_tbl'); start_table(TABLESTYLE); @@ -83,8 +81,6 @@ function show_results() table_header($th); $k = 0; $total = 0; - $bdate = date2sql($_POST['TransFromDate']); - $edate = date2sql($_POST['TransToDate']); $taxes = get_tax_summary($_POST['TransFromDate'], $_POST['TransToDate']);