@evenicanpm/portal-db 1.8.1 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/db/index.ts +1 -1
- package/src/db/migrations/20260122010359_uda.sql +15 -107
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evenicanpm/portal-db",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"kysely": "^0.28.10",
|
|
31
31
|
"pg": "^8.17.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "7a5a6a8c3c3dd9efe96fbbb884b21e7681d32550"
|
|
34
34
|
}
|
package/src/db/index.ts
CHANGED
|
@@ -13,113 +13,21 @@ INSERT INTO uda.viewconfig (resource_name, columns)
|
|
|
13
13
|
VALUES (
|
|
14
14
|
'invoice',
|
|
15
15
|
'{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"ColumnOrder": 2
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"Label": "Customer Name",
|
|
35
|
-
"Data": "customer_name",
|
|
36
|
-
"DataType": "String",
|
|
37
|
-
"DisplayOrder": 3,
|
|
38
|
-
"IsSearchable": true,
|
|
39
|
-
"ColumnOrder": 3
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"Label": "Transaction Date",
|
|
43
|
-
"Data": "transdate",
|
|
44
|
-
"DataType": "datetime",
|
|
45
|
-
"DataMask": "MM/DD/YYYY",
|
|
46
|
-
"DisplayOrder": 4,
|
|
47
|
-
"IsSearchable": false,
|
|
48
|
-
"ColumnOrder": 4
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"Label": "Due Date",
|
|
52
|
-
"Data": "duedate",
|
|
53
|
-
"DataType": "datetime",
|
|
54
|
-
"DataMask": "MM/DD/YYYY",
|
|
55
|
-
"DisplayOrder": 5,
|
|
56
|
-
"IsSearchable": false,
|
|
57
|
-
"ColumnOrder": 5,
|
|
58
|
-
"IsFilterable": true,
|
|
59
|
-
"Filters": [
|
|
60
|
-
{
|
|
61
|
-
"FilterOperation": "eq",
|
|
62
|
-
"FilterOptions": [
|
|
63
|
-
{ "label": "April 2026", "value": "2026-04-20T12:00:00" },
|
|
64
|
-
{ "label": "March 2026", "value": "2026-03-20T12:00:00" },
|
|
65
|
-
{ "label": "February 2026", "value": "2026-02-20T12:00:00" },
|
|
66
|
-
{ "label": "January 2026", "value": "2026-01-20T12:00:00" },
|
|
67
|
-
{ "label": "December 2025", "value": "2025-12-20T12:00:00" },
|
|
68
|
-
{ "label": "November 2025", "value": "2025-11-20T12:00:00" },
|
|
69
|
-
{ "label": "October 2025", "value": "2025-10-20T12:00:00" },
|
|
70
|
-
{ "label": "September 2025", "value": "2025-09-20T12:00:00" },
|
|
71
|
-
{ "label": "August 2025", "value": "2025-08-20T12:00:00" },
|
|
72
|
-
{ "label": "July 2025", "value": "2025-07-20T12:00:00" },
|
|
73
|
-
{ "label": "June 2025", "value": "2025-06-20T12:00:00" },
|
|
74
|
-
{ "label": "May 2025", "value": "2025-05-20T12:00:00" }
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"Label": "Voucher",
|
|
81
|
-
"Data": "voucher",
|
|
82
|
-
"DataType": "String",
|
|
83
|
-
"DisplayOrder": 6,
|
|
84
|
-
"IsSearchable": false
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"Label": "Document Number",
|
|
88
|
-
"Data": "documentnum",
|
|
89
|
-
"DataType": "String",
|
|
90
|
-
"DisplayOrder": 7,
|
|
91
|
-
"IsSearchable": false
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"Label": "Sales ID",
|
|
95
|
-
"Data": "csbnsalesid",
|
|
96
|
-
"DataType": "String",
|
|
97
|
-
"DisplayOrder": 8,
|
|
98
|
-
"IsSearchable": false
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"Label": "Packing Slip ID",
|
|
102
|
-
"Data": "csbnpackingslipid",
|
|
103
|
-
"DataType": "String",
|
|
104
|
-
"DisplayOrder": 9,
|
|
105
|
-
"IsSearchable": false
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"Label": "Invoice Amount",
|
|
109
|
-
"Data": "amountcur",
|
|
110
|
-
"DataType": "currency",
|
|
111
|
-
"DisplayOrder": 10,
|
|
112
|
-
"IsSearchable": false,
|
|
113
|
-
"ColumnOrder": 6
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"Label": "Balance",
|
|
117
|
-
"Data": "balance",
|
|
118
|
-
"DataType": "currency",
|
|
119
|
-
"DisplayOrder": 11,
|
|
120
|
-
"IsSearchable": false
|
|
121
|
-
}
|
|
122
|
-
],
|
|
16
|
+
{
|
|
17
|
+
"Columns": [
|
|
18
|
+
{ "Label": "Invoice", "Data": "invoice", "DataType": "String", "DisplayOrder": 1, "IsSearchable": true, "ColumnOrder": 1 },
|
|
19
|
+
{ "Label": "Customer Account", "Data": "customer_number", "DataType": "String", "DisplayOrder": 2, "IsSearchable": true, "ColumnOrder": 2 },
|
|
20
|
+
{ "Label": "Customer Name", "Data": "customer_name", "DataType": "String", "DisplayOrder": 3, "IsSearchable": true, "ColumnOrder": 3 },
|
|
21
|
+
{ "Label": "Transaction Date", "Data": "invoice_date", "DataType": "datetime", "DataMask": "MM/DD/YYYY", "DisplayOrder": 4, "IsSearchable": false, "ColumnOrder": 4 },
|
|
22
|
+
{ "Label": "Due Date", "Data": "due_date", "DataType": "datetime", "DataMask": "MM/DD/YYYY", "DisplayOrder": 5, "IsSearchable": false, "ColumnOrder": 5, "IsFilterable": true },
|
|
23
|
+
{ "Label": "Voucher", "Data": "voucher", "DataType": "String", "DisplayOrder": 6, "IsSearchable": false },
|
|
24
|
+
{ "Label": "Document Number", "Data": "document_number", "DataType": "String", "DisplayOrder": 7, "IsSearchable": false },
|
|
25
|
+
{ "Label": "Sales ID", "Data": "sales_order", "DataType": "String", "DisplayOrder": 8, "IsSearchable": false },
|
|
26
|
+
{ "Label": "Packing Slip ID", "Data": "pack_slip", "DataType": "String", "DisplayOrder": 9, "IsSearchable": false },
|
|
27
|
+
{ "Label": "Invoice Amount", "Data": "invoice_amount", "DataType": "currency", "DisplayOrder": 10, "IsSearchable": false, "ColumnOrder": 6 },
|
|
28
|
+
{ "Label": "Balance", "Data": "balance", "DataType": "currency", "DisplayOrder": 11, "IsSearchable": false }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
123
31
|
|
|
124
32
|
"Actions": [
|
|
125
33
|
{ "Name": "Download", "Type": "download", "IdField": "id", "IsEnabled": true }
|