getMaxAmountInProduct function

double getMaxAmountInProduct(
  1. List<PriceData> price
)

Implementation

double getMaxAmountInProduct(List<PriceData> price){
  var _price = getMaxPriceInProduct(price);
  if (_price.discPrice != 0)
    return _price.discPrice;
  return _price.price;
}