mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +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
|
||||||
return unless invoice.payable?
|
return unless invoice.payable?
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module Billing
|
module Billing
|
||||||
class ReferenceNo
|
class ReferenceNo
|
||||||
REGEXP = /\A\d{2,20}\z/
|
REGEXP = /\A\d{2,20}\z/.freeze
|
||||||
MULTI_REGEXP = /(\d{2,20})/
|
MULTI_REGEXP = /(\d{2,20})/.freeze
|
||||||
|
|
||||||
def self.generate
|
def self.generate
|
||||||
base = Base.generate
|
base = Base.generate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue