X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fprofit_loss.php;h=f4a73e129b3147cc4076a14550264a9a71d5a620;hb=f821f29324e963437132a3f6fa7c57fcef5c5f0e;hp=b2a09d4f12d36d0ba1daacba184482bb72472b1a;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/gl/inquiry/profit_loss.php b/gl/inquiry/profit_loss.php index b2a09d4f..f4a73e12 100644 --- a/gl/inquiry/profit_loss.php +++ b/gl/inquiry/profit_loss.php @@ -21,7 +21,7 @@ include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/gl/includes/gl_db.inc"); $js = ""; -if ($use_date_picker) +if (user_use_date_picker()) $js = get_js_date_picker(); page(_($help_context = "Profit & Loss Drilldown"), false, false, "", $js); @@ -161,15 +161,13 @@ function inquiry_controls() start_table(TABLESTYLE_NOBORDER); $date = today(); - if (!isset($_POST['TransFromDate'])) - $_POST['TransFromDate'] = begin_month($date); if (!isset($_POST['TransToDate'])) $_POST['TransToDate'] = end_month($date); + if (!isset($_POST['TransFromDate'])) + $_POST['TransFromDate'] = add_days(end_month($date), -user_transaction_days()); date_cells(_("From:"), 'TransFromDate'); date_cells(_("To:"), 'TransToDate'); - //Compare Combo - global $sel; $sel = array(_("Accumulated"), _("Period Y-1"), _("Budget")); echo "