mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Fix amount thing.
This commit is contained in:
@@ -92,8 +92,8 @@ class StoreRequest extends FormRequest
|
|||||||
'transactions.*.foreign_currency_code' => 'min:3|max:51|exists:transaction_currencies,code|nullable',
|
'transactions.*.foreign_currency_code' => 'min:3|max:51|exists:transaction_currencies,code|nullable',
|
||||||
|
|
||||||
// amount
|
// amount
|
||||||
'transactions.*.amount' => 'required|numeric|gt:0',
|
'transactions.*.amount' => 'required|numeric|gt:0|max:1000000000',
|
||||||
'transactions.*.foreign_amount' => 'numeric',
|
'transactions.*.foreign_amount' => 'numeric|max:1000000000',
|
||||||
|
|
||||||
// description
|
// description
|
||||||
'transactions.*.description' => 'nullable|between:1,1000',
|
'transactions.*.description' => 'nullable|between:1,1000',
|
||||||
|
@@ -88,7 +88,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
$limitRepository = app(BudgetLimitRepository::class);
|
$limitRepository = app(BudgetLimitRepository::class);
|
||||||
$limitRepository->setUser($this->user);
|
$limitRepository->setUser($this->user);
|
||||||
$budgets = $this->getActiveBudgets();
|
$budgets = $this->getActiveBudgets();
|
||||||
$defaultCurrency = Amount::getDefaultCurrencyByUser($this->user);
|
$defaultCurrency = app('amount')->getDefaultCurrency();
|
||||||
$converter = new ExchangeRateConverter();
|
$converter = new ExchangeRateConverter();
|
||||||
|
|
||||||
/** @var Budget $budget */
|
/** @var Budget $budget */
|
||||||
|
Reference in New Issue
Block a user