mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Fix autobindable? condition
This commit is contained in:
parent
5991ea6be7
commit
c7d768fbed
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class BankTransaction < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def autobindable?
|
def autobindable?
|
||||||
binded? && registrar.present && invoice.payable? ? true : false
|
!binded? && registrar && invoice.payable? ? true : false
|
||||||
rescue NoMethodError
|
rescue NoMethodError
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue