Some new code.

This commit is contained in:
James Cole
2015-04-28 17:10:52 +02:00
parent db4adf399d
commit bbab370b1e
6 changed files with 173 additions and 161 deletions

View File

@@ -157,7 +157,7 @@ class TransactionController extends Controller
}
$preFilled['amount'] = $journal->amount;
$preFilled['account_id'] = $repository->getAssetAccount($journal);
$preFilled['account_id'] = $journal->assetAccount->id;
$preFilled['expense_account'] = $transactions[0]->account->name;
$preFilled['revenue_account'] = $transactions[1]->account->name;
$preFilled['account_from_id'] = $transactions[1]->account->id;