projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor change to balance sheet/profit and loss drilldown
[fa-stable.git]
/
gl
/
inquiry
/
balance_sheet.php
diff --git
a/gl/inquiry/balance_sheet.php
b/gl/inquiry/balance_sheet.php
index c08183d74d5a47d915d628087795c1b60ce03af9..776171abe6f26bc923635cc6b971715bc895e706 100644
(file)
--- a/
gl/inquiry/balance_sheet.php
+++ b/
gl/inquiry/balance_sheet.php
@@
-97,7
+97,12
@@
function display_type ($type, $typename, $from, $to, $convert, $drilldown, $path
amount_cell(($acctstotal + $typestotal) * $convert);
end_row();
}
amount_cell(($acctstotal + $typestotal) * $convert);
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 = "<a href='$path_to_root/gl/inquiry/balance_sheet.php?TransFromDate="
. $from . "&TransToDate=" . $to
{
$url = "<a href='$path_to_root/gl/inquiry/balance_sheet.php?TransFromDate="
. $from . "&TransToDate=" . $to