mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 07:55:21 +02:00
Add RejectedTransfer model, simplify auto matching (#1690)
* Allow transfers to match when inflow is after outflow * Simplify transfer auto matching with RejectedTransfer model * Validations * Reset migrations
This commit is contained in:
parent
0b4e314f58
commit
de90b29201
18 changed files with 221 additions and 79 deletions
|
@ -1,17 +1,19 @@
|
|||
<%= turbo_stream.replace @transfer %>
|
||||
<% unless @transfer.destroyed? %>
|
||||
<%= turbo_stream.replace @transfer %>
|
||||
|
||||
<%= turbo_stream.replace "category_menu_account_entry_#{@transfer.inflow_transaction.entry.id}",
|
||||
<%= turbo_stream.replace "category_menu_account_entry_#{@transfer.inflow_transaction.entry.id}",
|
||||
partial: "account/transactions/transaction_category",
|
||||
locals: { entry: @transfer.inflow_transaction.entry } %>
|
||||
|
||||
<%= turbo_stream.replace "category_menu_account_entry_#{@transfer.outflow_transaction.entry.id}",
|
||||
<%= turbo_stream.replace "category_menu_account_entry_#{@transfer.outflow_transaction.entry.id}",
|
||||
partial: "account/transactions/transaction_category",
|
||||
locals: { entry: @transfer.outflow_transaction.entry } %>
|
||||
|
||||
<%= turbo_stream.replace "transfer_match_account_entry_#{@transfer.inflow_transaction.entry.id}",
|
||||
<%= turbo_stream.replace "transfer_match_account_entry_#{@transfer.inflow_transaction.entry.id}",
|
||||
partial: "account/transactions/transfer_match",
|
||||
locals: { entry: @transfer.inflow_transaction.entry } %>
|
||||
|
||||
<%= turbo_stream.replace "transfer_match_account_entry_#{@transfer.outflow_transaction.entry.id}",
|
||||
<%= turbo_stream.replace "transfer_match_account_entry_#{@transfer.outflow_transaction.entry.id}",
|
||||
partial: "account/transactions/transfer_match",
|
||||
locals: { entry: @transfer.outflow_transaction.entry } %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue