Class: Billing::AgressoProduct
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Billing::AgressoProduct
- Defined in:
- app/models/billing/agresso_product.rb
Overview
rubocop:todo Style/Documentation
Class Method Summary collapse
Methods inherited from ApplicationRecord
convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Methods included from Warren::BroadcastMessages
#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren
Class Method Details
.billing_product_code(billing_product_name) ⇒ Object
7 8 9 10 |
# File 'app/models/billing/agresso_product.rb', line 7 def self.billing_product_code(billing_product_name) product = find_by(fin_prod_name: billing_product_name) product.present? ? product.fin_prod : 'LM9999' end |