mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Basic transaction categories CRUD actions (inline) (#601)
* Fix dropdown issues and add dummy transaction category modal * Minor namings tweaks * Add search type * Use new menu controller * Complete basic transaction category inline CRUD actions * Fix lint error --------- Co-authored-by: Jakub Kottnauer <jk@jakubkottnauer.com>
This commit is contained in:
parent
315c4bf1ec
commit
d29d465a3c
23 changed files with 254 additions and 101 deletions
|
@ -5,6 +5,8 @@ namespace :demo_data do
|
|||
|
||||
family.accounts.delete_all
|
||||
ExchangeRate.delete_all
|
||||
family.transaction_categories.delete_all
|
||||
Transaction::Category.create_default_categories(family)
|
||||
|
||||
user = User.find_or_create_by(email: "user@maybe.local") do |u|
|
||||
u.password = "password"
|
||||
|
@ -46,8 +48,6 @@ namespace :demo_data do
|
|||
|
||||
puts "Loaded mock exchange rates for last 60 days"
|
||||
|
||||
Transaction::Category.create_default_categories(family) if family.transaction_categories.empty?
|
||||
|
||||
# ========== Accounts ================
|
||||
empty_account = Account.create(name: "Demo Empty Account", family: family, accountable: Account::Depository.new, balance: 500, currency: "USD")
|
||||
multi_currency_checking = Account.create(name: "Demo Multi-Currency Checking", family: family, accountable: Account::Depository.new, balance: 4000, currency: "EUR")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue