X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Finquiry%2Fprofit_loss.php;h=3e7a26f4ff55a58b199df4970a62bc6c013a6fd8;hb=e6d9f3706a42003ac003820c0532db20d5d50ff8;hp=46b8f44bb98b31062f212e105597a0a04ff638b4;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git
diff --git a/gl/inquiry/profit_loss.php b/gl/inquiry/profit_loss.php
index 46b8f44b..3e7a26f4 100644
--- a/gl/inquiry/profit_loss.php
+++ b/gl/inquiry/profit_loss.php
@@ -127,7 +127,7 @@ function display_type ($type, $typename, $from, $to, $begin, $end, $compare, $co
{
$url = "" . $typename ."";
+ . "&AccGrp=" . $type ."'>" . $type . " " . $typename ."";
alt_table_row_color($k);
label_cell($url);
@@ -160,7 +160,12 @@ function inquiry_controls()
$dim = get_company_pref('use_dimension');
start_table(TABLESTYLE_NOBORDER);
- date_cells(_("From:"), 'TransFromDate', '', null, -30);
+ $date = today();
+ if (!isset($_POST['TransFromDate']))
+ $_POST['TransFromDate'] = begin_month($date);
+ if (!isset($_POST['TransToDate']))
+ $_POST['TransToDate'] = end_month($date);
+ date_cells(_("From:"), 'TransFromDate');
date_cells(_("To:"), 'TransToDate');
//Compare Combo
@@ -266,7 +271,7 @@ function display_profit_and_loss()
{
$url = "" . $accounttype['name'] ."";
+ . "&AccGrp=" . $accounttype['id'] ."'>" . $accounttype['id'] . " " . $accounttype['name'] ."";
alt_table_row_color($k);
label_cell($url);
@@ -310,7 +315,7 @@ function display_profit_and_loss()
$convert = get_class_type_convert($class["ctype"]);
//Print Class Name
- table_section_title(get_account_type_name($_POST["AccGrp"]),4);
+ table_section_title($_POST["AccGrp"] . " " . get_account_type_name($_POST["AccGrp"]),4);
echo $tableheader;
$classtotal = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end, $compare, $convert,