Commit Graph

189 Commits

Author SHA1 Message Date
994f623f23 Rename ERROR_EXPENSE_INVALID_USERID -> ERROR_EXPENSE_INVALID_CARD_USERID 2024-11-28 13:40:10 +02:00
f221480b2c Add marker for Hepler_ExpenseBulk.CreateExpenseFromChild to sweep it under the rug 2024-11-28 13:39:43 +02:00
8807235dad Add Preloading and sending NameWithParent field with default value being inp.Name 2024-11-27 21:59:47 +02:00
87c5676846 Add NameWithParent field for types.DbCategory 2024-11-27 21:59:17 +02:00
fc2b066c12 Fix issue when creating root category for new user
sq
2024-11-27 21:58:47 +02:00
d55ba5c3c7 Changes in README.md 2024-11-27 12:20:09 +02:00
4d66637d3e Change name of database file 2024-11-27 09:57:41 +02:00
3e8f56eb0a Add bulk creation of expencies 2024-11-27 07:39:23 +02:00
4d452737cd Update expenseTransform to show ShowValue and Card if possible 2024-11-24 11:34:48 +02:00
e608e64cce Add Card and ShowValue to types.DbExpense 2024-11-24 11:34:05 +02:00
d61d083ed6 Add showing currency symbol for card name if it is possible 2024-11-24 11:33:42 +02:00
46ab4ee7a0 Now if it can be done transfer with same currency between cards will show symbol of either of the cards 2024-11-24 00:39:02 +02:00
957f1e8363 Update transfer handlers to show and use card transformer that will use currency transformer as well if their field is not nil 2024-11-24 00:28:22 +02:00
0f7b1b210a Add FromValue and ToValue to show for different currencies and some UI fields for easy front 2024-11-24 00:27:34 +02:00
4db167085a Add Currency and DisplayName to card handlers 2024-11-24 00:27:02 +02:00
4fc2b5f5bd Add displayName to types.DbCard 2024-11-24 00:26:33 +02:00
4199603be3 Add situation when transfer will be from one currency on the card to different currency 2024-11-24 00:26:02 +02:00
e1a46f5fc7 Update handler and types.DbCard to accept and send new fields 2024-11-20 21:00:17 +02:00
4522d4450f Add LastDigits and binding to currency for cards 2024-11-20 20:59:48 +02:00
05b5059477 Change RON symbol to be RL 2024-11-20 20:45:56 +02:00
40ec90687a Add currency/all endpoint and handler 2024-11-20 20:29:00 +02:00
79eb50f375 Add types.DbCurrency to types package 2024-11-20 20:28:42 +02:00
f4cad689d8 Add ExchangeRate entity to database 2024-11-20 19:19:48 +02:00
5f35b57eb4 Remove logs from expense.go in db package 2024-11-20 19:19:17 +02:00
33ffa6275b Change initMetrics seeding to use new generic function and add seeding for Currencies 2024-11-20 18:46:07 +02:00
d929492e3d Add implementation for Identifiable interface for Metric entity 2024-11-20 18:45:23 +02:00
579bb031c7 Change Identifiable interface to only use GetID() uint function 2024-11-20 18:44:44 +02:00
d41e6301e5 Add Currency entity to database 2024-11-20 18:44:23 +02:00
cb60cb39d5 Add payment endpoint and handlers 2024-11-20 18:19:57 +02:00
3ce1c5c2d0 Change itemTransform function to use Item.Price directly 2024-11-20 18:19:43 +02:00
9cd9b20163 Add db hooks for Item 2024-11-20 18:19:19 +02:00
81b379afbd Add Paymenr Item and ItemBought as entities in PaymentGroup for db interface resolution 2024-11-20 18:19:12 +02:00
4244e397f3 Set CASCADE deletion for ItemBought from Payment after deletion 2024-11-20 18:18:29 +02:00
dbe140ecaf Set CASCADE delete for ItemPrice from Item deletion 2024-11-20 18:17:45 +02:00
b5747c9d9d Add Price field for Item 2024-11-20 18:17:21 +02:00
bd2005bf5d Add PaymentGroup to intf.go in db package 2024-11-20 18:17:03 +02:00
953394335b Remove DbPayment and add Payment instead to types package 2024-11-20 18:16:45 +02:00
a52b108bf8 Add metric /all endpoint and handler 2024-11-19 10:13:41 +02:00
f4342ba019 Add types.DbMetric type to types package 2024-11-19 10:13:19 +02:00
8855cc3e54 Add db seeding with default metrics for users 2024-11-19 10:13:02 +02:00
06b317511d Add Metric entity to database schema 2024-11-19 10:12:28 +02:00
83f69a2135 Add /all endpoint and handler for income 2024-11-19 10:12:04 +02:00
9f7d93ed19 Fix issue with /add endpoint for income 2024-11-19 10:11:40 +02:00
21afd95d98 Refactor handlers/income.go 2024-11-18 19:38:44 +02:00
78d420e1d2 Remove UserID from types.DbIncome 2024-11-18 19:38:34 +02:00
602b3da13b Add implementation for db.UserIdentifiable for Income 2024-11-18 19:38:23 +02:00
b9cfa2004a Fix issue with updating expense value for the same card 2024-11-18 19:07:11 +02:00
ead0a4bd60 Add item routes 2024-11-18 09:55:34 +02:00
dd19718dc8 Add handlers for finding items 2024-11-18 09:55:27 +02:00
fff8c256d1 Add DbItem and DbItemSearch types to types package 2024-11-18 09:52:11 +02:00