Fix CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-09-09 13:14:26 +03:00
parent e61601fdd7
commit 15470b7ec4
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 3 additions and 7 deletions

View file

@ -38,11 +38,7 @@ class BankTransaction < ApplicationRecord
return unless invoice
return unless invoice.payable?
channel = if manual
'admin_payment'
else
'system_payment'
end
channel = manual ? 'admin_payment' : 'system_payment'
create_internal_payment_record(channel: channel, invoice: invoice,
registrar: registrar)
end

View file

@ -1,7 +1,7 @@
module Billing
class ReferenceNo
REGEXP = /\A\d{2,20}\z/
MULTI_REGEXP = /(\d{2,20})/
REGEXP = /\A\d{2,20}\z/.freeze
MULTI_REGEXP = /(\d{2,20})/.freeze
def self.generate
base = Base.generate