Sale from first of January produces the following event in MerchantStatementForDateAggregate:
Note the merchantStatementDate
{
"merchantStatementForDateId": "bb835088-0ca3-30c7-7c61-08516314e461",
"merchantStatementDate": "0001-02-01T00:00:00",
"merchantStatementId": "bb835088-0ca3-30c7-7c61-08516314e461",
"estateId": "435613ac-a468-47a3-ac4f-649d89764c22",
"merchantId": "8bc8434d-41f9-4cc3-83bc-e73f20c02e1d"
}
Here is the Event from the transaction that cause it
{
"transactionId": "a4702780-03a3-4f9d-8ed0-5b5c88f276ba",
"estateId": "435613ac-a468-47a3-ac4f-649d89764c22",
"merchantId": "8bc8434d-41f9-4cc3-83bc-e73f20c02e1d",
"calculatedValue": 0.5,
"feeId": "957939ba-7bec-48b6-adb8-0277faf752ba",
"feeValue": 0.5,
"feeCalculatedDateTime": "2025-01-01T09:17:40",
"settledDateTime": "2025-01-01T00:00:00",
"settlementId": "0a4f96f9-0e58-9b43-2f0b-4bdca9367a3f",
"transactionDateTime": "2025-01-01T09:17:40"
}
Another issue is the wrong date is used from the StatementCreatedForDateEvent as the Activity Date to create the statement.
Sale from first of January produces the following event in MerchantStatementForDateAggregate:
Note the merchantStatementDate
Here is the Event from the transaction that cause it
Another issue is the wrong date is used from the StatementCreatedForDateEvent as the Activity Date to create the statement.