Skip to content

Merchant daily performance summary drops transactions without a matching operator row #569

Closed

Description

@StuartFerguson

LoadMerchantDailyPerformanceGroups and LoadMerchantDailyPerformanceRecentSales now use an inner join on context.Operators.

Impact:

  • Any transaction that does not have a matching operator row disappears from the summary
  • Totals can undercount compared with the transaction data and the rest of the reporting code, which treats operator as optional in similar paths

Suggested fix:

  • Use a left join / DefaultIfEmpty() if operator data is optional, and preserve the transaction in the result set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions