conversion data
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { onMount } from "svelte";
|
||||
import Select from "svelte-select";
|
||||
import { supabase } from "$lib/supabaseClient";
|
||||
import { timestampToDateTime } from "$lib/utils/conversion";
|
||||
|
||||
type PurchaseOrderInsert = {
|
||||
issue_id: string;
|
||||
@@ -70,6 +71,7 @@
|
||||
completed_status: string;
|
||||
received: boolean;
|
||||
received_by: string;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
let allRows: PurchaseOrderDisplay[] = [];
|
||||
@@ -766,6 +768,14 @@
|
||||
🗑️ Delete
|
||||
</button>
|
||||
</td>
|
||||
{:else if col.key === "created_at"}
|
||||
<td class="px-4 py-2 text-gray-500"
|
||||
>{timestampToDateTime(
|
||||
row[
|
||||
col.key as keyof PurchaseOrderDisplay
|
||||
] as string,
|
||||
)}</td
|
||||
>
|
||||
{:else}
|
||||
<td class="px-4 py-2 text-gray-700"
|
||||
>{row[
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
{ key: "completed_status", title: "Completed Status" },
|
||||
{ key: "acknowledge_by", title: "Acknowledged By" },
|
||||
{ key: "created_at", title: "Created At" },
|
||||
{ key: "actions", title: "Actions" }, // For edit/delete buttons
|
||||
// { key: "actions", title: "Actions" }, // For edit/delete buttons
|
||||
];
|
||||
|
||||
let currentPage = 1;
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
{ key: "received", title: "Received" },
|
||||
{ key: "received_by", title: "Received By" },
|
||||
{ key: "created_at", title: "Created At" },
|
||||
{ key: "actions", title: "Actions" }, // For edit/delete buttons
|
||||
// { key: "actions", title: "Actions" }, // For edit/delete buttons
|
||||
];
|
||||
|
||||
let currentPage = 1;
|
||||
|
||||
Reference in New Issue
Block a user