Sha256: cb5546b0f5960bd21773ccae60d756f319304c122f28f7c8adfb05ac49425727

Contents?: true

Size: 686 Bytes

Versions: 13

Compression:

Stored size: 686 Bytes

Contents

module Dorsale
  module BillingMachine
    class ApplicationController < ::Dorsale::ApplicationController
      before_filter :set_common_variables

      private

      def euros(*)
        raise "#euros is not available in BillingMachine, please use #bm_currency instead"
      end

      def bm_currency(n)
        DH.currency(n, BillingMachine.default_currency)
      end

      helper_method :euros
      helper_method :bm_currency

      def set_common_variables
        @payment_terms ||= ::Dorsale::BillingMachine::PaymentTerm.all
        @id_cards      ||= ::Dorsale::BillingMachine::IdCard.all
        @people        ||= current_user_scope.people
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dorsale-2.7.3 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.7.2 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.7.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.7.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.8 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.7 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.6 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.5 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.4 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.3 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.2 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-2.6.0 app/controllers/dorsale/billing_machine/application_controller.rb