Customer Product Sales Report doesn't exclude template participations

Description

The Customer Product Sales Report sometimes displays a template product, as the join on participations join doesn't stipulate the participation type. As a result it picks up both participation.product and participation.productTemplate. The join needs to be restricted to participations with arch_short_name = 'participation.product'.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tony De Keizer

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure