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[
|
||||
|
||||
Reference in New Issue
Block a user