diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-12-21 01:56:50 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-12-21 01:56:50 +0000 |
commit | 948648b269291eb95e85fe8c726689b5924738a0 (patch) | |
tree | 428f77375d40c4b47af63277f3094188c1c46e31 /bin | |
parent | 27e466198957d4d5f6ed3b08bf8f8de191389e3f (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.pl | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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> |