public function exec($assetTypeId)
    {
        /* get the last date with balances for given asset then take previous date */
        $dsLast = $this->getDateBalanceClose($assetTypeId);
        $dsPrev = $this->hlpPeriod->getPeriodPrev($dsLast);
        /* get all closing balances for previous date */
        $balances = $this->getBalances($assetTypeId, $dsPrev);
        /* get all accounts with given asset type */
        $accounts = $this->getAccounts($assetTypeId);
        /* get all transactions starting from "balance close -1 day" for given asset */
        $trans = $this->getTransactions($assetTypeId, $dsPrev);
        /* then validate current balances */
        $this->validate($accounts, $balances, $trans);
    }
public function exec($assetTypeId)
    {
        /* get the last date with balances for given asset then take previous date */
        $dsLast = $this->getDateBalanceClose($assetTypeId);
        $dsPrev = $this->hlpPeriod->getPeriodPrev($dsLast);
        /* get all closing balances for previous date */
        $balances = $this->getBalances($assetTypeId, $dsPrev);
        /* get all accounts with given asset type */
        $accounts = $this->getAccounts($assetTypeId);
        /* get all transactions starting from "balance close -1 day" for given asset */
        $trans = $this->getTransactions($assetTypeId, $dsPrev);
        /* then validate current balances */
        $this->validate($accounts, $balances, $trans);
    }
public function exec ( $ assetTypeId ) { /* get the last date with balances for given asset then take previous date */ $ dsLast = $ this -> getDateBalanceClose ( $ assetTypeId ) ; $ dsPrev = $ this -> hlpPeriod -> getPeriodPrev ( $ dsLast ) ; /* get all closing balances for previous date */ $ balances = $ this -> getBalances ( $ assetTypeId , $ dsPrev ) ; /* get all accounts with given asset type */ $ accounts = $ this -> getAccounts ( $ assetTypeId ) ; /* get all transactions starting from "balance close -1 day" for given asset */ $ trans = $ this -> getTransactions ( $ assetTypeId , $ dsPrev ) ; /* then validate current balances */ $ this -> validate ( $ accounts , $ balances , $ trans ) ; }
Validate balances for one asset type.

@param int $assetTypeId
@throws \Exception
Validate balances for one asset type .