Sha256: 58b2932137ce0ceaaa68f006a9016d122501c92e1476b5c37f5f960b1ca226d9
Contents?: true
Size: 582 Bytes
Versions: 27
Compression:
Stored size: 582 Bytes
Contents
module Dorsale::BillingMachine DEFAULT_VAT_RATE = 20.00 class << self def vat_modes [:single, :multiple] end def vat_mode @vat_mode ||= :single end def vat_mode=(new_mode) raise "invalid mode #{new_mode}" unless vat_modes.include?(new_mode) @vat_mode = new_mode end def invoice_pdf_model "::Dorsale::BillingMachine::Invoice#{vat_mode.to_s.capitalize}VatPdf".constantize end def quotation_pdf_model "::Dorsale::BillingMachine::Quotation#{vat_mode.to_s.capitalize}VatPdf".constantize end end end
Version data entries
27 entries across 27 versions & 1 rubygems