Sha256: b40777727bc79812e5a866fdda16dd553eafb4aa30b3d19957fbb408611b433d

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

module Spree
  module Admin
    module PrintInvoiceHelper
      def font_faces
        fonts = Prawn::Font::AFM::BUILT_INS.reject { |f| f =~ /zapf|symbol|bold|italic|oblique/i }.map { |f| [f.tr('-', ' '), f] }
        options_for_select(fonts, Spree::PrintInvoice::Config[:print_invoice_font_face])
      end

      def logo_scale
        Spree::PrintInvoice::Config[:print_invoice_logo_scale].to_f / 100
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_print_invoice-1.0.2 app/helpers/spree/admin/print_invoice_helper.rb
solidus_print_invoice-1.0.1 app/helpers/spree/admin/print_invoice_helper.rb
solidus_print_invoice-1.0.0 app/helpers/spree/admin/print_invoice_helper.rb