summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-21 01:56:50 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-21 01:56:50 +0000
commit948648b269291eb95e85fe8c726689b5924738a0 (patch)
tree428f77375d40c4b47af63277f3094188c1c46e31 /bin
parent27e466198957d4d5f6ed3b08bf8f8de191389e3f (diff)
Adding chart of account filter to GL reports
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1988 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r--bin/gl.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/gl.pl b/bin/gl.pl
index 8cfe54cd..75cdec6d 100644
--- a/bin/gl.pl
+++ b/bin/gl.pl
@@ -238,6 +238,13 @@ qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|;
|;
}
+ my @accounts = $form->all_accounts;
+ my $account_select = qq|<select name="chart_id" class="account>|;
+ for my $act (@accounts){
+ $account_select .= qq|<option value="$act->{id}">$act->{accno}--| .
+ qq|$act->{description}</option>|;
+ }
+
if ( @{ $form->{all_years} } ) {
# accounting years
@@ -324,7 +331,10 @@ qq|<input name="l_description" class=checkbox type=checkbox value=Y checked> |
<tr>
<th align=right>| . $locale->text('Reference') . qq|</th>
<td><input name=reference size=20></td>
-
+ </tr>
+ <tr>
+ <th align="right">| . $locale->text('Account') . qq|</th>
+ <td>$account_select</td>
</tr>
<tr>
<th align=right>| . $locale->text('Source') . qq|</th>