src/Money/Module/Transaction/Controller/Transaction.php
protected function upload(Account $account)
    {
        $file = File::getInstance()->useName('transactionFile');

        $parser       = Factory::create($account->getBank(), $file->get('type'));
        $transactions = $parser->parse($account, $file->get('tmp_name'));

        $transactionMapper = new TransactionMapper(Database::get('money'));
        foreach ($transactions as $transaction) {
            $transactionMapper->insert($transaction);
        }

        $accountMapper = new AccountMapper(Database::get('money'));
        $accountMapper->update($account);
    }
protected function upload(Account $account)
    {
        $file = File::getInstance()->useName('transactionFile');

        $parser       = Factory::create($account->getBank(), $file->get('type'));
        $transactions = $parser->parse($account, $file->get('tmp_name'));

        $transactionMapper = new TransactionMapper(Database::get('money'));
        foreach ($transactions as $transaction) {
            $transactionMapper->insert($transaction);
        }

        $accountMapper = new AccountMapper(Database::get('money'));
        $accountMapper->update($account);
    }
Ajax edit category.

@param  Account $account
@return ResponseInterface