*[misc] modify productsummary pivot.
This commit is contained in:
@@ -22,7 +22,6 @@ class pivotTao extends pivotModel
|
||||
->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(!empty($IDList))->andWhere('t1.id')->in($IDList)->fi()
|
||||
->beginIF($productID)->andWhere('t1.id')->eq($productID)->fi()
|
||||
->beginIF($productStatus)->andWhere('t1.status')->eq($productStatus)->fi()
|
||||
|
||||
@@ -30,7 +30,7 @@ $generateData = function() use ($lang, $title, $cols, $data, $products, $filters
|
||||
(
|
||||
on::change('loadProductSummary'),
|
||||
set::inline(true),
|
||||
set::items(array(array('text' => $lang->pivot->closedProduct, 'value' => 'closedProduct'), array('text' => $lang->pivot->overduePlan, 'value' => 'overduePlan')))
|
||||
set::items(array(array('text' => $lang->pivot->overduePlan, 'value' => 'overduePlan')))
|
||||
),
|
||||
div
|
||||
(
|
||||
|
||||
@@ -240,7 +240,7 @@ class pivotZen extends pivot
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function productSummary(string $conditions = '', int $productID = 0, string $productStatus = 'normal', string $productType = 'normal'): void
|
||||
public function productSummary(string $conditions = '', int|string $productID = 0, string $productStatus = 'normal', string $productType = 'normal'): void
|
||||
{
|
||||
$this->app->loadLang('story');
|
||||
$this->app->loadLang('product');
|
||||
|
||||
Reference in New Issue
Block a user