ProxyArticleWorth.getPriceAndCost constructor

ProxyArticleWorth.getPriceAndCost(
  1. Iterable<CalibreWeebi<ArticleRawAbstract>> calibresInStore,
  2. ProxyArticle pNoPriceNoCost
)

Implementation

factory ProxyArticleWorth.getPriceAndCost(
    Iterable<CalibreWeebi> calibresInStore, ProxyArticle pNoPriceNoCost) {
  final price = pNoPriceNoCost.getPrice(calibresInStore);
  final cost = pNoPriceNoCost.getCost(calibresInStore);
  return ProxyArticleWorth(
      price: price,
      cost: cost,
      minimumUnitPerBasket: pNoPriceNoCost.minimumUnitPerBasket,
      calibreId: pNoPriceNoCost.calibreId,
      articleId: pNoPriceNoCost.articleId,
      id: pNoPriceNoCost.id,
      proxyCalibreId: pNoPriceNoCost.proxyCalibreId,
      articleWeight: pNoPriceNoCost.articleWeight,
      proxyArticleId: pNoPriceNoCost.proxyArticleId);
}