* [bug#62725,done,0.1h] get total value.
This commit is contained in:
@@ -1501,10 +1501,13 @@ class executionModel extends model
|
||||
|
||||
foreach($executions as $execution)
|
||||
{
|
||||
$execution->productName = isset($productList[$execution->id]) ? trim($productList[$execution->id]->productName, ',') : '';
|
||||
$execution->product = $productID;
|
||||
$execution->productID = $productID;
|
||||
$execution->delay = 0;
|
||||
$execution->productName = isset($productList[$execution->id]) ? trim($productList[$execution->id]->productName, ',') : '';
|
||||
$execution->product = $productID;
|
||||
$execution->productID = $productID;
|
||||
$execution->delay = 0;
|
||||
$execution->totalEstimate = $execution->estimate;
|
||||
$execution->totalConsumed = $execution->consumed;
|
||||
$execution->totalLeft = $execution->left;
|
||||
if($execution->end) $execution->end = date(DT_DATE1, strtotime($execution->end));
|
||||
if(!isset($execution->projectName)) $execution->projectName = $project->name;
|
||||
if(!isset($execution->projectModel)) $execution->projectModel = $project->model;
|
||||
|
||||
@@ -93,7 +93,7 @@ window.onRenderCell = function(result, {col, row})
|
||||
return result;
|
||||
}
|
||||
if(col.name == 'rawID' && data.parent && !data.isExecution) result.push({className: 'ml-5'});
|
||||
if(['estimate', 'consumed', 'left'].includes(col.name) && result) result[0] = data.type == 'point' ? '' : {html: result[0] + ' h'};
|
||||
if(['estimate', 'consumed', 'left', 'totalEstimate', 'totalConsumed', 'totalLeft'].includes(col.name) && result && typeof result[0] != 'undefined') result[0] = data.type == 'point' ? '' : {html: result[0] + ' h'};
|
||||
if(col.name == 'progress' && data.type == 'point') result[0] = '';
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user