Module: Dorsale::BillingMachine::QuotationPdfCommonMethods

Included in:
QuotationMultipleVatPdf, QuotationSingleVatPdf
Defined in:
app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb

Instance Method Summary collapse

Instance Method Details

#build_bank_informationsObject



2
3
# File 'app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb', line 2

def build_bank_informations
end

#build_expiryObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb', line 5

def build_expiry
  return if main_document.expires_at.nil?

  top    = bounds.top - 11.5.cm
  height = 0.5.cm
  width  = 7.5.cm

  bounding_box [bounds.left, top], height: height, width: width do
    draw_bounds_debug
    text "<b>#{main_document.t(:expires_at)}</b> #{I18n.l(main_document.expires_at)}", inline_format: true, size: 9
  end
end