Class: Billing::Factory::LibraryCreation

Inherits:
Base
  • Object
show all
Defined in:
app/models/billing/factory/library_creation.rb

Constant Summary

Constants inherited from Base

Base::NO_PROJECT_COST_CODE

Instance Attribute Summary

Attributes inherited from Base

#billing_product, #request

Instance Method Summary collapse

Methods inherited from Base

#billing_product_code, #billing_product_description, #create!, #initialize, #passed_date, #passed_date=, #units

Constructor Details

This class inherits a constructor from Billing::Factory::Base

Instance Method Details

#project_cost_codeObject


4
5
6
# File 'app/models/billing/factory/library_creation.rb', line 4

def project_cost_code
  request.initial_project&.&.project_cost_code || super
end