diff options
author | WY <wailo_2@hotmail.com> | 2022-12-19 03:37:26 +0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2023-01-20 17:25:05 -0800 |
commit | ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b (patch) | |
tree | e61f5417b5dc33b60c958e2417c38526e6ae1ab5 /test | |
parent | 0ade3a55fb84f5d899bcdac3f92dd9af6b370c66 (diff) | |
download | fork-ledger-ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b.tar.gz fork-ledger-ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b.tar.bz2 fork-ledger-ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b.zip |
Initial fix for #2147
Diffstat (limited to 'test')
-rw-r--r-- | test/baseline/opt-xact-no-payee.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/baseline/opt-xact-no-payee.test b/test/baseline/opt-xact-no-payee.test new file mode 100644 index 00000000..36e07770 --- /dev/null +++ b/test/baseline/opt-xact-no-payee.test @@ -0,0 +1,28 @@ +define DDV=1.22 +define DDV_ONLY=0.22 +define MACH=€1.12 +P 2018/01/01 00:00:00 MACH_FULL_P €1 + +P 2018/01/01 00:00:00 MACH_FULL €1 +P 2020/04/30 00:00:00 MACH_FULL €1 +P 2020/05/02 00:00:00 MACH_FULL €1 +P 2020/11/16 00:00:00 MACH_FULL €2 + +P 2021/06/01 00:00:00 MACH_BASIC €5 + + +; Automated MACH handling. Match all purchases of MACH +; TODO: 2 pairs, cleared, uncleared += expr account =~ /Assets:Inventory:MACH$/ & payee =~ /DADA D.O.O./ & comment =~ /.*Automate$/ + Expenses:Products:MACH (€1.0 * amount * P(1 MACH_FULL_P, date)) + DDV (€1.0 * amount * P(1 MACH_FULL_P, date) * DDV_ONLY) + Liabilities:Payable:Dada (-€1.0 * amount * P(1 MACH_FULL_P, date) * DDV) + +~every month from 2021/01/01 + Sales:Hardware:MACH 60 MACH_FULL + Assets:Inventory:MACH -60 MACH_FULL + Sales:Hardware:MACH -10.20€ + DDV -32.44€ + Assets:Receivable:Duda +test bal +end test |