Changed general-ledger-report.plx to use tags for Receipt and Invoice (was %N)
Added sample PDF artifacts for the example (see README)
This commit is contained in:
parent
ca77b08fcc
commit
65e0c266be
6 changed files with 25 additions and 2 deletions
13
contrib/non-profit-audit-reports/README
Normal file
13
contrib/non-profit-audit-reports/README
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
README
|
||||
|
||||
This document provides backround on the enclosed example
|
||||
|
||||
Sample PDF files
|
||||
----------------
|
||||
The sample PDF files were created as follows:
|
||||
|
||||
paps --font="Courier 12" --paper letter --top-margin=18 tests/Projects/Foo/Expenses/hosting/AprilHostingReceipt.txt | ps2pdf - tests/Projects/Foo/Expenses/hosting/AprilHostingReceipt.pdf
|
||||
|
||||
paps --font="Courier 12" --paper letter --top-margin=18 tests/Financial/Invoices/Invoice20110510.txt | ps2pdf - tests/Financial/Invoices/Invoice20110510.pdf
|
||||
|
||||
|
||||
|
|
@ -108,8 +108,7 @@ foreach my $acct (@sortedAccounts) {
|
|||
print GL_CSV_OUT "\n\"ACCOUNT:\",\"$acct\"\n\"PERIOD START:\",\"$beginDate\"\n\"PERIOD END:\",\"$formattedEndDate\"\n";
|
||||
print GL_CSV_OUT '"DATE","CHECK NUM","NAME","MEMO","TRANSACTION AMT","RUNNING TOTAL"', "\n";
|
||||
@acctLedgerOpts = ('-F',
|
||||
'"%(date)","%C","%P","%N","%t","%T"\n', '-w', '--sort', 'd',
|
||||
'-b', $beginDate, '-e', $endDate, @otherLedgerOpts, 'reg', $acct);
|
||||
'"%(date)","%C","%P","%(tag(\'Receipt\'))","%(tag(\'Invoice\'))","%t","%T"\n', '-w', '--sort', 'd', '-b', $beginDate, '-e', $endDate, @otherLedgerOpts, 'reg', $acct);
|
||||
open(GL_CSV_DATA, "-|", $LEDGER_CMD, @acctLedgerOpts)
|
||||
or die "Unable to run $LEDGER_CMD @acctLedgerOpts: $!";
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1,5 @@
|
|||
Invoice
|
||||
|
||||
Date: May 10, 2011
|
||||
|
||||
Donation to the General Fund: $50.00
|
||||
Binary file not shown.
|
|
@ -0,0 +1,6 @@
|
|||
Baz Hosting Services, LLC
|
||||
|
||||
Date: April 20, 2011
|
||||
|
||||
Charge: $250.00
|
||||
|
||||
Loading…
Add table
Reference in a new issue