all repos

clerk @ 0d0b837

missing tooling for ledger/hledger
2 files changed, 7 insertions(+), 1 deletions(-)
printer: support =* and ==*
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-08-03 12:52:15 +0300
Authored at: 2026-08-03 12:32:37 +0300
Change ID: qtvkspymypnssxmwkxrqvlrouwkwlyum
Parent: 17d62b0
M journal/printer/amount.go
···
        63
        63
         		return

      
        64
        64
         	}

      
        65
        65
         	switch {

      
        66
        
        -	case ba.IsInclusive:

      
        
        66
        +	case ba.IsStrict && ba.IsInclusive:

      
        67
        67
         		p.buf.WriteString("=== ")

      
        68
        68
         	case ba.IsStrict:

      
        69
        69
         		p.buf.WriteString("== ")

      
        
        70
        +	case ba.IsInclusive:

      
        
        71
        +		p.buf.WriteString("=* ")

      
        70
        72
         	default:

      
        71
        73
         		p.buf.WriteString("= ")

      
        72
        74
         	}

      
M journal/printer/testdata/entries.txtar
···
        47
        47
             Expenses:Food  $50.00 = $500.00

      
        48
        48
             Assets:Cash   $-50.00 == $500.00

      
        49
        49
             Assets:Total        === $0.00

      
        
        50
        +    Assets:Incl         =* $0.00

      
        
        51
        +    Assets:StrictIncl   ==* $0.00

      
        50
        52
         

      
        51
        53
         2026/03/01 Multi-posting

      
        52
        54
             Expenses:Food    $30.00

      ···
        112
        114
           Expenses:Food  50.00$ = 500.00$

      
        113
        115
           Assets:Cash  -50.00$ == 500.00$

      
        114
        116
           Assets:Total  === 0.00$

      
        
        117
        +  Assets:Incl  =* 0.00$

      
        
        118
        +  Assets:StrictIncl  === 0.00$

      
        115
        119
         

      
        116
        120
         2026-03-01 Multi-posting

      
        117
        121
           Expenses:Food  30.00$