Better endpoint to move transactions.

This commit is contained in:
James Cole
2021-08-10 18:43:21 +02:00
parent 840316d4e4
commit 8e104a62ae
9 changed files with 339 additions and 6 deletions

14
config/bulk.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
use FireflyIII\Enums\ClauseType;
return [
ClauseType::TRANSACTION => [
ClauseType::WHERE => [
'source_account_id' => 'required|numeric|belongsToUser:accounts,id',
],
ClauseType::UPDATE => [
'destination_account_id' => 'required|numeric|belongsToUser:accounts,id',
],
],
];