Airline miles and rewards points: expiration and value reporting for Fava/Beancount (Personal finance software).
Airline miles and rewards points typically expire after a period of inactivity. They also can be viewed as having a value in a currency of your choice. If you track airline mile transactions in Beancount, this simple plugin reports on the value of miles and their expiry date. This is particularly useful if you have miles/points on many airlines or businesses.
pip install fava-miler
operating_currencyexpiry-months and points-value metadata to your commodity declarationThis should get the reporter working. Example:
option "operating_currency" "USD"
1990-01-01 commodity MILESAIRALD
expiry-months: 24
points-value: 0.015 USD
2000-01-01 open Assets:Miles:AirAldorra MILESAIRALD
2000-01-01 open Income:Misc
2010-01-01 * "Credit card miles"
Assets:Miles:AirAldorra 100 MILESAIRALD
Income:Misc
./miler.py --help
Add the following to your source and run fava as you normally would.
2010-01-01 custom "fava-extension" "fava_miler" "{
'accounts_pattern' : '^Assets.*Reward',
'exclude_currencies' : '(POINTS_ABC)|(POINTS_DEF)',
}"
|
| |
|
|
|
| |
|
|
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/ab3b1d34-17e6-4c08-8116-7da359a5606e%40googlegroups.com.