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