Module: BrInvoicesPdf::Nfce::Renderer::ProconInfo

Extended by:
BaseRenderer, Util::BaseRenderer
Defined in:
lib/br_invoices_pdf/nfce/renderer/procon_info.rb

Constant Summary

Constants included from Util::BaseRenderer

Util::BaseRenderer::CNPJ_FORMAT, Util::BaseRenderer::CPF_FORMAT, Util::BaseRenderer::PAYMENTS_TABLE_BASE_DATA

Constants included from BaseRenderer

BaseRenderer::ADDRESS_FORMAT

Class Method Summary collapse

Methods included from Util::BaseRenderer

box, format_cnpj, format_cpf, format_currency, format_number, page_content_width, page_paper_width, pdf_setup

Methods included from BaseRenderer

format_address, format_date

Class Method Details

.execute(pdf, data) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/br_invoices_pdf/nfce/renderer/procon_info.rb', line 12

def execute(pdf, data)
  procon_message = data[:additional_variables][:procon_message]

  return if ['', nil].include? procon_message

  box(pdf, [0, pdf.cursor], page_content_width(pdf)) do
    procon_message(pdf, procon_message)
  end
end