API allows update/set of budget limit notes. https://github.com/firefly-iii/firefly-iii/issues/5523

This commit is contained in:
James Cole
2024-11-30 05:42:59 +01:00
parent c25c0d37c5
commit f5c56e02da
8 changed files with 187 additions and 144 deletions

View File

@@ -48,6 +48,7 @@ class StoreRequest extends FormRequest
'amount' => $this->convertString('amount'),
'currency_id' => $this->convertInteger('currency_id'),
'currency_code' => $this->convertString('currency_code'),
'notes' => $this->stringWithNewlines('notes'),
];
}
@@ -62,6 +63,7 @@ class StoreRequest extends FormRequest
'amount' => ['required', new IsValidPositiveAmount()],
'currency_id' => 'numeric|exists:transaction_currencies,id',
'currency_code' => 'min:3|max:51|exists:transaction_currencies,code',
'notes' => 'nullable|min:0|max:32768',
];
}
}