mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Fix CC issues
This commit is contained in:
parent
e61601fdd7
commit
15470b7ec4
2 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue