From 7ef96d4bd143f229160f546edd4026aeb1071d77 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 18 Feb 2025 12:17:47 -1000 Subject: [PATCH] fix:bal --budget: don't let costs prevent showing a percentage [#2327] --- hledger/Hledger/Cli/Commands/Balance.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Commands/Balance.hs b/hledger/Hledger/Cli/Commands/Balance.hs index 98ac48f38..ddddf4a9d 100644 --- a/hledger/Hledger/Cli/Commands/Balance.hs +++ b/hledger/Hledger/Cli/Commands/Balance.hs @@ -1119,7 +1119,7 @@ budgetReportAsTable ropts@ReportOpts{..} (PeriodicReport spans items totrow) = where costedAmounts = case conversionop_ of Just ToCost -> amounts . mixedAmountCost - _ -> amounts + _ -> amounts . mixedAmountStripCosts -- strip any lingering cost info that would prevent unification -- | Like percentage, but accept multicommodity actual and budget amounts, -- and extract the specified commodity from both.