- Add
Transaction.cleared
boolean field. - Add
RepeatingTransaction.last_cleared
date field. AllTransactions
yielded will have theircleared
field set to true if the date is before the value oflast_cleared
. The same rule applies toRepeatingTransfer
. - Add
cleared: bool | None
parameters toAccount
methods, where a non-None
value filters account transactions by the given value forcleared
.
- Removed the ability to set a transaction's amount to a callback until I've redesigned how that functionality should work.
- Added
Account.running_balance
that iterates through each transaction in an account for the given date range, and includes the current running balance of the account.
- Accept any value that can be passed to the constructor of
stockholm.Money
wherever aMoney
object was required as an argument. - Accept a function that accepts the object instance as an argument and returns
a
Money
-convertible value as anamount
parameter. - Swapped positions of the
amount
anddescription
fields onTransaction
.
- Set account property on
Transaction
objects generated fromRepeatingTransaction
objects. - Allow
dateutil.rrule.rruleset
inRepeatingTransaction.schedule
andRepeatingTransfer.schedule
. - Refactor internal storage of
Collection
instances to usedict
. - Exclude
Transaction
objects generated from aRepeatingTransaction
when iterating over an account's transactions, if a manually enteredTransaction
matches the generatedTransaction
.
- Refactored
Account.transactions
andAccount.repeating_transactions
to aCollection
class that assigns parent references on child items. - Refactored generators to prefer
yield from
over returning a generator.
- Added
Account.daily_balance
to iterate through account balance by date. - Renamed
RecurringTransaction
andRecurringTransfer
toRepeatingTransaction
andRepeatingTransfer
.
- Added
RecurringTransfer
model.
- Added
Transfer
model for transfers between accounts. - Renamed
RecurringTransaction.rrule
toRecurringTransaction.schedule
.
- Initial release.