Module: Billing

Defined in:
app/models/billing.rb,
app/models/billing/item.rb,
app/models/billing/field.rb,
app/models/billing/report.rb,
app/models/billing/factory.rb,
app/models/billing/product.rb,
app/models/billing/fields_list.rb,
app/models/billing/factory/base.rb,
app/models/billing/configuration.rb,
app/models/billing/agresso_product.rb,
app/models/billing/product_catalogue.rb,
app/models/billing/factory/sequencing.rb,
app/models/billing/factory/library_creation.rb

Overview

module to create and populate billing BIF file (billing report)

Defined Under Namespace

Modules: Factory Classes: AgressoProduct, Configuration, Field, FieldsList, Item, Product, ProductCatalogue, Report

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject


11
12
13
# File 'app/models/billing.rb', line 11

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:


15
16
17
# File 'app/models/billing.rb', line 15

def self.configure
  yield(configuration)
end

.reset!Object


19
20
21
# File 'app/models/billing.rb', line 19

def self.reset!
  @configuration = Configuration.new
end

.table_name_prefixObject


3
4
5
# File 'app/models/billing.rb', line 3

def self.table_name_prefix
  'billing_'
end