Skip to content

Commit

Permalink
Fix order-dependent process
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvio Böhler committed Apr 1, 2024
1 parent 941c872 commit 5631f69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/commands/balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (r balanceRunner) execute(cmd *cobra.Command, args []string) error {
}
partition := r.Multiperiod.Partition(j.Period())
report := balance.NewReport(reg, partition)
err = j.Build().Process(
procs := []*journal.Processor{
check.Check(),
journal.ComputePrices(valuation),
journal.Valuate(reg, valuation),
Expand All @@ -153,7 +153,8 @@ func (r balanceRunner) execute(cmd *cobra.Command, args []string) error {
),
Valuation: valuation,
}.Into(report),
)
}
err = j.Build().Process(procs...)
if err != nil {
return err
}
Expand Down

0 comments on commit 5631f69

Please sign in to comment.