Manage your purchase orders efficiently. You can add, edit, or delete purchase orders as needed.
| {col.title} | {:else}{col.title} | {/if} {/each}||||||||
|---|---|---|---|---|---|---|---|---|---|
| {row[col.key as keyof PurchaseOrderDisplay]} | {:else if col.key === "approval"}{:else if col.key === "acknowledged"} | { const isChecked = ( e.target as HTMLInputElement ).checked; row.acknowledged = isChecked; if (isChecked) { // map to project await acknowledgedOk( row.id, isChecked, ); } }} /> | {:else if col.key === "actions"}{:else if col.key === "move_issue"} | {:else if col.key === "updated_at"} | {timestampToDateTime( row[ col.key as keyof PurchaseOrderDisplay ] as string, )} | {:else if col.key === "created_at"}{timestampToDateTime( row[ col.key as keyof PurchaseOrderDisplay ] as string, )} | {:else if col.key === "po_price"}{row.approved_price.toLocaleString( "en-US", { style: "currency", currency: "USD", }, )} | {:else if col.key === "po_total_price"}{( row.approved_quantity * row.approved_price ).toLocaleString("en-US", { style: "currency", currency: "USD", })} | {:else}{row[ col.key as keyof PurchaseOrderDisplay ]} | {/if} {/each}