mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Replace enum
This commit is contained in:
@@ -237,7 +237,7 @@ trait TransactionValidation
|
||||
|
||||
app('log')->debug(sprintf('Amount is %s', $transaction['amount']));
|
||||
|
||||
if (TransactionType::DEPOSIT === ucfirst($transactionType)) {
|
||||
if (TransactionTypeEnum::DEPOSIT->value === ucfirst($transactionType)) {
|
||||
app('log')->debug(sprintf('Processing as a "%s"', $transactionType));
|
||||
// use case: deposit from liability account to an asset account
|
||||
// the foreign amount must be in the currency of the source
|
||||
|
Reference in New Issue
Block a user