diff options
author | Diogo Trentini <diogotrentini@gmail.com> | 2020-09-16 22:38:01 -0300 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2021-02-02 17:45:10 +0800 |
commit | 5560b0c40f3986704df25095fcc485bcc1de9e5b (patch) | |
tree | f61df53eea9a57da82717409c89b1309f09ecd32 /test/baseline/opt-check-payees.test | |
parent | ebd2d8dd0865ef41d1931c5304cb42ee1b312cb7 (diff) | |
download | fork-ledger-5560b0c40f3986704df25095fcc485bcc1de9e5b.tar.gz fork-ledger-5560b0c40f3986704df25095fcc485bcc1de9e5b.tar.bz2 fork-ledger-5560b0c40f3986704df25095fcc485bcc1de9e5b.zip |
Fix issues related to payees declared on posting's metadata
Payees declared on posting's metadata are now validated with `--check-payees`
option. Also, their aliases are now considered on reports as well.
Diffstat (limited to 'test/baseline/opt-check-payees.test')
-rw-r--r-- | test/baseline/opt-check-payees.test | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test/baseline/opt-check-payees.test b/test/baseline/opt-check-payees.test index f8f4f592..75c70072 100644 --- a/test/baseline/opt-check-payees.test +++ b/test/baseline/opt-check-payees.test @@ -5,7 +5,10 @@ account Expenses:Food commodity EUR commodity GBP payee Phone + alias MobilePhone +payee Several tag food +tag Payee 2012-03-20 Phone Expenses:Phone 20.00 GBP @@ -20,18 +23,24 @@ tag food Expenses:Food 20.00 EUR Assets:Cash +2012-03-23 Several + Expenses:Food 10.00 EUR ; Payee: Food + Expenses:Phone 10.00 EUR ; Payee: MobilePhone + Assets:Cash + test bal --strict --check-payees - -20.00 EUR + -40.00 EUR -570.00 GBP Assets:Cash - 20.00 EUR + 40.00 EUR 570.00 GBP Expenses - 20.00 EUR Food + 30.00 EUR Food + 10.00 EUR 20.00 GBP Phone 550.00 GBP Rent -------------------- 0 __ERROR__ -Warning: "$FILE", line 14: Unknown payee 'Rent' -Warning: "$FILE", line 18: Unknown payee 'Food' +Warning: "$FILE", line 17: Unknown payee 'Rent' +Warning: "$FILE", line 21: Unknown payee 'Food' +Warning: "$FILE", line 27: Unknown payee 'Food' end test - |