summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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>