Skip to content

Commit

Permalink
fix: free staff also can be sold
Browse files Browse the repository at this point in the history
  • Loading branch information
oxcom committed Aug 30, 2018
1 parent aed7e34 commit dd2ff1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Model/ProductRepositoryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ protected function getBestsellers($condition, ProductSearchCriteriaInterface $se
$this->prepareProductCollection($searchCriteria);

$joinCond = [
'store_id' => ['eq' => $storeId],
'product_price' => [$condition => 0],
'store_id' => ['eq' => $storeId],
];

$table = $this->bestsellers->getTableByAggregationPeriod($period);
Expand Down

0 comments on commit dd2ff1a

Please sign in to comment.