ProxyArticleWorth.getPriceAndCost constructor
ProxyArticleWorth.getPriceAndCost(
- Iterable<
CalibreWeebi< calibresInStore,ArticleRawAbstract> > - 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);
}