X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fprofit_loss.php;h=e20fae1ac33e3404189b08a6fb456b61083724ab;hb=5cd13431fe25eb8cd98f67020c55dab124c7e930;hp=f7e6ea6958a914ec8bb7d664adf7602227e4deee;hpb=648933d504efd675f49e4e07942ebafb9492745d;p=fa-stable.git diff --git a/gl/inquiry/profit_loss.php b/gl/inquiry/profit_loss.php index f7e6ea69..e20fae1a 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";