summaryrefslogtreecommitdiff
path: root/test/baseline/opt-xact-no-payee.test
blob: 36e077705cb34120d76b0f310d0e6fc4a11a1287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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