Fix views for #1000

This commit is contained in:
James Cole 2017-11-18 05:45:58 +01:00
parent 51a1512a3f
commit 573e72f7fb
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
6 changed files with 11 additions and 11 deletions

View File

@ -48,12 +48,12 @@ class AccountFormRequest extends Request
'active' => $this->boolean('active'),
'accountType' => $this->string('what'),
'currency_id' => $this->integer('currency_id'),
'virtualBalance' => $this->float('virtualBalance'),
'virtualBalance' => $this->string('virtualBalance'),
'iban' => $this->string('iban'),
'BIC' => $this->string('BIC'),
'accountNumber' => $this->string('accountNumber'),
'accountRole' => $this->string('accountRole'),
'openingBalance' => $this->float('openingBalance'),
'openingBalance' => $this->string('openingBalance'),
'openingBalanceDate' => $this->date('openingBalanceDate'),
'ccType' => $this->string('ccType'),
'ccMonthlyPaymentDate' => $this->string('ccMonthlyPaymentDate'),

View File

@ -44,10 +44,10 @@ class BillFormRequest extends Request
return [
'name' => $this->string('name'),
'match' => $this->string('match'),
'amount_min' => $this->float('amount_min'),
'amount_min' => $this->string('amount_min'),
'amount_currency_id_amount_min' => $this->integer('amount_currency_id_amount_min'),
'amount_currency_id_amount_max' => $this->integer('amount_currency_id_amount_max'),
'amount_max' => $this->float('amount_max'),
'amount_max' => $this->string('amount_max'),
'date' => $this->date('date'),
'repeat_freq' => $this->string('repeat_freq'),
'skip' => $this->integer('skip'),

View File

@ -64,7 +64,7 @@ class JournalFormRequest extends Request
// transaction / journal data:
'description' => $this->string('description'),
'amount' => $this->float('amount'),
'amount' => $this->string('amount'),
'budget_id' => $this->integer('budget_id'),
'category' => $this->string('category'),
'source_account_id' => $this->integer('source_account_id'),
@ -74,9 +74,9 @@ class JournalFormRequest extends Request
'piggy_bank_id' => $this->integer('piggy_bank_id'),
// native amount and stuff like that:
'native_amount' => $this->float('native_amount'),
'source_amount' => $this->float('source_amount'),
'destination_amount' => $this->float('destination_amount'),
'native_amount' => $this->string('native_amount'),
'source_amount' => $this->string('source_amount'),
'destination_amount' => $this->string('destination_amount'),
];
return $data;

View File

@ -47,7 +47,7 @@ class PiggyBankFormRequest extends Request
'name' => $this->string('name'),
'startdate' => new Carbon,
'account_id' => $this->integer('account_id'),
'targetamount' => $this->float('targetamount'),
'targetamount' => $this->string('targetamount'),
'targetdate' => $this->date('targetdate'),
'note' => $this->string('note'),
];

View File

@ -147,7 +147,7 @@ function countChecked() {
$('.mass_delete span').text(delete_selected_txt + ' (' + checked + ')');
// get amount for the transactions:
getAmounts();
//getAmounts();
$('.mass_button_options').show();

View File

@ -79,7 +79,7 @@
<div class="box-footer clearfix">
<a class="btn btn-sm btn-default btn-flat pull-right"
href="{{ route('accounts.show',data[1].id) }}">{{ (data[1]|balance)|formatAmountPlain }}</a>
href="{{ route('accounts.show',data[1].id) }}">{{ formatAmountByAccount(data[1], data[1]|balance, false) }}</a>
</div>
</div>
{% endfor %}