GitHub

productPriceRangeHasDiscount

Returns whether a DaffPriceRange has a discount.

import { productPriceRangeHasDiscount } from '@daffodil/product'
const productPriceRangeHasDiscount: (priceRange: DaffPriceRange) => boolean