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-4.0.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.20.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.19.1 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.19.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.18.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.17.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.16.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.15.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.11 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.10 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.9 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.8 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.7 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.6 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.5 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.4 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.3 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.2 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.1 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb
dorsale-3.14.0 app/pdfs/dorsale/billing_machine/quotation_pdf_common_methods.rb