Files @ 552ef45f47df
Branch filter:

Location: NPO-Accounting/conservancy_beancount/tests/books/accruals.beancount

Brett Smith
plugin: Be more selective about when ! skips validation.

It makes sense to let the bookkeeper skip validations in situations
where the metadata requires information that might not be available
when entered. It does not make sense to skip validations that *must*
be available and affect the structure of the books, like project and
entity.

This commit ensures every plugin hook has a test for flagged
transactions, even for hooks that currently have the desired
behavior where no code changes were required for the test to
pass.
2020-01-01 open Assets:Checking
2020-01-01 open Assets:Receivable:Accounts
2020-01-01 open Expenses:FilingFees
2020-01-01 open Expenses:Services:Legal
2020-01-01 open Income:Donations
2020-01-01 open Liabilities:Payable:Accounts

2020-05-05 * "DonorA" "Donation pledge"
  rt-id: "rt:505"
  invoice: "rt:505/5050"
  approval: "rt:505/5040"
  Income:Donations  -1000.00 USD
  Assets:Receivable:Accounts  1000.00 USD

2020-05-10 * "Lawyer" "April legal services"
  rt-id: "rt:510"
  invoice: "rt:510/5100"
  contract: "rt:510/4000"
  Expenses:Services:Legal  200.00 USD
  Liabilities:Payable:Accounts  -200.00 USD

2020-05-15 * "DonorB" "Donation pledge"
  rt-id: "rt://ticket/515"
  invoice: "rt://ticket/515/attachments/5150"
  approval: "rt://ticket/515/attachments/5140"
  Income:Donations  -1500.00 USD
  Assets:Receivable:Accounts  1500.00 USD

2020-05-20 * "DonorA" "Donation made"
  rt-id: "rt:505"
  invoice: "rt:505/5050"
  Assets:Receivable:Accounts  -1000.00 USD
  Assets:Checking  1000.00 USD
  receipt: "DonorAWire.pdf"

2020-05-25 * "Lawyer" "May payment"
  rt-id: "rt:510"
  invoice: "rt:510/5100"
  Liabilities:Payable:Accounts  200.00 USD
  contract: "rt:510/4000"
  Assets:Checking  -200.00 USD
  receipt: "rt:510/5105"

2020-06-10 * "Lawyer" "May legal services"
  rt-id: "rt:510"
  invoice: "rt:510/6100"
  contract: "rt:510/4000"
  Expenses:Services:Legal  220.00 USD
  Liabilities:Payable:Accounts  -220.00 USD

2020-06-12 * "Lawyer" "Additional legal fees for May"
  rt-id: "rt:510"
  invoice: "rt:510/6100"
  contract: "rt:510/4000"
  Expenses:FilingFees  60.00 USD
  Liabilities:Payable:Accounts  -60.00 USD