X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fprofit_loss.php;h=70f08d54c0134d92ca52a156d5f3ab85665ce7dd;hb=21ba0553185531c12f16efef9010033d5dd62cdc;hp=3af0e4a7ca65f142fda8b25ec79ab08bcb479b23;hpb=3613e32ad573d5faccb974a421702bdd87583878;p=fa-stable.git diff --git a/gl/inquiry/profit_loss.php b/gl/inquiry/profit_loss.php index 3af0e4a7..70f08d54 100644 --- a/gl/inquiry/profit_loss.php +++ b/gl/inquiry/profit_loss.php @@ -114,8 +114,13 @@ function display_type ($type, $typename, $from, $to, $begin, $end, $compare, $co amount_cell(Achieve(($code_per_balance + $per_balance_total), ($code_acc_balance + $acc_balance_total))); end_row(); } - elseif ($drilldown && $type != $_POST["AccGrp"]) - { + //START Patch#1 : Display only direct child types + $acctype1 = get_account_type($type); + $parent1 = $acctype1["parent"]; + if ($drilldown && $parent1 == $_POST["AccGrp"]) + //END Patch#2 + //elseif ($drilldown && $type != $_POST["AccGrp"]) + { $url = "" . $typename .""; @@ -156,7 +161,7 @@ function inquiry_controls() //Compare Combo global $sel; $sel = array(_("Accumulated"), _("Period Y-1"), _("Budget")); - echo "Comapre To:\n"; + echo ""._("Compare to").":\n"; echo ""; echo array_selector('Compare', null, $sel); echo "\n";