Class: Skr::StandardPricingProvider
- Inherits:
-
Object
- Object
- Skr::StandardPricingProvider
- Defined in:
- lib/skr/standard_pricing_provider.rb
Class Method Summary collapse
-
.price(sku_loc: nil, customer: nil, uom: nil, qty: 1) ⇒ BigDecimal
The default implementation returns the price for the given UOM Custom implementations will return from a pricing library.
Class Method Details
.price(sku_loc: nil, customer: nil, uom: nil, qty: 1) ⇒ BigDecimal
The default implementation returns the price for the given UOM Custom implementations will return from a pricing library
8 9 10 |
# File 'lib/skr/standard_pricing_provider.rb', line 8 def self.price( sku_loc: nil, customer: nil, uom: nil, qty: 1 ) sku_loc.sku.uoms.with_code( uom.code ).price end |