Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

hledger-interest-2.0.0-2.1 RPM for x86_64

From OpenSuSE Tumbleweed for x86_64

Name: hledger-interest Distribution: openSUSE Tumbleweed
Version: 2.0.0 Vendor: openSUSE
Release: 2.1 Build date: Thu Nov 19 21:56:28 2026
Group: Unspecified Build host: reproducible
Size: 30074916 Source RPM: hledger-interest-2.0.0-2.1.src.rpm
Packager: https://bugs.opensuse.org
Url: https://hackage.haskell.org/package/hledger-interest
Summary: Computes interest for a given account
Hledger-interest is a small command-line utility based on Simon Michael's
hledger library. Its purpose is to compute interest for a given ledger account.
Using command line flags, the program can be configured to use various schemes
for day-counting, such as act/act, 30/360, 30E/360, and 30E/360isda.
It supports constant rates, annual interest with a fixed rate, and schedules of
annual rates supplied on the command line or read from a text file.

As an example, consider the loan in the regression fixture
'tests/fixtures/boundaries.journal':

> 2023-01-31 Loan > Assets:Bank EUR 10000.00 > Liabilities:Loan > > 2023-02-28
Payment > Assets:Bank EUR -100.00 > Liabilities:Loan > > 2023-03-31 Payment >
Assets:Bank EUR -100.00 > Liabilities:Loan > > 2023-07-01 Payment on rate
change > Assets:Bank EUR -100.00 > Liabilities:Loan > > 2023-07-01 Second
payment on same day > Assets:Bank EUR -50.00 > Liabilities:Loan > > 2024-01-15
Payment after year end > Assets:Bank EUR -100.00 > Liabilities:Loan > >
2024-02-29 Leap day payment > Assets:Bank EUR -100.00 > Liabilities:Loan > >
2024-03-31 Payment > Assets:Bank EUR -100.00 > Liabilities:Loan > > 2024-04-01
Unrelated transaction > Assets:Bank EUR -10.00 > Expenses:Other

With 5% annual interest and actual-day counting, crediting interest to the loan
account compounds it. The following command prints only the generated interest
postings; its output is checked by the 'annual-act' golden test:

> $ hledger-interest --file=tests/fixtures/boundaries.journal
--source=Expenses:Interest --target=Liabilities:Loan --act --annual=0.05
--quiet Liabilities:Loan > 2023-02-28 5% interest for EUR -10000.00 over 28
days > Liabilities:Loan EUR -38.36 > Expenses:Interest EUR 38.36 > > 2023-03-31
5% interest for EUR -9938.36 over 31 days > Liabilities:Loan EUR -42.20 >
Expenses:Interest EUR 42.20 > > 2023-07-01 5% interest for EUR -9880.56 over 92
days > Liabilities:Loan EUR -124.52 > Expenses:Interest EUR 124.52 > >
2023-12-31 5% interest for EUR -9855.08 over 183 days > Liabilities:Loan EUR
-247.05 > Expenses:Interest EUR 247.05 > > 2024-01-15 5% interest for EUR
-10102.13 over 15 days > Liabilities:Loan EUR -20.70 > Expenses:Interest EUR
20.70 > > 2024-02-29 5% interest for EUR -10022.84 over 45 days >
Liabilities:Loan EUR -61.62 > Expenses:Interest EUR 61.62 > > 2024-03-31 5%
interest for EUR -9984.45 over 31 days > Liabilities:Loan EUR -42.28 >
Expenses:Interest EUR 42.28

Running the utility with '--help' gives a brief overview over the available
options:

> Usage: hledger-interest [OPTION...] ACCOUNT > Default: post at transactions,
rate-period ends, and year ends. > -h --help print this message and exit > -V
--version show version number and exit > -v --verbose print matching input
transactions and generated interest (default) > -q --quiet print generated
interest only > --today alias for --until=today > --until=DATE compute interest
through DATE (YYYY-MM-DD or today); > exclude transactions with later effective
dates > --post-on-transactions post only at transactions (and at
--until/--today); > skip rate-period and automatic year-end postings; >
overrides --post-on-rate-changes > --post-on-rate-changes post at transactions
and rate-period ends; > skip automatic year-end postings; >
--post-on-transactions takes precedence; > --until/--today also post on the
final day > -f FILE --file=FILE input ledger file (pass '-' for stdin) >
default: $LEDGER_FILE or ~/.hledger.journal > -s ACCOUNT --source=ACCOUNT
interest source account > -t ACCOUNT --target=ACCOUNT interest target account >
-I --ignore-assertions ignore any failing balance assertions > --act use
'act/act' day counting convention > (Actual/Actual ISDA; see README) > --30-360
use '30/360' day counting convention > --30E-360 use '30E/360' day counting
convention > --30E-360isda use '30E/360isda' day counting convention >
--constant=RATE fixed annual interest rate > --annual=RATE alias for --constant
> --schedule=SCHEDULE annualized rates and their effective dates; > rates are
fractions: 0.05 means 5% per year > syntax: '[(Date1,Rate1),(Date2,Rate2),...]'
> --schedule-file=PATH read a schedule from a text file; > one date and rate
per line, starting in column 1; > rates: 0.05 or 5%; hledger comments allowed >
--annual-schedule=SCHEDULE alias for --schedule.

Provides

Requires

License

BSD-3-Clause

Changelog

* Thu Nov 19 2026 Peter Simons <psimons@suse.com>
  - Update build for ghc-rpm-macros >= 2.9.2.
* Wed Nov 11 2026 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 2.0.0.
    Upstream added a new change log file in this release. With no
    previous version to compare against, the automatic updater cannot
    reliable determine the relevante entries for this release.
* Thu Apr 09 2026 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.7 revision 5.
    Upstream has revised the Cabal build instructions on Hackage.
* Sun Dec 14 2025 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.7 revision 4.
    Upstream has revised the Cabal build instructions on Hackage.
* Thu Sep 04 2025 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.7 revision 3.
    Upstream has revised the Cabal build instructions on Hackage.
* Wed Jun 04 2025 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.7 revision 2.
    Upstream has revised the Cabal build instructions on Hackage.
* Mon Mar 10 2025 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.7 revision 1.
    Upstream has revised the Cabal build instructions on Hackage.
* Tue Dec 10 2024 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.7.
    Upstream does not provide a change log file.
* Sat Oct 26 2024 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.6 revision 5.
    Upstream has revised the Cabal build instructions on Hackage.
* Mon Jun 03 2024 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.6 revision 4.
    Upstream has revised the Cabal build instructions on Hackage.
* Sun Apr 21 2024 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.6 revision 3.
    Upstream has revised the Cabal build instructions on Hackage.
* Tue Dec 05 2023 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.6 revision 2.
    Upstream has revised the Cabal build instructions on Hackage.
* Mon Sep 04 2023 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.6 revision 1.
    Upstream does not provide a change log file.
* Tue Jun 06 2023 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.5 revision 2.
    Upstream has revised the Cabal build instructions on Hackage.
* Thu Mar 30 2023 Peter Simons <psimons@suse.com>
  - Updated spec file to conform with ghc-rpm-macros-2.5.2.
* Tue Mar 14 2023 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.5 revision 1.
    Upstream has revised the Cabal build instructions on Hackage.
* Mon Jan 16 2023 Peter Simons <psimons@suse.com>
  - Update hledger-interest to version 1.6.5.
    Upstream does not provide a change log file.

Files

/usr/bin/hledger-interest
/usr/share/doc/packages/hledger-interest
/usr/share/doc/packages/hledger-interest/CHANGELOG.md
/usr/share/doc/packages/hledger-interest/README.md
/usr/share/licenses/hledger-interest
/usr/share/licenses/hledger-interest/LICENSE


Generated by rpm2html 1.8.1

Fabrice Bellet, Mon Nov 30 22:17:41 2026