mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	This commit is contained in:
		| @@ -65,10 +65,6 @@ use FireflyIII\Support\Binder\UserGroupAccount; | ||||
| use FireflyIII\Support\Binder\UserGroupBill; | ||||
| use FireflyIII\Support\Binder\UserGroupTransaction; | ||||
| use FireflyIII\TransactionRules\Actions\AddTag; | ||||
| use FireflyIII\TransactionRules\Actions\AppendDescription; | ||||
| use FireflyIII\TransactionRules\Actions\AppendDescriptionToNotes; | ||||
| use FireflyIII\TransactionRules\Actions\AppendNotes; | ||||
| use FireflyIII\TransactionRules\Actions\AppendNotesToDescription; | ||||
| use FireflyIII\TransactionRules\Actions\ClearBudget; | ||||
| use FireflyIII\TransactionRules\Actions\ClearCategory; | ||||
| use FireflyIII\TransactionRules\Actions\ClearNotes; | ||||
| @@ -77,10 +73,6 @@ use FireflyIII\TransactionRules\Actions\ConvertToTransfer; | ||||
| use FireflyIII\TransactionRules\Actions\ConvertToWithdrawal; | ||||
| use FireflyIII\TransactionRules\Actions\DeleteTransaction; | ||||
| use FireflyIII\TransactionRules\Actions\LinkToBill; | ||||
| use FireflyIII\TransactionRules\Actions\MoveDescriptionToNotes; | ||||
| use FireflyIII\TransactionRules\Actions\MoveNotesToDescription; | ||||
| use FireflyIII\TransactionRules\Actions\PrependDescription; | ||||
| use FireflyIII\TransactionRules\Actions\PrependNotes; | ||||
| use FireflyIII\TransactionRules\Actions\RemoveAllTags; | ||||
| use FireflyIII\TransactionRules\Actions\RemoveTag; | ||||
| use FireflyIII\TransactionRules\Actions\SetAmount; | ||||
| @@ -110,11 +102,12 @@ return [ | ||||
|     ], | ||||
|     // some feature flags:
 | ||||
|     'feature_flags'                => [ | ||||
|         'export'            => true, | ||||
|         'telemetry'         => false, | ||||
|         'webhooks'          => true, | ||||
|         'handle_debts'      => true, | ||||
|         'expression_engine' => true, | ||||
|         'export'                 => true, | ||||
|         'telemetry'              => false, | ||||
|         'webhooks'               => true, | ||||
|         'handle_debts'           => true, | ||||
|         'expression_engine'      => true, | ||||
|         'running_balance_column' => env('USE_RUNNING_BALANCE', false), | ||||
|         // see cer.php for exchange rates feature flag.
 | ||||
|     ], | ||||
|     'version'                      => 'develop/2024-09-28', | ||||
| @@ -436,7 +429,7 @@ return [ | ||||
|         'transfers'  => 'fa-exchange', | ||||
|     ], | ||||
| 
 | ||||
|     'bindables'                    => [ | ||||
|     'bindables'            => [ | ||||
|         // models
 | ||||
|         'account'              => Account::class, | ||||
|         'attachment'           => Attachment::class, | ||||
| @@ -494,7 +487,7 @@ return [ | ||||
|         'userGroupBill'        => UserGroupBill::class, | ||||
|         'userGroup'            => UserGroup::class, | ||||
|     ], | ||||
|     'rule-actions'                 => [ | ||||
|     'rule-actions'         => [ | ||||
|         'set_category'            => SetCategory::class, | ||||
|         'clear_category'          => ClearCategory::class, | ||||
|         'set_budget'              => SetBudget::class, | ||||
| @@ -528,7 +521,7 @@ return [ | ||||
|         // 'set_foreign_amount' => SetForeignAmount::class,
 | ||||
|         // 'set_foreign_currency' => SetForeignCurrency::class,
 | ||||
|     ], | ||||
|     'context-rule-actions'         => [ | ||||
|     'context-rule-actions' => [ | ||||
|         'set_category', | ||||
|         'set_budget', | ||||
|         'add_tag', | ||||
| @@ -547,13 +540,13 @@ return [ | ||||
|         'convert_transfer', | ||||
|     ], | ||||
| 
 | ||||
|     'test-triggers'                => [ | ||||
|     'test-triggers'             => [ | ||||
|         'limit' => 10, | ||||
|         'range' => 200, | ||||
|     ], | ||||
| 
 | ||||
|     // expected source types for each transaction type, in order of preference.
 | ||||
|     'expected_source_types'        => [ | ||||
|     'expected_source_types'     => [ | ||||
|         'source'      => [ | ||||
|             TransactionTypeModel::WITHDRAWAL       => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | ||||
|             TransactionTypeEnum::DEPOSIT->value    => [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::REVENUE, AccountType::CASH], | ||||
| @@ -598,7 +591,7 @@ return [ | ||||
|             TransactionTypeModel::LIABILITY_CREDIT => [AccountType::LIABILITY_CREDIT, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | ||||
|         ], | ||||
|     ], | ||||
|     'allowed_opposing_types'       => [ | ||||
|     'allowed_opposing_types'    => [ | ||||
|         'source'      => [ | ||||
|             AccountType::ASSET            => [ | ||||
|                 AccountType::ASSET, | ||||
| @@ -688,7 +681,7 @@ return [ | ||||
|         ], | ||||
|     ], | ||||
|     // depending on the account type, return the allowed transaction types:
 | ||||
|     'allowed_transaction_types'    => [ | ||||
|     'allowed_transaction_types' => [ | ||||
|         'source'      => [ | ||||
|             AccountType::ASSET            => [ | ||||
|                 TransactionTypeModel::WITHDRAWAL, | ||||
| @@ -757,7 +750,7 @@ return [ | ||||
|     ], | ||||
| 
 | ||||
|     // having the source + dest will tell you the transaction type.
 | ||||
|     'account_to_transaction'       => [ | ||||
|     'account_to_transaction'    => [ | ||||
|         AccountType::ASSET            => [ | ||||
|             AccountType::ASSET           => TransactionTypeModel::TRANSFER, | ||||
|             AccountType::CASH            => TransactionTypeModel::WITHDRAWAL, | ||||
| @@ -822,7 +815,7 @@ return [ | ||||
|     ], | ||||
| 
 | ||||
|     // allowed source -> destination accounts.
 | ||||
|     'source_dests'                 => [ | ||||
|     'source_dests'              => [ | ||||
|         TransactionTypeModel::WITHDRAWAL       => [ | ||||
|             AccountType::ASSET    => [AccountType::EXPENSE, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::CASH], | ||||
|             AccountType::LOAN     => [AccountType::EXPENSE, AccountType::CASH], | ||||
| @@ -861,7 +854,7 @@ return [ | ||||
|         ], | ||||
|     ], | ||||
|     // if you add fields to this array, don't forget to update the export routine (ExportDataGenerator).
 | ||||
|     'journal_meta_fields'          => [ | ||||
|     'journal_meta_fields'       => [ | ||||
|         // sepa
 | ||||
|         'sepa_cc', | ||||
|         'sepa_ct_op', | ||||
| @@ -895,28 +888,28 @@ return [ | ||||
|         'recurrence_count', | ||||
|         'recurrence_date', | ||||
|     ], | ||||
|     'webhooks'                     => [ | ||||
|     'webhooks'                  => [ | ||||
|         'max_attempts' => env('WEBHOOK_MAX_ATTEMPTS', 3), | ||||
|     ], | ||||
|     'can_have_virtual_amounts'     => [AccountType::ASSET], | ||||
|     'can_have_opening_balance'     => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | ||||
|     'dynamic_creation_allowed'     => [ | ||||
|     'can_have_virtual_amounts'  => [AccountType::ASSET], | ||||
|     'can_have_opening_balance'  => [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], | ||||
|     'dynamic_creation_allowed'  => [ | ||||
|         AccountType::EXPENSE, | ||||
|         AccountType::REVENUE, | ||||
|         AccountType::INITIAL_BALANCE, | ||||
|         AccountType::RECONCILIATION, | ||||
|         AccountType::LIABILITY_CREDIT, | ||||
|     ], | ||||
|     'valid_asset_fields'           => ['account_role', 'account_number', 'currency_id', 'BIC', 'include_net_worth'], | ||||
|     'valid_cc_fields'              => ['account_role', 'cc_monthly_payment_date', 'cc_type', 'account_number', 'currency_id', 'BIC', 'include_net_worth'], | ||||
|     'valid_account_fields'         => ['account_number', 'currency_id', 'BIC', 'interest', 'interest_period', 'include_net_worth', 'liability_direction'], | ||||
|     'valid_asset_fields'        => ['account_role', 'account_number', 'currency_id', 'BIC', 'include_net_worth'], | ||||
|     'valid_cc_fields'           => ['account_role', 'cc_monthly_payment_date', 'cc_type', 'account_number', 'currency_id', 'BIC', 'include_net_worth'], | ||||
|     'valid_account_fields'      => ['account_number', 'currency_id', 'BIC', 'interest', 'interest_period', 'include_net_worth', 'liability_direction'], | ||||
| 
 | ||||
|     // dynamic date ranges are as follows:
 | ||||
|     'dynamic_date_ranges'          => ['last7', 'last30', 'last90', 'last365', 'MTD', 'QTD', 'YTD'], | ||||
|     'dynamic_date_ranges'       => ['last7', 'last30', 'last90', 'last365', 'MTD', 'QTD', 'YTD'], | ||||
| 
 | ||||
|     // only used in v1
 | ||||
|     'allowed_sort_parameters'      => ['order', 'name', 'iban'], | ||||
|     'allowed_sort_parameters'   => ['order', 'name', 'iban'], | ||||
| 
 | ||||
|     // preselected account lists possibilities:
 | ||||
|     'preselected_accounts'         => ['all', 'assets', 'liabilities'], | ||||
|     'preselected_accounts'      => ['all', 'assets', 'liabilities'], | ||||
| ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user