summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-03-28 02:39:39 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-03-28 02:39:39 +0000
commit7865b6a4d86b22af6a4b5b8258a91fd736449d57 (patch)
treefe0ff360335fd7505c390b7129c1b1126eadd252 /config
parentb8e8328b1ffffb80bf4ebb776a4a24e5680fc5bc (diff)
parent281a4060cff0396253192f4e852be6770ad97cbd (diff)
Merge branch 'dev' of https://github.com/DTS-Development/SHI_EVCP into dev
Diffstat (limited to 'config')
-rw-r--r--config/poaColumnsConfig.ts131
1 files changed, 131 insertions, 0 deletions
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