Compare commits

..

16 Commits

Author SHA1 Message Date
4ee82dce26 Send Content-Type on POST
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2022-08-21 19:32:20 +00:00
1da86e30c3 Finish migration
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2022-08-20 22:45:07 +00:00
51902cd65d Continue migration to echo 2022-08-20 22:44:59 +00:00
014c3818ba Continue migration to echo 2022-08-20 22:23:42 +00:00
210ddd65a5 Start migration to echo 2022-08-20 22:09:42 +00:00
5741236e2c Fix filters
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2022-04-24 20:48:08 +00:00
99549fb441 Implement filtering on frontend 2022-04-24 20:47:57 +00:00
67c79e252e Remove old logging 2022-04-24 20:40:12 +00:00
3b1174225a Add date filtering to backend 2022-04-24 20:40:03 +00:00
92f56b1046 Add date filters to UI 2022-04-24 20:21:32 +00:00
f068dd5009 Make menu entry generic 2022-04-24 20:14:45 +00:00
ebc34d7031 Make UI work for problematic and filtered transactions
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2022-04-24 20:12:41 +00:00
03ea4a31ad Implement UI 2022-04-24 20:12:23 +00:00
8636d04b84 Improve Backend 2022-04-24 20:03:53 +00:00
c63a8bc5d3 Add filters to UI 2022-04-24 19:40:57 +00:00
0aae7236ae Implement backend 2022-04-24 19:40:44 +00:00
3 changed files with 25 additions and 23 deletions

View File

@ -1,18 +1,20 @@
# Budgeteer
Budgeting Web-Application written in Go and inspired by [YNAB](https://youneedabudget.com).
Budgeting Web-Application
## Getting started
## Data structure
The fastest way to get up and running quickly, is using docker-compose. Just download the [docker-compose.yml](https://git.javil.eu/jacob1123/budgeteer/src/branch/master/docker/docker-compose.yml) to some empty directory and run `docker-compose up -d`. This starts budgeteer, a postgres database and an adminer instance. The latter is optional and can be removed from the docker-compose.yml.
1 User
N Budgets
AccountID[]
CategoryID[]
PayeeID[]
## Known issues
N Accounts
TransactionID[]
N Categories
AssignmentID[]
N Payees
Currently the application is usable when importing from YNAB via their CSV export. All balances should match the balances from YNAB. There are even unit-tests that confirm that using my personal budget.
For people wishing to start fresh in Budgeteer, there currently are some blockers though:
- The ability to create new accounts and categories is missing (#59)
## Contributing
If you're willing to help, please check the issues for [help-wanted labels](https://git.javil.eu/jacob1123/budgeteer/issues?labels=4). Just using Budgeteer and reporting any issues is although very helpful.
N Transactions
N Assignments

View File

@ -10,11 +10,11 @@ import (
)
type FilterTransactionsRequest struct {
CategoryID string `json:"categoryId"`
PayeeID string `json:"payeeId"`
AccountID string `json:"accountId"`
FromDate time.Time `json:"fromDate"`
ToDate time.Time `json:"toDate"`
CategoryID string `json:"category_id"`
PayeeID string `json:"payee_id"`
AccountID string `json:"account_id"`
FromDate time.Time `json:"from_date"`
ToDate time.Time `json:"to_date"`
}
func (h *Handler) filteredTransactions(c echo.Context) error {
@ -58,7 +58,7 @@ func parseEmptyUUID(value string) (uuid.NullUUID, bool) {
return uuid.NullUUID{}, false
}
return uuid.NullUUID{UUID: val, Valid: true}, true
return uuid.NullUUID{val, true}, true
}
func (h *Handler) problematicTransactions(c echo.Context) error {

View File

@ -93,11 +93,11 @@ export const useTransactionsStore = defineStore("budget/transactions", {
async GetFilteredTransactions(accountID : string | null, categoryID : string | null, payeeID : string | null, fromDate : string, toDate : string) {
const budgetStore = useBudgetsStore();
const payload = JSON.stringify({
categoryId: categoryID,
payeeId: payeeID,
accountId: accountID,
fromDate: fromDate,
toDate: toDate,
category_id: categoryID,
payee_id: payeeID,
account_id: accountID,
from_date: fromDate,
to_date: toDate,
});
const result = await POST("/budget/" + budgetStore.CurrentBudgetID + "/filtered-transactions", payload);
const response = await result.json();