Fixed an import bug where a new transaction validation rule would break storing of the transaction, while the import would not notice this error happening. The importer will now also correctly set a date on the "import tag" and will not tag an incomplete journal as already imported.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-09-11 08:08:01 +02:00
parent 2da087401e
commit e4fef6dfc3
2 changed files with 33 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ class Transaction extends Model
= [
'account_id' => 'required|exists:accounts,id',
'transaction_journal_id' => 'required|exists:transaction_journals,id',
'description' => 'between:1,255',
'description' => 'between:0,1024',
'amount' => 'required|numeric',
];