Make bulk rules clauses match bulk TransactionController params

This commit is contained in:
Jan Willhaus 2022-10-01 22:39:25 +02:00
parent c49f3fcccf
commit ff91fe432c

View File

@ -27,10 +27,10 @@ use FireflyIII\Enums\ClauseType;
return [
ClauseType::TRANSACTION => [
ClauseType::WHERE => [
'source_account_id' => 'required|numeric|belongsToUser:accounts,id',
'account_id' => 'required|numeric|belongsToUser:accounts,id',
],
ClauseType::UPDATE => [
'destination_account_id' => 'required|numeric|belongsToUser:accounts,id',
'account_id' => 'required|numeric|belongsToUser:accounts,id',
],
],
];