Schedule Financial Transactions Defaulting to "Contribution" Instead of Transaction Type Determined by Transaction Entry Block Settings
Description
The Transaction Entry Block has a block setting to change Transaction Type of the transaction. When completing a transaction with the frequency of one-time, the transaction will include the Transaction Type chosen in the block setting. However, when changing the frequency to make the transaction a scheduled transaction, the transaction type is not being set on the transaction, which results in the transaction having a default value of "Contribution" even if the Transaction Type is set to "Event Registration".
This causes confusion because one-time transactions can have the correct Transaction Type, where scheduled transactions will have a different Transaction Type.
Steps to Reproduce
- Edit Block Configuration for Transaction Entry Block
- Go to Advanced Settings
- Change Transaction Type to "Event Registration"
)
- Click Save
- Change Frequency to "Weekly"

- Complete a Transaction
- View the Scheduled Transaction

Expected behavior:
I would expect the TransactionTypeValueId property to be set on the FinancialScheduledTransaction.
Actual behavior:
The TransactionTypeValueId property is not set on the FinancialScheduledTransaction. We ran a quick SQL Query to determine if the value was being set:
SELECT
[AuthorizedPersonAliasId]
, [TransactionTypeValueId]
, [FinancialGatewayId]
, [GatewayScheduleId]
, [TransactionCode]
, [SourceTypeValueId]
, [TransactionFrequencyValueId]
, [StartDate]
, [IsActive]
FROM
[FinancialScheduledTransaction]
WHERE
[Id] = 1

We believe this property will be auto-filled with the "Contribution" Transaction Type value if the property is null, instead of being populated with the correct Transaction Type determined by the block settings.
Versions
- Rock Version: Rock McKinley 14.0 (1.14.0.9)
- Client Culture Setting: en-US