Fixed bug that prevented week from showing if it is Monday.
This commit is contained in:
parent
8bc7d7bdde
commit
03668e1335
@ -15,7 +15,7 @@ namespace ReportingServices.Shared.HelperClasses
|
|||||||
date = dayOfWeek switch
|
date = dayOfWeek switch
|
||||||
{
|
{
|
||||||
0 => date.AddDays(-6),
|
0 => date.AddDays(-6),
|
||||||
1 => date.AddDays(-7),
|
1 => date,
|
||||||
_ => date.AddDays(1 - dayOfWeek)
|
_ => date.AddDays(1 - dayOfWeek)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -105,8 +105,10 @@
|
|||||||
modifiedYieldedOuts = totalYieldedWafersOut - (Model.OutsByDay[index].TotalWafers - Model.ScrapByDay[index].TOT_REJ_WFRS - Model.ScrapByDay[index].TW_PROD);
|
modifiedYieldedOuts = totalYieldedWafersOut - (Model.OutsByDay[index].TotalWafers - Model.ScrapByDay[index].TOT_REJ_WFRS - Model.ScrapByDay[index].TW_PROD);
|
||||||
else
|
else
|
||||||
modifiedYieldedOuts = totalYieldedWafersOut;
|
modifiedYieldedOuts = totalYieldedWafersOut;
|
||||||
|
|
||||||
|
int averageYieldedOuts = yieldOutDays == 0 ? 0 : modifiedYieldedOuts / yieldOutDays;
|
||||||
}
|
}
|
||||||
<td scope="row" colspan="10" id="expandYield" class="text-center">Yielded Wafers Out Daily Average: @(modifiedYieldedOuts / yieldOutDays)</td>
|
<td scope="row" colspan="10" id="expandYield" class="text-center">Yielded Wafers Out Daily Average: @(averageYieldedOuts)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="yield hidden">
|
<tr class="yield hidden">
|
||||||
<td scope="row">Customer Scrap</td>
|
<td scope="row">Customer Scrap</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user