public function getTotalPurchaseSettedByABC($ABCClass) { $restockEntries = $this->restockEntries->filterByABCMix($ABCClass); $totalPurchaseSetted = 0; while ($restockEntries->valid()) { $restockEntry = $restockEntries->read(); $totalPurchaseSetted += $this->getPurchaseSettedByIdRestockEntry($restockEntry->getIdRestockEntry()); } return $totalPurchaseSetted; }
public function getTotalPurchaseSettedByABC(RestockAbcClass $restockAbcClass) { $totalPurchaseSetted = 0; $restockEntries = $this->restockEntries->filterByABCMix($restockAbcClass->getIdRestockAbcClass()); while ($restockEntries->valid()) { $restockEntry = $restockEntries->read(); $totalPurchasePercent += $this->getSettedImportUSDByIdRestockEntry($restockEntry->getIdRestockEntry()); } return $totalPurchasePercent; }