Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
API allows order to be set. #3200
James Cole69d63bc3ba4d
diff --git a/app/Api/V1/Requests/AccountStoreRequest.php b/app/Api/V1/Requests/AccountStoreRequest.phpindex 44b6efa10c..1b476f4ee3 100644--- a/app/Api/V1/Requests/AccountStoreRequest.php+++ b/app/Api/V1/Requests/AccountStoreRequest.php@@ -70,6 +70,7 @@ class AccountStoreRequest extends FormRequest'account_type' => $this->string('type'),'account_type_id' => null,'currency_id' => $this->integer('currency_id'),+ 'order' => $this->integer('order'),'currency_code' => $this->string('currency_code'),'virtual_balance' => $this->string('virtual_balance'),'iban' => $this->string('iban'),@@ -116,6 +117,7 @@ class AccountStoreRequest extends FormRequest'opening_balance' => 'numeric|required_with:opening_balance_date|nullable','opening_balance_date' => 'date|required_with:opening_balance|nullable','virtual_balance' => 'numeric|nullable',+ 'order' => 'numeric|nullable','currency_id' => 'numeric|exists:transaction_currencies,id','currency_code' => 'min:3|max:3|exists:transaction_currencies,code','active' => [new IsBoolean],diff --git a/app/Api/V1/Requests/AccountUpdateRequest.php b/app/Api/V1/Requests/AccountUpdateRequest.phpindex 69e3c2ccff..c0976a5f38 100644--- a/app/Api/V1/Requests/AccountUpdateRequest.php+++ b/app/Api/V1/Requests/AccountUpdateRequest.php@@ -69,6 +69,7 @@ class AccountUpdateRequest extends FormRequest'account_type' => $this->nullableString('type'),'account_type_id' => null,'currency_id' => $this->nullableInteger('currency_id'),+ 'order' => $this->integer('order'),'currency_code' => $this->nullableString('currency_code'),'virtual_balance' => $this->nullableString('virtual_balance'),'iban' => $this->nullableString('iban'),@@ -117,6 +118,7 @@ class AccountUpdateRequest extends FormRequest'opening_balance' => 'numeric|required_with:opening_balance_date|nullable','opening_balance_date' => 'date|required_with:opening_balance|nullable','virtual_balance' => 'numeric|nullable',+ 'order' => 'numeric|nullable','currency_id' => 'numeric|exists:transaction_currencies,id','currency_code' => 'min:3|max:3|exists:transaction_currencies,code','active' => [new IsBoolean],