Fix some CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-09-08 11:19:33 +03:00
parent c7d768fbed
commit 20e3b2c09f
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -41,11 +41,7 @@ class BankTransaction < ApplicationRecord
def autobind_invoice(manual: false) def autobind_invoice(manual: false)
return unless autobindable? return unless autobindable?
channel = if manual channel = manual ? 'admin_payment' : 'system_payment'
'admin_payment'
else
'system_payment'
end
create_internal_payment_record(channel: channel, invoice: invoice, create_internal_payment_record(channel: channel, invoice: invoice,
registrar: registrar) registrar: registrar)
end end