conversion data

This commit is contained in:
Aji Setiaji
2025-06-03 19:37:52 +07:00
parent 4126f378f5
commit 4d754fb94f
6 changed files with 110 additions and 19 deletions

View File

@@ -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[

View File

@@ -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;

View File

@@ -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;