bal: always ignore --drop when not in flat mode (fix #754)

This commit is contained in:
Simon Michael 2018-05-05 16:12:27 -07:00
parent ad99ffe935
commit cfee04215f

View File

@ -353,8 +353,8 @@ budgetReportAsTable
-- XXX here for now
-- | Drop leading components of accounts names as specified by --drop, but only in --flat mode.
maybeAccountNameDrop :: ReportOpts -> AccountName -> AccountName
maybeAccountNameDrop opts a | tree_ opts = a
| otherwise = accountNameDrop (drop_ opts) a
maybeAccountNameDrop opts a | flat_ opts = accountNameDrop (drop_ opts) a
| otherwise = a
tests_Hledger_Reports_BudgetReport :: Test
tests_Hledger_Reports_BudgetReport = TestList [