From 3d28586cd33b2ac703c5d30358787adc782e2760 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 27 Sep 2022 11:02:07 +0800 Subject: [PATCH] * Task #70747 - hide the shadow products. --- module/report/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/report/model.php b/module/report/model.php index 23dbb69c1b..3f7caf50be 100644 --- a/module/report/model.php +++ b/module/report/model.php @@ -143,6 +143,7 @@ class reportModel extends model $products = $this->dao->select('t1.id as id, t1.code, t1.name, t1.PO')->from(TABLE_PRODUCT)->alias('t1') ->leftJoin(TABLE_PROGRAM)->alias('t2')->on('t1.program = t2.id') ->where('t1.deleted')->eq(0) + ->andWhere('t1.shadow')->eq(0) ->beginIF(strpos($conditions, 'closedProduct') === false)->andWhere('t1.status')->ne('closed')->fi() ->beginIF(!$this->app->user->admin)->andWhere('t1.id')->in($this->app->user->view->products)->fi() ->orderBy('t2.order_asc, t1.line_desc, t1.order_asc')