From 7c57cf4e5409a8addc4256293b34defffd762adc Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 6 Sep 2012 19:57:22 -0400 Subject: Initial test data for the non-profit-audit-reports contrib application. The basic idea here is that given non-profit-test-data.ledger herein, there should be a script that I could run, in this fashion: $ general-ledger-report -b 2011/03/01 -e 2012/03/01 -f tests/non-profit-test-data.ledger that would generate: non-profit-test-data_chart-of-accounts.txt non-profit-test-data_general-ledger.ods Note that the ODS file currently has placeholders, as I haven't fully figured out how to use the =hyperlink() function to make relative hyperlinks. --- .../tests/non-profit-test-data.ledger | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger (limited to 'contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger') diff --git a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger new file mode 100644 index 00000000..4eeabcf5 --- /dev/null +++ b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger @@ -0,0 +1,22 @@ + +2010/01/01 A Donation to Project Foo + Income:Foo:Donation $-100.00 + ;INVOICE: Projects/Foo/Invoices/Invoice20110315.pdf + Assets:Checking $100.00 + + +2011/03/15 A Later Donation to Project Foo + Income:Foo:Donation $-400.00 + Assets:Checking $400.00 + +2011/04/20 (1) A Later Donation to Project Foo + Expenses:Foo:Hosting $250.00 + ;RECEIPT: Projects/Foo/Expenses/hosting/AprilHostingReceipt.pdf + Assets:Checking $-250.00 + +2011/05/10 Donation to General Fund + Income:Donation $-50.00 + ;INVOICE: Financial/Invoices/Invoice20110510.pdf + Assets:Checking $50.00 + + -- cgit v1.2.3 From ca77b08fccd82f16096f6b8e1faa9ff0f4263748 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Fri, 7 Sep 2012 12:49:31 -0400 Subject: Make test data slightly more realistic. --- contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger') diff --git a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger index 4eeabcf5..6b911061 100644 --- a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger +++ b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger @@ -9,7 +9,7 @@ Income:Foo:Donation $-400.00 Assets:Checking $400.00 -2011/04/20 (1) A Later Donation to Project Foo +2011/04/20 (1) Baz Hosting Services, LLC Expenses:Foo:Hosting $250.00 ;RECEIPT: Projects/Foo/Expenses/hosting/AprilHostingReceipt.pdf Assets:Checking $-250.00 -- cgit v1.2.3 From 5aea0446e104b35441a270cd024b179a6fa1e231 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Fri, 7 Sep 2012 13:17:15 -0400 Subject: Don't use all caps for tags in test data. --- contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger') diff --git a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger index 6b911061..df760ac5 100644 --- a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger +++ b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger @@ -1,7 +1,7 @@ 2010/01/01 A Donation to Project Foo Income:Foo:Donation $-100.00 - ;INVOICE: Projects/Foo/Invoices/Invoice20110315.pdf + ;Invoice: Projects/Foo/Invoices/Invoice20110315.pdf Assets:Checking $100.00 @@ -11,12 +11,12 @@ 2011/04/20 (1) Baz Hosting Services, LLC Expenses:Foo:Hosting $250.00 - ;RECEIPT: Projects/Foo/Expenses/hosting/AprilHostingReceipt.pdf + ;Receipt: Projects/Foo/Expenses/hosting/AprilHostingReceipt.pdf Assets:Checking $-250.00 2011/05/10 Donation to General Fund Income:Donation $-50.00 - ;INVOICE: Financial/Invoices/Invoice20110510.pdf + ;Invoice: Financial/Invoices/Invoice20110510.pdf Assets:Checking $50.00 -- cgit v1.2.3 From b9e534d37200af16c473683df01cea4e823f5079 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Fri, 7 Sep 2012 14:58:36 -0400 Subject: Fixed 2010/01/01 test data and added an invoice for it. --- .../tests/Projects/Foo/Invoices/Invoice20100101.pdf | Bin 0 -> 14926 bytes .../tests/non-profit-test-data.ledger | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 contrib/non-profit-audit-reports/tests/Projects/Foo/Invoices/Invoice20100101.pdf (limited to 'contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger') diff --git a/contrib/non-profit-audit-reports/tests/Projects/Foo/Invoices/Invoice20100101.pdf b/contrib/non-profit-audit-reports/tests/Projects/Foo/Invoices/Invoice20100101.pdf new file mode 100644 index 00000000..11f6286c Binary files /dev/null and b/contrib/non-profit-audit-reports/tests/Projects/Foo/Invoices/Invoice20100101.pdf differ diff --git a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger index df760ac5..a796258c 100644 --- a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger +++ b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger @@ -1,7 +1,7 @@ -2010/01/01 A Donation to Project Foo +2010/01/01 Kindly T. Donor Income:Foo:Donation $-100.00 - ;Invoice: Projects/Foo/Invoices/Invoice20110315.pdf + ;Invoice: Projects/Foo/Invoices/Invoice20100101.pdf Assets:Checking $100.00 @@ -19,4 +19,3 @@ ;Invoice: Financial/Invoices/Invoice20110510.pdf Assets:Checking $50.00 - -- cgit v1.2.3 From 7f565df353e91784cb40f0dae1f278f60b31d6e0 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Fri, 7 Sep 2012 15:04:44 -0400 Subject: Added additional transaction to test data, this one has both Receipt and Invoice. --- .../Blah/Expenses/hosting/AprilHostingReceipt.pdf | 106 +++++++++++++++++++++ .../Blah/Expenses/hosting/april-invoice.pdf | Bin 0 -> 3153 bytes .../tests/non-profit-test-data.ledger | 5 + 3 files changed, 111 insertions(+) create mode 100644 contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf create mode 100644 contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/april-invoice.pdf (limited to 'contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger') diff --git a/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf b/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf new file mode 100644 index 00000000..b6937670 --- /dev/null +++ b/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf @@ -0,0 +1,106 @@ +%PDF-1.4 +%쏢 +5 0 obj +<> +stream +xn0E~1q#]4 @;0x؆*tQ!d_Bp:;=F&='(X}]D\+cQٲ K^jyYHTTMq> +/Contents 5 0 R +>> +endobj +3 0 obj +<< /Type /Pages /Kids [ +4 0 R +] /Count 1 +>> +endobj +1 0 obj +<> +endobj +7 0 obj +<>endobj +11 0 obj +<> +endobj +12 0 obj +<> +endobj +9 0 obj +<> +endobj +8 0 obj +<> +endobj +10 0 obj +<> +endobj +13 0 obj +<>stream + + + + + +2012-09-07T15:02:10-04:00 +2012-09-07T15:02:10-04:00 +a2ps version 4.14 + +receiptBradley M. Kuhn + + + + + +endstream +endobj +2 0 obj +<>endobj +xref +0 14 +0000000000 65535 f +0000000692 00000 n +0000002544 00000 n +0000000633 00000 n +0000000473 00000 n +0000000015 00000 n +0000000454 00000 n +0000000757 00000 n +0000000942 00000 n +0000000878 00000 n +0000001004 00000 n +0000000798 00000 n +0000000828 00000 n +0000001074 00000 n +trailer +<< /Size 14 /Root 1 0 R /Info 2 0 R +/ID [<346C5213A8B2262C0696706A70350365><346C5213A8B2262C0696706A70350365>] +>> +startxref +2736 +%%EOF diff --git a/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/april-invoice.pdf b/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/april-invoice.pdf new file mode 100644 index 00000000..7241909a Binary files /dev/null and b/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/april-invoice.pdf differ diff --git a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger index a796258c..69aeb571 100644 --- a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger +++ b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger @@ -19,3 +19,8 @@ ;Invoice: Financial/Invoices/Invoice20110510.pdf Assets:Checking $50.00 +2011/04/20 (2) Baz Hosting Services, LLC + Expenses:Blah:Hosting $250.00 + ;Receipt: Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf + ;Invoice: Projects/Blah/Expenses/hosting/april-invoice.pdf + Assets:Checking $-250.00 -- cgit v1.2.3 From 287a756ab6c7072349dee8818e9775d67c8847be Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 21 Nov 2012 13:08:26 -0500 Subject: New test data for increasing the set of possible tags. I use more tags than just Invoice and Receipt, so I'd like this to support more than just two. Here's some test data showing other tags that I use. --- .../tests/Financial/BankStuff/bank-statement.pdf | Bin 0 -> 3257 bytes .../tests/Projects/Foo/earmark-record.txt | 1 + .../tests/non-profit-test-data.ledger | 4 +++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 contrib/non-profit-audit-reports/tests/Financial/BankStuff/bank-statement.pdf create mode 100644 contrib/non-profit-audit-reports/tests/Projects/Foo/earmark-record.txt (limited to 'contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger') diff --git a/contrib/non-profit-audit-reports/tests/Financial/BankStuff/bank-statement.pdf b/contrib/non-profit-audit-reports/tests/Financial/BankStuff/bank-statement.pdf new file mode 100644 index 00000000..27b40353 Binary files /dev/null and b/contrib/non-profit-audit-reports/tests/Financial/BankStuff/bank-statement.pdf differ diff --git a/contrib/non-profit-audit-reports/tests/Projects/Foo/earmark-record.txt b/contrib/non-profit-audit-reports/tests/Projects/Foo/earmark-record.txt new file mode 100644 index 00000000..c5ac98ac --- /dev/null +++ b/contrib/non-profit-audit-reports/tests/Projects/Foo/earmark-record.txt @@ -0,0 +1 @@ +I, Another J. Donor, would like $400 to be earmarked for Foo! diff --git a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger index 69aeb571..fb6134ff 100644 --- a/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger +++ b/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger @@ -5,8 +5,9 @@ Assets:Checking $100.00 -2011/03/15 A Later Donation to Project Foo +2011/03/15 Another J. Donor Income:Foo:Donation $-400.00 + ;Approval: Projects/Foo/earmark-record.txt Assets:Checking $400.00 2011/04/20 (1) Baz Hosting Services, LLC @@ -24,3 +25,4 @@ ;Receipt: Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf ;Invoice: Projects/Blah/Expenses/hosting/april-invoice.pdf Assets:Checking $-250.00 + ;Statement: Financial/BankStuff/bank-statement.pdf -- cgit v1.2.3