From 4de21412873f76e0c11ce2f6e6e9283de98d4dd2 Mon Sep 17 00:00:00 2001 From: arteons Date: Mon, 11 Aug 2025 03:59:13 +0800 Subject: [PATCH] add detail button --- .../backoffice/purchaseorder/+page.svelte | 301 ++++++++++++++++++ 1 file changed, 301 insertions(+) diff --git a/src/routes/backoffice/purchaseorder/+page.svelte b/src/routes/backoffice/purchaseorder/+page.svelte index 4e49a45..50e62a1 100644 --- a/src/routes/backoffice/purchaseorder/+page.svelte +++ b/src/routes/backoffice/purchaseorder/+page.svelte @@ -414,6 +414,19 @@ showApprovalModal = true; } + let showDetailsModal = false; + let detailsRow: any = null; + + function openDetailsModal(row) { + detailsRow = row; // id is already in row.id if you need it as a matcher + showDetailsModal = true; + } + + function closeDetailsModal() { + showDetailsModal = false; + detailsRow = null; + } + // acknowledge purchase order function openAcknowledgedModal(row) { @@ -1496,6 +1509,12 @@ {:else if col.key === "actions"} + + + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+

Prepared Section

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+

Payment Section

+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+

Approval Section

+
+
+ + +
+
+ + +
+
+
+ + +
+

Acknowledged Section

+
+
+ + +
+
+ + +
+
+
+ + +
+

Received Section

+
+
+ + +
+
+ + +
+
+
+ +
+ +
+ + +{/if} +