Merge pull request #591 from kostasdizas/issue584

Allow 0 and negative closing balances for reconciliations
This commit is contained in:
Denis Duliçi 2018-11-04 21:23:22 +03:00 committed by GitHub
commit eeec3b22ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Reconciliation extends Request
'account_id' => 'required|integer', 'account_id' => 'required|integer',
'started_at' => 'required|date_format:Y-m-d H:i:s', 'started_at' => 'required|date_format:Y-m-d H:i:s',
'ended_at' => 'required|date_format:Y-m-d H:i:s', 'ended_at' => 'required|date_format:Y-m-d H:i:s',
'closing_balance' => 'required|amount', 'closing_balance' => 'required',
]; ];
} }
} }

View File

@ -128,6 +128,7 @@
decimal : '{{ $currency->decimal_mark }}', decimal : '{{ $currency->decimal_mark }}',
precision : {{ $currency->precision }}, precision : {{ $currency->precision }},
allowZero : true, allowZero : true,
allowNegative: true,
@if($currency->symbol_first) @if($currency->symbol_first)
prefix : '{{ $currency->symbol }}' prefix : '{{ $currency->symbol }}'
@else @else