Merge pull request #1547 from internetee/509-directo-to-gem

Directo: Reference BL from gem
This commit is contained in:
Timo Võhmar 2020-03-25 11:08:48 +02:00 committed by GitHub
commit 8451aa7758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 443 additions and 263 deletions

View file

@ -2,6 +2,7 @@ class Invoice < ApplicationRecord
include Versions
include Concerns::Invoice::Cancellable
include Concerns::Invoice::Payable
include Concerns::Invoice::BookKeeping
belongs_to :buyer, class_name: 'Registrar'
has_one :account_activity
@ -71,7 +72,7 @@ class Invoice < ApplicationRecord
Country.new(buyer_country_code)
end
# order is used for directo/banklink description
# order is used for directo/banklink description
def order
"Order nr. #{number}"
end