Compare commits

..

2 Commits

2 changed files with 6 additions and 2 deletions

2
BUGS
View File

@@ -1,3 +1,5 @@
* cannot remove bill type (Kayo) - OR (TODO): modify it to yearly from monthly
* can put in dumb dates - DO SOME INPUT VALIDATION, *sigh* * can put in dumb dates - DO SOME INPUT VALIDATION, *sigh*
- e.g. 0026-02-19 for a Gas bill - e.g. 0026-02-19 for a Gas bill

View File

@@ -285,8 +285,10 @@ def calculate_savings_depletion(finance, bill_data, bill_type):
D_CBA_shares -= 1 D_CBA_shares -= 1
Sell_shares -= 1 Sell_shares -= 1
current_savings += actual_sell # can run out, if so, no need to add :)
add_annotation(finance, current_date, current_savings, actual_sell, "Sell shares" ) if actual_sell>0:
current_savings += actual_sell
add_annotation(finance, current_date, current_savings, actual_sell, "Sell shares" )
current_date += timedelta(days=1) current_date += timedelta(days=1)