feat: Working purchase order table and form.

This commit is contained in:
2025-01-09 16:23:42 -05:00
parent da5fec4a94
commit bf71b725f6
23 changed files with 544 additions and 254 deletions

View File

@@ -4,18 +4,18 @@
<th>Work Order</th>
<th>Vendor</th>
<th>Materials</th>
<th>Employee</th>
<th>Created For</th>
<th>Truck Stock</th>
<th></th>
<th>#extend("btn/toggle-form")</th>
</tr>
<tbody id="po-table-body">
#for(po in purchaseOrders):
<tr id="po_#(po.id)">
<td>#(po.id)</td>
<td>#(po.workOrder)</td>
<td>#(po.vendorBranch.vendor.name) - #(po.vendorBranch.name)</td>
<td>#capitalized(po.vendorBranch.vendor.name) - #capitalized(po.vendorBranch.name)</td>
<td>#(po.materials)</td>
<td>#(po.employee.firstName) #(po.employee.lastName)</td>
<td>#capitalized(po.createdFor.firstName) #capitalized(po.createdFor.lastName)</td>
<td>#capitalized(po.truckStock)</td>
<td>
<!-- TODO: add buttons here -->