Commit Graph

2 Commits (b919bd8f0df993fd08a80afb9462d0f97d2e7bd1)

Author SHA1 Message Date
Dustin ad1c857c97 receipt-form: Add Restaurant toggle
The _Add Receipt_ form now has a _Restaurant_ toggle.  When uploading a
receipt that creates or updates a Firefly III transaction, if the toggle
is activated, a special tag will be added to the transaction.  The
assumption is that Firefly will have a rule to automatically adjust the
destination account, category, and/or budget for the transaction if this
tag is present.  The tag is configurable and defaults to `Food & Drink`.
2025-05-08 22:25:29 -05:00
Dustin 5c7225f077 Refactor backend
* Reorganizing code into more logical modules:
  - `routes` specifically for Rocket handler functions
  - `receipts` data model for receipts
  - `transactions` for Firefly transactions
* Encapsulate database operations for receipts using the repository
  pattern; move SQL queries to external files (`sqlx` can only use
  string literals or external files for queries, not variables or
  constants)
* Remove obsolete routes, templates for old transaction-focused pages
2025-03-11 20:05:41 -05:00