mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +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
|
||||
|
||||
def autobindable?
|
||||
binded? && registrar.present && invoice.payable? ? true : false
|
||||
!binded? && registrar && invoice.payable? ? true : false
|
||||
rescue NoMethodError
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue