Commit graph

8 commits

Author SHA1 Message Date
ceabf96f79 Adds metadata column to entry_lines table
Adds a metadata column to the entry_lines table.

This column will store currency conversion data as JSON, allowing for future flexibility in handling different types of metadata.
2025-10-22 13:48:51 +02:00
15da11a606 Stores and retrieves entry line metadata as JSON
Updates journal entry creation to store entry line metadata as a JSON string in the database.

Updates entry line retrieval to parse the JSON string back into a metadata object.

This change allows storing more complex data structures in the metadata field.
2025-10-22 13:45:59 +02:00
e95230c0f4 Consolidates API route prefixes
Removes redundant "/api/v1" prefixes from API router definitions in the backend and updates the corresponding API calls in the frontend. This change streamlines the API structure and improves code maintainability. Additionally, adds console logs in the frontend to aid in debugging the API calls.
2025-10-22 13:38:26 +02:00
cd083114b4 Adds fiat currency support for expenses
Extends expense entry functionality to support fiat currencies.

Users can now specify a currency (e.g., EUR, USD) when creating expense entries. The specified amount is converted to satoshis using exchange rates. The converted amount and currency information are stored in the journal entry metadata. Also adds an API endpoint to retrieve allowed currencies and updates the UI to allow currency selection when creating expense entries.
2025-10-22 13:32:10 +02:00
4bd83d6937 Enhances expense and pay dialogs
Improves the UI of the "Add Expense" and "Pay Balance" dialogs by using `q-input` and `q-select` components with `filled` and `dense` properties.

This provides a cleaner and more modern look and feel.
Ensures dialog content is only rendered when the dialog is visible.
2025-10-22 13:10:33 +02:00
5589d813f0 Simplifies database queries and updates auth
Removes the `castle.` prefix from database table names in queries, streamlining data access.

Updates authentication to use `WalletTypeInfo` dependency injection for retrieving wallet information. This improves security and aligns with LNBits' authentication patterns. Also modifies the main router's tag to uppercase.
2025-10-22 12:52:52 +02:00
cdd0cda001 Fix for sqlite3 : Removes schema from database migrations
Removes the "castle." schema prefix from database table creation and index definitions in the migration file.

This change enhances database portability by allowing the application to function correctly with different database configurations.
2025-10-22 12:52:46 +02:00
95b8af2360 initial commit 2025-10-22 12:33:45 +02:00