Daily Report adds zeros for down days

This commit is contained in:
Chase Tucker
2023-10-27 14:37:15 -07:00
parent 00042711dd
commit c50a3e103b
3 changed files with 92 additions and 3 deletions

View File

@ -183,7 +183,12 @@
{
if (i < numberOfDaysInWeek)
{
float yield = ((float)Model.OutsByDay[i].TotalWafers - (float)Model.ScrapByDay[i].TOT_REJ_MANU) / (float)Model.OutsByDay[i].TotalWafers;
int yieldLessScrap = Model.OutsByDay[i].TotalWafers - Model.ScrapByDay[i].TOT_REJ_MANU;
float yield = 0;
if (yieldLessScrap != 0)
{
yield = ((float)Model.OutsByDay[i].TotalWafers - (float)Model.ScrapByDay[i].TOT_REJ_MANU) / (float)Model.OutsByDay[i].TotalWafers;
}
<td class="text-center">@(string.Format("{0:P2}", yield))</td>