mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Match bank transaction against invoice reference number instead of
registrar's
This commit is contained in:
parent
5738c17731
commit
a43a1ac3e3
2 changed files with 22 additions and 1 deletions
|
@ -31,7 +31,7 @@ class BankTransaction < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def registrar
|
||||
@registrar ||= Registrar.find_by(reference_no: reference_no)
|
||||
@registrar ||= Invoice.find_by(reference_no: reference_no)&.buyer
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue