<% const {
    master,
    details
    } = section;
%>
<p><b><%= sectionIndex + 1 %>. Linearity test :</b></p>

<table class="table-style">
    <thead>
    <tr>
        <% if(Report != "yearlyPeriodic") { %>
            <th style="width:8%;">Sr. No.</th>
            <th style="width:20%;">Standard Weight (<%- master.Linear_Unit %>)</th>
            <th style="width:22%;">Reading displayed on the balance (<%- master.Linear_Unit %>)</th>
            <th style="width:30%;">Linearity %</th>
            <th style="width:20%;">Remarks</th>
        <% } else { %>
            <th style="width:20%;">Weight at Verification Perform (A)</th>
            <th style="width:22%;">Observed Value (B)</th>
            <th style="width:30%;">% Deviation should be NMT 0.05 %</th>
            <th style="width:20%;">Test Results</th>
        <% } %>
    </tr>
    </thead>
    <tbody>
        <% details.forEach((element, i) => { %>
            <tr>
                <% if(Report != "yearlyPeriodic") { %>
                <td align="center"><%= i + 1 %></td>
                <% } %>
                <td align="center"><%= element.Linear_BalStdWt %> <%- master.Linear_Unit %></td>
                <td align="center"><%= element.Linear_ActualWt %> <%- master.Linear_Unit %></td>
                <td align="center"><%= element.Linear_Percentage %></td>
                <td align="center"><%= element.Linear_Remark %></td>
            </tr>
        <% }) %>
    </tbody>
</table>
<% if (Report != "yearlyPeriodic") { %>
<table class="info-table">
<tr style="vertical-align: middle;">
    <td style="vertical-align: middle;">
        <b>Linearity (%) =</b>
    </td>

    <td style="text-align:center; vertical-align: middle;">
        <div style="border-bottom:1px solid #000; padding-bottom:3px;">
            Difference between displayed weight and standard weight 
        </div>
        <div style="margin-top:5px;">
            Displayed weight
        </div>
    </td>

    <td style="text-align:center; vertical-align: middle; ">
        X 100
    </td>

    <td style="text-align:center; vertical-align: middle;">
        =
    </td>
    <td style="text-align:left; vertical-align: middle;">
    <%- master.Linear_Per %>
    </td>
</tr>
</table>
<p><b>Acceptance criteria :</b> Deviation should not be more than 0.05%</p>
<% } else { %>
    <p>Remark: <%- master[`${type}_CalbReason`] %></p>
<% } %>
<p><b><%- Report != "yearlyPeriodic" ? 'Remark' : 'Calibration Summary'%>:</b> <%- master.Linear_Remark == "Ok" ? configRemark[0] : master.Linear_Remark != null ? configRemark[1] : "" %></b></p>

