89 lines
5.2 KiB
HTML
89 lines
5.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"
|
|
xmlns:ctp="http://www.w3.org/1999/xhtml">
|
|
<head th:replace="_fragments :: head('PO Report')"></head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
<header class="row page-header" th:replace="_fragments :: page-header"></header>
|
|
<main class="row page-main">
|
|
<aside class="col-sm-2" th:replace="/reporting/po-report-sidebar :: sidebar"></aside>
|
|
<div class="col-lg-10 col-sm-10">
|
|
<h3>All PO's </h3>
|
|
<table th:if="${ #lists != null && #lists.size(allPOs) != 0 }" class="table table-striped font-sm"
|
|
data-order="[[ 0, "asc" ]]">
|
|
<thead>
|
|
<tr>
|
|
<th>PO Number</th>
|
|
<th>PO Article</th>
|
|
<th>PO Quantity</th>
|
|
<th>Req+ Excess</th>
|
|
<th>Cutting</th>
|
|
<th>Cutting Balance</th>
|
|
<th>Stitching</th>
|
|
<th>Stitching Balance</th>
|
|
<th>End Line QC</th>
|
|
<th>End Line QC Balance</th>
|
|
<th>Finishing Items</th>
|
|
<th>Finishing Items Balance</th>
|
|
<th>A Grade Items</th>
|
|
<th>Reject Items In Store</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Dummy data for testing purposes -->
|
|
<tr th:each="poDetail : ${allPOs}">
|
|
<td><a class="text-reset" th:href="@{'/po-status/po-report-view/' + ${poDetail.poId}}"
|
|
th:text="${poDetail.poNumber}"></a></td>
|
|
<td th:text="${poDetail.articleTitle}"></td>
|
|
<td th:text="${poDetail.poQuantity}"></td>
|
|
<td th:text="${poDetail.poRequiredQuantity}"></td>
|
|
<td th:text="${poDetail.totalCutting}"></td>
|
|
<td th:text="${poDetail.remainingCutting}"></td>
|
|
<td th:text="${poDetail.totalStitching}"></td>
|
|
<td th:text="${poDetail.remainingStitching}"></td>
|
|
<td th:text="${poDetail.totalEndLineQC}"></td>
|
|
<td th:text="${poDetail.remainingEndLineQC}"></td>
|
|
<td th:text="${poDetail.totalFinishing}"></td>
|
|
<td th:text="${poDetail.remainingFinishing}"></td>
|
|
<td th:text="${poDetail.totalAGradeItem}"></td>
|
|
<td th:text="${poDetail.totalBGradeItem}"></td>
|
|
<td>
|
|
<form th:action="@{/po-status/generate-po-pdf}" method="get" target="_blank"
|
|
th:id="'form-' + ${poDetail.poId}">
|
|
<!-- Hidden inputs for all fields -->
|
|
<input type="hidden" name="poId" th:value="${poDetail.poId}"/>
|
|
<input type="hidden" name="poNumber" th:value="${poDetail.poNumber}"/>
|
|
<input type="hidden" name="articleTitle" th:value="${poDetail.articleTitle}"/>
|
|
<input type="hidden" name="poQuantity" th:value="${poDetail.poQuantity}"/>
|
|
<input type="hidden" name="poRequiredQuantity" th:value="${poDetail.poRequiredQuantity}"/>
|
|
<input type="hidden" name="totalCutting" th:value="${poDetail.totalCutting}"/>
|
|
<input type="hidden" name="remainingCutting" th:value="${poDetail.remainingCutting}"/>
|
|
<input type="hidden" name="totalStitching" th:value="${poDetail.totalStitching}"/>
|
|
<input type="hidden" name="remainingStitching" th:value="${poDetail.remainingStitching}"/>
|
|
<input type="hidden" name="totalEndLineQC" th:value="${poDetail.totalEndLineQC}"/>
|
|
<input type="hidden" name="remainingEndLineQC" th:value="${poDetail.remainingEndLineQC}"/>
|
|
<input type="hidden" name="totalFinishing" th:value="${poDetail.totalFinishing}"/>
|
|
<input type="hidden" name="remainingFinishing" th:value="${poDetail.remainingFinishing}"/>
|
|
<input type="hidden" name="totalAGradeItem" th:value="${poDetail.totalAGradeItem}"/>
|
|
<input type="hidden" name="totalBGradeItem" th:value="${poDetail.totalBGradeItem}"/>
|
|
|
|
<!-- Link styled as a button -->
|
|
<a href="javascript:void(0);"
|
|
th:onclick="'document.getElementById(\'form-' + ${poDetail.poId} + '\').submit()'"
|
|
class="btn btn-sm btn-secondary"
|
|
title="Generate PDF"
|
|
target="_blank">
|
|
<i class="bi bi-filetype-pdf"></i>
|
|
</a>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h4 th:if="${#lists.size(allPOs) == 0 }">No PO found.</h4>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<div th:replace="_fragments :: page-footer-scripts"></div>
|
|
</body>
|
|
</html> |