From ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b Mon Sep 17 00:00:00 2001 From: WY Date: Mon, 19 Dec 2022 03:37:26 +0800 Subject: Initial fix for #2147 --- test/baseline/opt-xact-no-payee.test | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/baseline/opt-xact-no-payee.test (limited to 'test') 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 -- cgit v1.2.3