<%- include('../partials/wrap-start') %>
<section class="panel"><div class="between"><h2>Production Costing Report</h2><a class="btn" href="/reports/production.xlsx">Export Excel</a></div><table><thead><tr><th>Date</th><th>Batch</th><th>SKU</th><th>Actual Qty</th><th>Yield</th></tr></thead><tbody><% rows.forEach(r=>{ %><tr><td><%= r.production_date.toISOString ? r.production_date.toISOString().slice(0,10) : r.production_date %></td><td><%= r.batch_no %></td><td><%= r.sku_name %></td><td><%= r.actual_qty %></td><td><%= Number(r.yield_percent||0).toFixed(2) %>%</td></tr><% }) %></tbody></table></section>
<%- include('../partials/wrap-end') %>
