all repos

clerk @ 5c5108b

missing tooling for ledger/hledger

clerk/journal/parser/testdata/transaction_with_scientific_amounts.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
syntax: respect commodity format; =*; ===; :=, 2 months ago
1
-- input --
2
2024-01-15 t
3
    a  1E-6 BTC
4
    b  EUR 1E3
5
    c  -2.5e-2 $
6
7
-- expect --
8
Journal
9
  Transaction j:1:1-6:0
10
    Date: 2024-01-15
11
    Payee: "t" j:1:12-2:0
12
    Posting j:2:1-3:1
13
      Account j:2:5-2:6
14
        SubAccount: "a" j:2:5-2:6
15
      Amount j:2:8-3:0
16
        Quantity: 0.000001
17
        Commodity: "BTC" j:2:13-3:0
18
        CommodityPos: After
19
        HasSpace: true
20
        Precision: 0
21
        Decimal: "."
22
    Posting j:3:1-4:1
23
      Account j:3:5-3:6
24
        SubAccount: "b" j:3:5-3:6
25
      Amount j:3:8-4:0
26
        Quantity: 1000
27
        Commodity: "EUR" j:3:8-3:11
28
        CommodityPos: Before
29
        HasSpace: true
30
        Precision: 0
31
        Decimal: "."
32
    Posting j:4:1-6:0
33
      Account j:4:5-4:6
34
        SubAccount: "c" j:4:5-4:6
35
      Amount j:4:8-5:0
36
        Quantity: -0.025
37
        Commodity: "$" j:4:16-5:0
38
        CommodityPos: After
39
        HasSpace: true
40
        Precision: 4
41
        Decimal: "."
42
  BlankLine j:6:0-6:1