Chart of accounts should have an end date, but not a beginning date.

This commit is contained in:
Bradley M. Kuhn 2011-12-02 07:30:04 -05:00
parent 7941d2199f
commit 0542de9da7

View file

@ -46,7 +46,7 @@ if (@ARGV < 2) {
my($beginDate, $endDate, @otherLedgerOpts) = @ARGV;
my(@chartOfAccountsOpts) = ('--wide-register-format', "%150A\n", '-w', '-s',
'-b', $beginDate, @otherLedgerOpts, 'reg');
'-e', $endDate, @otherLedgerOpts, 'reg');
open(CHART_DATA, "-|", $LEDGER_CMD, @chartOfAccountsOpts)
or die "Unable to run $LEDGER_CMD @chartOfAccountsOpts: $!";
@ -80,7 +80,6 @@ foreach my $acct (
push(@sortedAccounts, $acct);
}
close(CHART_OUTPUT); die "error writing to chart-of-accounts.txt: $!" unless $? == 0;
###############################################################################
#
# Local variables: