Add FQL and rework /transaction endpoint

This commit is contained in:
2020-03-14 23:44:43 +01:00
parent 1cc7fdf052
commit d4fef75903
85 changed files with 2257 additions and 472 deletions

View File

@@ -2,7 +2,10 @@ v26 -> v27:
- Changed sort order of accounts in overview page. The accounts are now sorted by the account type first (BCILES), then
by the account group name and then by the account ID, leading to an overall more organic order of accounts
- Add tax relevance flag to transaction and recurring transaction creation. This flag denotes whether a transaction or
the instances of a recurring transaction are relevant for a tax declaration. This is preparation for extended reports.
the instances of a recurring transaction are relevant for a tax declaration. This is preparation for extended reports
- Add searching of transactions via FQL (Financer Query Language)
- Rework /transaction end point to better adhere to REST API requirements (proper HTTP return codes and HTTP method
usage)
v25 -> v26:
- Close of the current expense period now creates null statistic entries for accounts that have not been used in

View File

@@ -12,7 +12,7 @@
/* --------------------- */
#account-overview-table,
#account-transaction-table,
#transaction-table,
#recurring-transaction-list-table {
width: 100%;
border-collapse: collapse;
@@ -23,8 +23,8 @@
#account-overview-table th,
#account-overview-table td,
#account-transaction-table th,
#account-transaction-table td,
#transaction-table th,
#transaction-table td,
#recurring-transaction-list-table th,
#recurring-transaction-list-table td {
border-bottom: 1px solid #ddd;
@@ -33,7 +33,7 @@
}
#account-overview-table th,
#account-transaction-table th,
#transaction-table th,
#recurring-transaction-list-table th {
position: sticky;
top: 0px;
@@ -107,13 +107,18 @@ tr:hover {
#recurring-to-transaction-with-amount-form *,
#new-account-group-form *,
#chart-config-account-group-expenses-for-period-form *,
#chart-config-account-expenses-for-period-form * {
#chart-config-account-expenses-for-period-form *,
#search-transactions-form * {
display: block;
margin-top: 1em;
width: 20em;
box-sizing: border-box;
}
#search-transactions-form > input[type=text] {
width: 100% !important;
}
#chart-select-form div {
width: 20em;
margin-top: 1em;
@@ -187,4 +192,15 @@ input[type=submit] {
#type-row {
width: var(--type-row-width);
padding: 0px !important
}
#search-transactions-fql-detail {
border: 1px solid grey;
border-radius: 0.5em;
padding-inline: 0.3em;
background-color: lightgrey;
}
#search-transactions-fql-detail > * {
font-size: 0.7em;
}

View File

@@ -14,8 +14,9 @@
7. Transactions
8. Recurring transactions
9. Reporting
10. Setup
11. Planned features
10. FQL
11. Setup
12. Planned features
1. About
========
@@ -170,12 +171,15 @@
9. Reporting
============
10. Setup
10. FQL
=======
11. Setup
=========
This chapter explains how to setup a financer instance. It requires PostgreSQL as a database backend and a Java
Servlet Container (e.g. Apache Tomcat) as a runtime environment.
10.1 Database setup
11.1 Database setup
-------------------
First install PostgreSQL. Then create a user for financer:
sudo -iu postgres
@@ -191,7 +195,7 @@
\q
exit
11. Planned features
12. Planned features
====================
This chapter lists planned features. The list is in no particular order:
- Transaction import from online banking (file based)