Merge pull request #201 from bkuhn/contrib-non-profit-audit-use-accounts
Use "ledger accounts" command rather than the '-F "%150A\n" reg' report solution
This commit is contained in:
commit
7132018098
2 changed files with 2 additions and 4 deletions
|
|
@ -67,8 +67,7 @@ if (@ARGV < 2) {
|
|||
|
||||
my($beginDate, $endDate, @otherLedgerOpts) = @ARGV;
|
||||
|
||||
my(@chartOfAccountsOpts) = ('-V', '-F', "%150A\n", '-w', '-s',
|
||||
'-b', $beginDate, '-e', $endDate, @otherLedgerOpts, 'reg');
|
||||
my(@chartOfAccountsOpts) = ('-b', $beginDate, '-e', $endDate, @otherLedgerOpts, 'accounts');
|
||||
|
||||
open(CHART_DATA, "-|", $LEDGER_CMD, @chartOfAccountsOpts)
|
||||
or die "Unable to run $LEDGER_CMD @chartOfAccountsOpts: $!";
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ die "badly formatted end date, $beginDate" if $formattedBeginDate->parse($beginD
|
|||
$formattedBeginDate = $formattedBeginDate->printf("%Y/%m/%d");
|
||||
|
||||
|
||||
my(@chartOfAccountsOpts) = ('-V', '-F', "%150A\n", '-w', '-s',
|
||||
'-b', $beginDate, '-e', $endDate, @otherLedgerOpts, 'reg');
|
||||
my(@chartOfAccountsOpts) = ('-b', $beginDate, '-e', $endDate, @otherLedgerOpts, 'accounts');
|
||||
|
||||
open(CHART_DATA, "-|", $LEDGER_CMD, @chartOfAccountsOpts)
|
||||
or die "Unable to run $LEDGER_CMD @chartOfAccountsOpts: $!";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue