slight improvements

This commit is contained in:
yrzam 2024-01-03 04:48:48 +04:00
parent db4d0e0e91
commit 3d4390107e
3 changed files with 5 additions and 3 deletions

View File

@ -235,7 +235,7 @@ Data is calculated over the last 10 years with a period of 1 month for the last
base_balance - total balance, converted to the base asset
base_balance_delta - balance change since the previous month
base_active_delta - delta (gains - losses) for all transactions that are not passive income/expenses and occurred during this month
base_passive_delta - balance change caused by exchange rate fluctuations, passive income/expenses, non-specified transactions
base_passive_delta - balance change caused by exchange rate fluctuations, rebalancing, passive income/expenses, non-specified transactions
*_by_type - same data but per asset type, represented as a concatenated string
...
```

View File

@ -467,7 +467,8 @@ from
left join fin_asset_types r_fat on r_fat.id=r_fa.type_id
left join fin_storages r_fs on r_fs.id=r_fas.storage_id
order by
ft.date desc;
ft.date desc,
ft.id desc;
CREATE TRIGGER current_balances_insert
instead of insert on current_balances
begin

View File

@ -21,6 +21,7 @@ EOF
# test
TEST_DB_PATH="$DUMP_PATH.test.db"
rm -f "$TEST_DB_PATH"
cat "$DUMP_PATH" | sqlite3 "$TEST_DB_PATH"
echo 'pragma foreign_key_check;' | sqlite3 "$TEST_DB_PATH"
rm "$TEST_DB_PATH"
rm -f "$TEST_DB_PATH"