Service/Account/Balance/Reset.php
public function exec($request)
    {
        assert($request instanceof ARequest);
        /** define local working data */
        $accounts = $request->getAccounts();
        $assetTypes = $request->getAssetTypes();
        $dateFrom = $request->getDateFrom();

        if (is_array($accounts)) {
            /* reset balances for the given accounts */
            $deleted = $this->resetByAccounts($accounts, $dateFrom);
        } elseif (is_array($assetTypes)) {
            /* reset balances for the given assets */
            $deleted = $this->resetByAssets($assetTypes, $dateFrom);
        } else {
            /* reset all balances */
            $deleted = $this->resetAll($dateFrom);
        }
        $this->logger->info("Total $deleted balances where reset.");
        /** compose result */
        $result = new AResponse();
        $result->setRowsDeleted($deleted);
        $result->markSucceed();
        return $result;
    }
public function exec($request)
    {
        assert($request instanceof ARequest);
        /** define local working data */
        $accounts = $request->getAccounts();
        $assetTypes = $request->getAssetTypes();
        $dateFrom = $request->getDateFrom();

        if (is_array($accounts)) {
            /* reset balances for the given accounts */
            $deleted = $this->resetByAccounts($accounts, $dateFrom);
        } elseif (is_array($assetTypes)) {
            /* reset balances for the given assets */
            $deleted = $this->resetByAssets($assetTypes, $dateFrom);
        } else {
            /* reset all balances */
            $deleted = $this->resetAll($dateFrom);
        }
        $this->logger->info("Total $deleted balances where reset.");
        /** compose result */
        $result = new AResponse();
        $result->setRowsDeleted($deleted);
        $result->markSucceed();
        return $result;
    }
Reset balance history for all accounts on dates after requested (excl.).

@param ARequest $request
@return AResponse
@throws \Exception