X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fprofit_loss.php;fp=gl%2Finquiry%2Fprofit_loss.php;h=89fc80c24166395fe122f67f6741886e9cf9d355;hb=2d621ca6425f6b19711ca57d80e10b634576e9b0;hp=f7e6ea6958a914ec8bb7d664adf7602227e4deee;hpb=8438a027a31b2625f21db52a3cbff254b739a221;p=fa-stable.git diff --git a/gl/inquiry/profit_loss.php b/gl/inquiry/profit_loss.php index f7e6ea69..89fc80c2 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 ."";