Cleaning up.

This commit is contained in:
James Cole
2015-01-01 22:32:25 +01:00
parent ac6f98fc47
commit fa1695672a
6 changed files with 8 additions and 1 deletions

View File

@@ -361,6 +361,7 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
$model->save();
if (isset($data['openingbalance']) && isset($data['openingbalancedate']) && strlen($data['openingbalancedate']) > 0) {
/** @noinspection PhpParamsInspection */
$openingBalance = $this->openingBalanceTransaction($model);
// TODO this needs cleaning up and thinking over.
if (is_null($openingBalance)) {