Corrected some charts [skip ci]

This commit is contained in:
James Cole
2015-05-20 06:49:51 +02:00
parent fbdf66998d
commit 9217c2f003
3 changed files with 9 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ class TransactionController extends Controller
$preFilled['piggy_bank_id'] = $journal->piggyBankEvents()->orderBy('date', 'DESC')->first()->piggy_bank_id;
}
$preFilled['amount'] = $journal->amount;
$preFilled['amount'] = $journal->actualAmount;
$preFilled['account_id'] = $journal->assetAccount->id;
$preFilled['expense_account'] = $transactions[0]->account->name;
$preFilled['revenue_account'] = $transactions[1]->account->name;