all repos

clerk @ 2f5968c33bd95424ec57d5f7abcb38918036fb12

missing tooling for ledger/hledger
1 files changed, 3 insertions(+), 5 deletions(-)
printer: remove usless variable
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-06-22 18:00:13 +0300
Authored at: 2026-06-16 23:40:40 +0300
Change ID: nmvwnpokukusyuouylwrzuzvqmvksltv
Parent: 73861df
M journal/printer/transaction_postings.go
···
        76
        76
         	}

      
        77
        77
         	p.buf.WriteString(acct)

      
        78
        78
         

      
        79
        
        -	pos := p.cfg.CommodityPos

      
        80
        
        -

      
        81
        79
         	if pt.Amount != nil || pt.Balance != nil {

      
        82
        80
         		switch p.cfg.AlignStyle {

      
        83
        81
         		case AlignTwoSpaces:

      ···
        106
        104
         	}

      
        107
        105
         

      
        108
        106
         	if pt.Amount != nil {

      
        109
        
        -		p.writeAmount(pt.Amount, pos)

      
        
        107
        +		p.writeAmount(pt.Amount, p.cfg.CommodityPos)

      
        110
        108
         		if pt.Cost != nil {

      
        111
        
        -			p.writeCost(pt.Cost, pos)

      
        
        109
        +			p.writeCost(pt.Cost, p.cfg.CommodityPos)

      
        112
        110
         		}

      
        113
        111
         	}

      
        114
        112
         

      ···
        116
        114
         		if pt.Amount != nil {

      
        117
        115
         			p.buf.WriteByte(' ')

      
        118
        116
         		}

      
        119
        
        -		p.writeBalanceAssertion(pt.Balance, pos)

      
        
        117
        +		p.writeBalanceAssertion(pt.Balance, p.cfg.CommodityPos)

      
        120
        118
         	}

      
        121
        119
         

      
        122
        120
         	if pt.Comment != nil && pt.Comment.Text != "" {