Sha256: 3af42fd40a92b680bd05ee4b14aade6ff7083aac975dea0c4d025948946a655c

Contents?: true

Size: 463 Bytes

Versions: 52

Compression:

Stored size: 463 Bytes

Contents

module Dorsale::BillingMachine::QuotationPdfCommonMethods
  def build_bank_informations
  end

  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
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
dorsale-3.7.6 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.7.5 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.7.4 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.7.2 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.7.1 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.7.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.6.1 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.6.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.5.2 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.5.1 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.5.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.4.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb