mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Fixed codeclimate issues
This commit is contained in:
parent
5e6dbac462
commit
59ecfa8e2f
3 changed files with 18 additions and 21 deletions
|
@ -25,6 +25,19 @@ module Invoice::BookKeeping
|
|||
invoice
|
||||
end
|
||||
|
||||
def to_e_invoice(payable: true)
|
||||
generator = Invoice::EInvoiceGenerator.new(self, payable)
|
||||
generator.generate
|
||||
end
|
||||
|
||||
def do_not_send_e_invoice?
|
||||
e_invoice_sent? || cancelled?
|
||||
end
|
||||
|
||||
def e_invoice_sent?
|
||||
e_invoice_sent_at.present?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def compose_monthly_directo_lines(lines: [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue