From 4b2d468701ab069fdc2347f345da56abe37c70be Mon Sep 17 00:00:00 2001 From: rlaks5757 Date: Fri, 28 Mar 2025 14:25:29 +0900 Subject: Reapply "Merge branch 'dev' into feature/kiman" This reverts commit 494a473964fa85b36c7846750c3a012a3c8468c7. --- config/poaColumnsConfig.ts | 131 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 config/poaColumnsConfig.ts (limited to 'config') diff --git a/config/poaColumnsConfig.ts b/config/poaColumnsConfig.ts new file mode 100644 index 00000000..268a2259 --- /dev/null +++ b/config/poaColumnsConfig.ts @@ -0,0 +1,131 @@ +import { POADetail } from "@/db/schema/contract" + +export interface PoaColumnConfig { + id: keyof POADetail + label: string + group?: string + excelHeader?: string + type?: string +} + +export const poaColumnsConfig: PoaColumnConfig[] = [ + { + id: "id", + label: "ID", + excelHeader: "ID", + group: "Key Info", + type: "number", + }, + { + id: "projectId", + label: "Project ID", + excelHeader: "Project ID", + group: "Key Info", + type: "number", + }, + { + id: "vendorId", + label: "Vendor ID", + excelHeader: "Vendor ID", + group: "Key Info", + type: "number", + }, + { + id: "contractNo", + label: "Form Code", + excelHeader: "Form Code", + group: "Original Info", + type: "text", + }, + { + id: "originalContractName", + label: "Contract Name", + excelHeader: "Contract Name", + group: "Original Info", + type: "text", + }, + { + id: "originalStatus", + label: "Status", + excelHeader: "Status", + group: "Original Info", + type: "text", + }, + { + id: "deliveryTerms", + label: "Delivery Terms", + excelHeader: "Delivery Terms", + group: "Change Info", + type: "text", + }, + { + id: "deliveryDate", + label: "Delivery Date", + excelHeader: "Delivery Date", + group: "Change Info", + type: "date", + }, + { + id: "deliveryLocation", + label: "Delivery Location", + excelHeader: "Delivery Location", + group: "Change Info", + type: "text", + }, + { + id: "currency", + label: "Currency", + excelHeader: "Currency", + group: "Change Info", + type: "text", + }, + { + id: "totalAmount", + label: "Total Amount", + excelHeader: "Total Amount", + group: "Change Info", + type: "number", + }, + { + id: "discount", + label: "Discount", + excelHeader: "Discount", + group: "Change Info", + type: "number", + }, + { + id: "tax", + label: "Tax", + excelHeader: "Tax", + group: "Change Info", + type: "number", + }, + { + id: "shippingFee", + label: "Shipping Fee", + excelHeader: "Shipping Fee", + group: "Change Info", + type: "number", + }, + { + id: "netTotal", + label: "Net Total", + excelHeader: "Net Total", + group: "Change Info", + type: "number", + }, + { + id: "createdAt", + label: "Created At", + excelHeader: "Created At", + group: "System Info", + type: "date", + }, + { + id: "updatedAt", + label: "Updated At", + excelHeader: "Updated At", + group: "System Info", + type: "date", + }, +] \ No newline at end of file -- cgit v1.2.3