Sha256: 516d6d690321364c99942e0bc7181614fd95f92a60574fcd94446d7243213cd6

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

module Skr

    class StandardPricingProvider

        # The default implementation returns the price for the given UOM
        # Custom implementations will return from a pricing library
        # @return [BigDecimal] the "standard" price for the SKU
        def self.price( sku_loc: nil, customer: nil, uom: nil, qty: 1 )
            sku_loc.sku.uoms.with_code( uom.code ).price
        end

    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stockor-0.5.0 lib/skr/standard_pricing_provider.rb
stockor-0.4.0 lib/skr/standard_pricing_provider.rb
stockor-0.3.0 lib/skr/standard_pricing_provider.rb
stockor-0.2 lib/skr/standard_pricing_provider.rb
stockor-0.1.9 lib/skr/standard_pricing_provider.rb
stockor-0.1.8 lib/skr/standard_pricing_provider.rb
stockor-0.1.7 lib/skr/standard_pricing_provider.rb
stockor-0.1.5 lib/skr/standard_pricing_provider.rb