<%- include('../partials/wrap-start') %>
<section class="grid kpis"><div class="card"><span>Raw Material Cost</span><b>PKR <%= result.materialCost.toLocaleString() %></b></div><div class="card"><span>Packing Cost</span><b>PKR <%= result.packingCost.toLocaleString() %></b></div><div class="card"><span>Total BOM Cost</span><b>PKR <%= result.totalCost.toLocaleString() %></b></div></section>
<section class="panel"><h2>BOM Cost Lines</h2><table><thead><tr><th>Material</th><th>Type</th><th>Std Qty</th><th>Net Qty</th><th>Rate</th><th>Line Cost</th></tr></thead><tbody><% result.lines.forEach(l=>{ %><tr><td><%= l.material_name %></td><td><%= l.item_type %></td><td><%= l.standard_qty %></td><td><%= Number(l.net_qty).toFixed(3) %></td><td><%= l.average_rate %></td><td><%= Number(l.line_cost).toLocaleString() %></td></tr><% }) %></tbody></table></section>
<%- include('../partials/wrap-end') %>
