コード例 #1
0
 public function getTotalPurchaseSettedByABC($ABCClass)
 {
     $restockEntries = $this->restockEntries->filterByABCMix($ABCClass);
     $totalPurchaseSetted = 0;
     while ($restockEntries->valid()) {
         $restockEntry = $restockEntries->read();
         $totalPurchaseSetted += $this->getPurchaseSettedByIdRestockEntry($restockEntry->getIdRestockEntry());
     }
     return $totalPurchaseSetted;
 }
コード例 #2
0
 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;
 }