Class: Billing::AgressoProduct

Inherits:
ApplicationRecord show all
Defined in:
app/models/billing/agresso_product.rb

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 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