Skip to content

Commit

Permalink
Update financial_links_controller.rb: create with invoice as paramater
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Jan 2, 2025
1 parent e8d06aa commit 9a4db16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/finance/financial_links_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def create
if params[:bank_transaction]
bank_transaction = BankTransaction.find(params[:bank_transaction])
bank_transaction.update_attribute :financial_link, @financial_link
elsif params[:invoice]
invoice = Invoice.find(params[:invoice])
invoice.update_attribute :financial_link, @financial_link
end
redirect_to finance_link_url(@financial_link), notice: t('.notice')
end
Expand Down

0 comments on commit 9a4db16

Please sign in to comment.