Skip to content

Commit

Permalink
fix another filter issue in customer report
Browse files Browse the repository at this point in the history
  • Loading branch information
damanic committed Nov 27, 2020
1 parent 9c43b18 commit 40eb7de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/shop_customers_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public function index() {
public function listPrepareData() {
$obj = Shop_Customer::create();
$this->add_calculated_columns($obj);
$this->filterApplyToModel( $obj );
$this->applyIntervalToModel( $obj );
$this->filterApplyToModel( $obj );
$obj->where('shop_customers.deleted_at is null');

return $obj;
Expand Down Expand Up @@ -183,7 +183,7 @@ protected function getChartData(){
}

$chartType = $this->viewData['chart_type'] = $this->getChartType();
$filterStr = $this->filterAsString();
$filterStr = null;
$paidFilter = null;
$whereFilter = null;

Expand All @@ -201,6 +201,7 @@ protected function getChartData(){
if($this->get_interval_context() == 'orders_paid'){
$paidFilter = 'AND '.$this->getOrderPaidStatusFilter();
}
$filterStr = $this->filterAsString();
}


Expand Down

0 comments on commit 40eb7de

Please sign in to comment.