mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Bind specific invoice when paid via Banklink / EveryPay
Fix styling issues Move redundant logic to shared base
This commit is contained in:
parent
cbbfbae99e
commit
0cf2ff92a3
7 changed files with 50 additions and 14 deletions
|
@ -48,6 +48,7 @@ class BankTransaction < ApplicationRecord
|
|||
end
|
||||
|
||||
invoice = Invoice.find_by(number: invoice_no)
|
||||
@registrar = invoice.buyer
|
||||
|
||||
unless invoice
|
||||
errors.add(:base, I18n.t('invoice_was_not_found'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue