Sha256: 5342a0da8d6d7eca83fa79171bf1eb3d337d01a5f469ace5f2bd9b39db607a11

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

module Skr
    module Core

        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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 lib/skr/core/standard_pricing_provider.rb