@acorex-platform/module-order-management-client 0.0.30 → 0.0.33

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.
Files changed (29) hide show
  1. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.mjs +399 -0
  2. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs +325 -0
  4. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order-line.mjs +285 -0
  6. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order-line.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order.mjs +316 -0
  8. package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-acorex-platform-module-order-management-client-contracts-entity-catalog-CwK6VbHl.mjs +71 -0
  10. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-acorex-platform-module-order-management-client-contracts-entity-catalog-CwK6VbHl.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order-item.entity-Bdm37iF8.mjs +350 -0
  12. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order-item.entity-Bdm37iF8.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order.entity-Bv8b-3_O.mjs +276 -0
  14. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order.entity-Bv8b-3_O.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order-line.entity-BJNnKNe4.mjs +236 -0
  16. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order-line.entity-BJNnKNe4.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order.entity-cKfUjSOr.mjs +267 -0
  18. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order.entity-cKfUjSOr.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog.mjs +2 -0
  20. package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-order-management-client-local-entities.mjs +32 -0
  22. package/fesm2022/acorex-platform-module-order-management-client-local-entities.mjs.map +1 -0
  23. package/package.json +25 -1
  24. package/types/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.d.ts +5 -0
  25. package/types/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.d.ts +5 -0
  26. package/types/acorex-platform-module-order-management-client-contracts-entities-member-order-line.d.ts +5 -0
  27. package/types/acorex-platform-module-order-management-client-contracts-entities-member-order.d.ts +5 -0
  28. package/types/acorex-platform-module-order-management-client-contracts-entity-catalog.d.ts +10 -0
  29. package/types/acorex-platform-module-order-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,325 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Module Configuration ----
5
+ const config = {
6
+ i18n: 'order-management',
7
+ module: 'OrderManagement',
8
+ };
9
+ const RootConfig = {
10
+ config,
11
+ module: {
12
+ route: 'order-management',
13
+ name: config.module,
14
+ title: `@${config.i18n}:module.title`,
15
+ icon: 'fa-light fa-file-invoice',
16
+ },
17
+ entities: {
18
+ bulkBuyOrder: {
19
+ name: 'BulkBuyOrder',
20
+ source: `${config.module}.BulkBuyOrder`,
21
+ title: '@order-management:bulk-buy-orders.entities.bulk-buy-order.title',
22
+ titlePlural: '@order-management:bulk-buy-orders.entities.bulk-buy-order.plural',
23
+ icon: 'fa-light fa-file-invoice',
24
+ },
25
+ bulkBuyOrderItem: {
26
+ name: 'BulkBuyOrderItem',
27
+ source: `${config.module}.BulkBuyOrderItem`,
28
+ title: '@order-management:bulk-buy-orders.entities.bulk-buy-order-item.title',
29
+ titlePlural: '@order-management:bulk-buy-orders.entities.bulk-buy-order-item.plural',
30
+ icon: 'fa-light fa-list',
31
+ },
32
+ memberOrder: {
33
+ name: 'MemberOrder',
34
+ source: `${config.module}.MemberOrder`,
35
+ title: '@order-management:bulk-buy-orders.entities.member-order.title',
36
+ titlePlural: '@order-management:bulk-buy-orders.entities.member-order.plural',
37
+ icon: 'fa-light fa-user-check',
38
+ },
39
+ memberOrderLine: {
40
+ name: 'MemberOrderLine',
41
+ source: `${config.module}.MemberOrderLine`,
42
+ title: '@order-management:bulk-buy-orders.entities.member-order-line.title',
43
+ titlePlural: '@order-management:bulk-buy-orders.entities.member-order-line.plural',
44
+ icon: 'fa-light fa-list-check',
45
+ },
46
+ },
47
+ };
48
+ //#endregion
49
+
50
+ //#endregion
51
+ //#region ---- Factory Function ----
52
+ async function bulkBuyOrderFactory() {
53
+ const i18n = `${RootConfig.config.i18n}:bulk-buy-orders.entities.bulk-buy-order`;
54
+ const entityDef = {
55
+ module: RootConfig.module.name,
56
+ name: RootConfig.entities.bulkBuyOrder.name,
57
+ title: RootConfig.entities.bulkBuyOrder.title,
58
+ icon: RootConfig.entities.bulkBuyOrder.icon,
59
+ formats: {
60
+ individual: RootConfig.entities.bulkBuyOrder.title,
61
+ plural: RootConfig.entities.bulkBuyOrder.titlePlural,
62
+ searchResult: {
63
+ title: '{{ orderNumber }}',
64
+ description: '{{ title }}',
65
+ },
66
+ },
67
+ plugins: [
68
+ { name: 'identifier', options: { field: 'orderNumber', rule: 'order-management.bulk-buy-order-number' } },
69
+ { name: 'history' },
70
+ { name: 'compare' },
71
+ {
72
+ name: 'status',
73
+ options: {
74
+ field: 'statusId',
75
+ definition: 'OrderManagement:Status:bulk-buy-order',
76
+ },
77
+ },
78
+ ],
79
+ groups: [
80
+ { id: 'basic-info', title: `@${i18n}.groups.basic-info` },
81
+ { id: 'order-details', title: `@${i18n}.groups.order-details` },
82
+ { id: 'financial-info', title: `@${i18n}.groups.financial-info` },
83
+ ],
84
+ properties: [
85
+ {
86
+ name: 'id',
87
+ title: 'ID',
88
+ groupId: 'basic-info',
89
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
90
+ },
91
+ {
92
+ name: 'orderNumber',
93
+ title: `@${i18n}.fields.order-number.title`,
94
+ groupId: 'basic-info',
95
+ options: {
96
+ sort: { enabled: true },
97
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
98
+ },
99
+ schema: {
100
+ dataType: 'string',
101
+ interface: {
102
+ type: AXPWidgetsCatalog.text,
103
+ options: {
104
+ placeholder: `@${i18n}.fields.order-number.placeholder`,
105
+ },
106
+ },
107
+ },
108
+ validations: [{ rule: 'required' }],
109
+ },
110
+ {
111
+ name: 'title',
112
+ title: `@${i18n}.fields.title.title`,
113
+ groupId: 'basic-info',
114
+ options: {
115
+ sort: { enabled: true },
116
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
117
+ },
118
+ schema: {
119
+ dataType: 'string',
120
+ interface: {
121
+ type: AXPWidgetsCatalog.text,
122
+ options: {
123
+ placeholder: `@${i18n}.fields.title.placeholder`,
124
+ },
125
+ },
126
+ },
127
+ validations: [{ rule: 'required' }],
128
+ },
129
+ {
130
+ name: 'supplierId',
131
+ title: `@${i18n}.fields.supplier.title`,
132
+ groupId: 'order-details',
133
+ options: {
134
+ sort: { enabled: true },
135
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
136
+ },
137
+ schema: {
138
+ dataType: 'string',
139
+ interface: {
140
+ type: AXPWidgetsList.Editors.LookupBox,
141
+ options: {
142
+ entity: `${"SupplierManagement"}.${"Supplier"}`,
143
+ textField: 'party.title',
144
+ valueField: 'id',
145
+ look: 'select',
146
+ expose: [
147
+ { source: 'id', target: 'supplier.id' },
148
+ { source: 'party.title', target: 'supplier.title' },
149
+ { source: 'party.code', target: 'supplier.code' },
150
+ ],
151
+ },
152
+ },
153
+ },
154
+ validations: [{ rule: 'required' }],
155
+ },
156
+ {
157
+ name: 'orderDate',
158
+ title: `@${i18n}.fields.order-date.title`,
159
+ groupId: 'order-details',
160
+ options: {
161
+ sort: { enabled: true },
162
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
163
+ },
164
+ schema: {
165
+ dataType: 'date',
166
+ interface: {
167
+ type: AXPWidgetsCatalog.dateTime,
168
+ options: {
169
+ showTime: false,
170
+ },
171
+ },
172
+ },
173
+ },
174
+ {
175
+ name: 'deadlineDate',
176
+ title: `@${i18n}.fields.deadline-date.title`,
177
+ groupId: 'order-details',
178
+ options: {
179
+ sort: { enabled: true },
180
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
181
+ },
182
+ schema: {
183
+ dataType: 'date',
184
+ interface: {
185
+ type: AXPWidgetsCatalog.dateTime,
186
+ options: {
187
+ showTime: false,
188
+ },
189
+ },
190
+ },
191
+ },
192
+ {
193
+ name: 'description',
194
+ title: `@${i18n}.fields.description.title`,
195
+ groupId: 'basic-info',
196
+ options: {
197
+ sort: { enabled: false },
198
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
199
+ },
200
+ schema: {
201
+ dataType: 'string',
202
+ interface: {
203
+ type: AXPWidgetsList.Editors.LargeTextBox,
204
+ options: {
205
+ rows: 4,
206
+ },
207
+ },
208
+ },
209
+ },
210
+ {
211
+ name: 'freightAmount',
212
+ title: `@${i18n}.fields.freight-amount.title`,
213
+ groupId: 'financial-info',
214
+ options: {
215
+ sort: { enabled: true },
216
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
217
+ },
218
+ schema: {
219
+ dataType: 'number',
220
+ interface: {
221
+ type: AXPWidgetsList.Editors.NumberBox,
222
+ options: {
223
+ minValue: 0,
224
+ decimals: 2,
225
+ },
226
+ },
227
+ },
228
+ validations: [
229
+ { rule: 'required' },
230
+ ],
231
+ },
232
+ ],
233
+ columns: [
234
+ { name: 'orderNumber', options: { width: '150px' } },
235
+ { name: 'title' },
236
+ { name: 'supplierId', options: { dataPath: 'supplier.title' } },
237
+ { name: 'orderDate' },
238
+ { name: 'deadlineDate' },
239
+ { name: 'freightAmount' },
240
+ ],
241
+ relatedEntities: [
242
+ {
243
+ entity: `${RootConfig.module.name}.${RootConfig.entities.bulkBuyOrderItem.name}`,
244
+ title: RootConfig.entities.bulkBuyOrderItem.titlePlural,
245
+ columns: ['productId', 'size', 'quantityInOrder', 'price', 'unit', 'total'],
246
+ conditions: [entityDetailsSimpleCondition('bulkBuyOrderId')],
247
+ actions: [
248
+ ...entityDetailsCrudActions('bulkBuyOrderId'),
249
+ ],
250
+ layout: { type: 'tab-list' },
251
+ },
252
+ {
253
+ entity: `${RootConfig.module.name}.${RootConfig.entities.memberOrder.name}`,
254
+ title: RootConfig.entities.memberOrder.titlePlural,
255
+ columns: ['memberId', 'productTotal', 'freightShare', 'totalOwing', 'statusId', 'paidDate'],
256
+ conditions: [entityDetailsSimpleCondition('bulkBuyOrderId')],
257
+ actions: [...entityDetailsCrudActions('bulkBuyOrderId')],
258
+ layout: { type: 'page-list' },
259
+ },
260
+ ],
261
+ interfaces: {
262
+ master: {
263
+ create: {
264
+ sections: [{ id: 'basic-info' }, { id: 'order-details' }, { id: 'financial-info' }],
265
+ properties: [
266
+ { name: 'orderNumber', layout: { positions: { lg: { colSpan: 6 } } } },
267
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
268
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
269
+ { name: 'supplierId', layout: { positions: { lg: { colSpan: 12 } } } },
270
+ { name: 'orderDate', layout: { positions: { lg: { colSpan: 6, } } } },
271
+ { name: 'deadlineDate', layout: { positions: { lg: { colSpan: 6 } } } },
272
+ { name: 'freightAmount', layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },
273
+ ],
274
+ },
275
+ update: {
276
+ sections: [{ id: 'basic-info' }, { id: 'order-details' }, { id: 'financial-info' }],
277
+ properties: [
278
+ { name: 'orderNumber', layout: { positions: { lg: { colSpan: 6 } } } },
279
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
280
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
281
+ { name: 'supplierId', layout: { positions: { lg: { colSpan: 12 } } } },
282
+ { name: 'orderDate', layout: { positions: { lg: { colSpan: 6 } } } },
283
+ { name: 'deadlineDate', layout: { positions: { lg: { colSpan: 6 } } } },
284
+ { name: 'freightAmount', layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },
285
+ ],
286
+ },
287
+ single: {
288
+ title: '{{ title }}',
289
+ sections: [
290
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
291
+ { id: 'order-details', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
292
+ { id: 'financial-info', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
293
+ ],
294
+ properties: [
295
+ { name: 'orderNumber', layout: { positions: { lg: { colSpan: 6 } } } },
296
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
297
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
298
+ { name: 'supplierId', layout: { positions: { lg: { colSpan: 12 } } } },
299
+ { name: 'orderDate', layout: { positions: { lg: { colSpan: 6 } } } },
300
+ { name: 'deadlineDate', layout: { positions: { lg: { colSpan: 6 } } } },
301
+ { name: 'freightAmount', layout: { positions: { lg: { colSpan: 6 } } } },
302
+ ],
303
+ actions: [...entityMasterRecordActions()],
304
+ },
305
+ list: {
306
+ actions: [...entityMasterCrudActions()],
307
+ views: [
308
+ createAllQueryView({
309
+ sorts: [{ name: 'orderDate', dir: 'desc' }],
310
+ }),
311
+ ],
312
+ },
313
+ },
314
+ },
315
+ };
316
+ return entityDef;
317
+ }
318
+ //#endregion
319
+
320
+ /**
321
+ * Generated bundle index. Do not edit.
322
+ */
323
+
324
+ export { bulkBuyOrderFactory };
325
+ //# sourceMappingURL=acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs","sources":["../../../../libs/modules/order-management/contracts/src/root-config.ts","../../../../libs/modules/order-management/contracts/src/entities/bulk-buy-order/bulk-buy-order.entity.ts","../../../../libs/modules/order-management/contracts/src/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.ts"],"sourcesContent":["//#region ---- Module Configuration ----\n\nconst config = {\n i18n: 'order-management',\n module: 'OrderManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'order-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n bulkBuyOrder: {\n name: 'BulkBuyOrder',\n source: `${config.module}.BulkBuyOrder`,\n title: '@order-management:bulk-buy-orders.entities.bulk-buy-order.title',\n titlePlural: '@order-management:bulk-buy-orders.entities.bulk-buy-order.plural',\n icon: 'fa-light fa-file-invoice',\n },\n bulkBuyOrderItem: {\n name: 'BulkBuyOrderItem',\n source: `${config.module}.BulkBuyOrderItem`,\n title: '@order-management:bulk-buy-orders.entities.bulk-buy-order-item.title',\n titlePlural: '@order-management:bulk-buy-orders.entities.bulk-buy-order-item.plural',\n icon: 'fa-light fa-list',\n },\n memberOrder: {\n name: 'MemberOrder',\n source: `${config.module}.MemberOrder`,\n title: '@order-management:bulk-buy-orders.entities.member-order.title',\n titlePlural: '@order-management:bulk-buy-orders.entities.member-order.plural',\n icon: 'fa-light fa-user-check',\n },\n memberOrderLine: {\n name: 'MemberOrderLine',\n source: `${config.module}.MemberOrderLine`,\n title: '@order-management:bulk-buy-orders.entities.member-order-line.title',\n titlePlural: '@order-management:bulk-buy-orders.entities.member-order-line.plural',\n icon: 'fa-light fa-list-check',\n },\n },\n};\n\n//#endregion\n\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Factory Function ----\n\nexport async function bulkBuyOrderFactory(): Promise<AXPEntity | null> {\n const i18n = `${RootConfig.config.i18n}:bulk-buy-orders.entities.bulk-buy-order`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.bulkBuyOrder.name,\n title: RootConfig.entities.bulkBuyOrder.title,\n icon: RootConfig.entities.bulkBuyOrder.icon,\n formats: {\n individual: RootConfig.entities.bulkBuyOrder.title,\n plural: RootConfig.entities.bulkBuyOrder.titlePlural,\n searchResult: {\n title: '{{ orderNumber }}',\n description: '{{ title }}',\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'orderNumber', rule: 'order-management.bulk-buy-order-number' } },\n { name: 'history' },\n { name: 'compare' },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'OrderManagement:Status:bulk-buy-order',\n },\n },\n ],\n groups: [\n { id: 'basic-info', title: `@${i18n}.groups.basic-info` },\n { id: 'order-details', title: `@${i18n}.groups.order-details` },\n { id: 'financial-info', title: `@${i18n}.groups.financial-info` },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'orderNumber',\n title: `@${i18n}.fields.order-number.title`,\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: `@${i18n}.fields.order-number.placeholder`,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: `@${i18n}.fields.title.title`,\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: `@${i18n}.fields.title.placeholder`,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'supplierId',\n title: `@${i18n}.fields.supplier.title`,\n groupId: 'order-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${\"SupplierManagement\"}.${\"Supplier\"}`,\n textField: 'party.title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'supplier.id' },\n { source: 'party.title', target: 'supplier.title' },\n { source: 'party.code', target: 'supplier.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'orderDate',\n title: `@${i18n}.fields.order-date.title`,\n groupId: 'order-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: {\n showTime: false,\n },\n },\n },\n },\n {\n name: 'deadlineDate',\n title: `@${i18n}.fields.deadline-date.title`,\n groupId: 'order-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: {\n showTime: false,\n },\n },\n },\n },\n {\n name: 'description',\n title: `@${i18n}.fields.description.title`,\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n },\n },\n },\n },\n {\n name: 'freightAmount',\n title: `@${i18n}.fields.freight-amount.title`,\n groupId: 'financial-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n decimals: 2,\n },\n },\n },\n validations: [\n { rule: 'required' },\n ],\n },\n ],\n columns: [\n { name: 'orderNumber', options: { width: '150px' } },\n { name: 'title' },\n { name: 'supplierId', options: { dataPath: 'supplier.title' } },\n { name: 'orderDate' },\n { name: 'deadlineDate' },\n { name: 'freightAmount' },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.bulkBuyOrderItem.name}`,\n title: RootConfig.entities.bulkBuyOrderItem.titlePlural,\n columns: ['productId', 'size', 'quantityInOrder', 'price', 'unit', 'total'],\n conditions: [entityDetailsSimpleCondition('bulkBuyOrderId')],\n actions: [\n ...entityDetailsCrudActions('bulkBuyOrderId'),\n ],\n layout: { type: 'tab-list' },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.memberOrder.name}`,\n title: RootConfig.entities.memberOrder.titlePlural,\n columns: ['memberId', 'productTotal', 'freightShare', 'totalOwing', 'statusId', 'paidDate'],\n conditions: [entityDetailsSimpleCondition('bulkBuyOrderId')],\n actions: [...entityDetailsCrudActions('bulkBuyOrderId')],\n layout: { type: 'page-list' },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'order-details' }, { id: 'financial-info' }],\n properties: [\n { name: 'orderNumber', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'supplierId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'orderDate', layout: { positions: { lg: { colSpan: 6, } } } },\n { name: 'deadlineDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'freightAmount', layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'order-details' }, { id: 'financial-info' }],\n properties: [\n { name: 'orderNumber', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'supplierId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'orderDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'deadlineDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'freightAmount', layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'order-details', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'financial-info', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'orderNumber', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'supplierId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'orderDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'deadlineDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'freightAmount', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'orderDate', dir: 'desc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.bulk-buy-order';\n"],"names":[],"mappings":";;;AAAA;AAEA,MAAM,MAAM,GAAG;AACX,IAAA,IAAI,EAAE,k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AACF,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACH,wBAAA,kBAAkB,CAAC;4BACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;yBAC9C,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;ACtRA;;AAEG;;;;"}
@@ -0,0 +1,285 @@
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityDetailsCrudActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Module Configuration ----
5
+ const config = {
6
+ i18n: 'order-management',
7
+ module: 'OrderManagement',
8
+ };
9
+ const RootConfig = {
10
+ config,
11
+ module: {
12
+ route: 'order-management',
13
+ name: config.module,
14
+ title: `@${config.i18n}:module.title`,
15
+ icon: 'fa-light fa-file-invoice',
16
+ },
17
+ entities: {
18
+ bulkBuyOrder: {
19
+ name: 'BulkBuyOrder',
20
+ source: `${config.module}.BulkBuyOrder`,
21
+ title: '@order-management:bulk-buy-orders.entities.bulk-buy-order.title',
22
+ titlePlural: '@order-management:bulk-buy-orders.entities.bulk-buy-order.plural',
23
+ icon: 'fa-light fa-file-invoice',
24
+ },
25
+ bulkBuyOrderItem: {
26
+ name: 'BulkBuyOrderItem',
27
+ source: `${config.module}.BulkBuyOrderItem`,
28
+ title: '@order-management:bulk-buy-orders.entities.bulk-buy-order-item.title',
29
+ titlePlural: '@order-management:bulk-buy-orders.entities.bulk-buy-order-item.plural',
30
+ icon: 'fa-light fa-list',
31
+ },
32
+ memberOrder: {
33
+ name: 'MemberOrder',
34
+ source: `${config.module}.MemberOrder`,
35
+ title: '@order-management:bulk-buy-orders.entities.member-order.title',
36
+ titlePlural: '@order-management:bulk-buy-orders.entities.member-order.plural',
37
+ icon: 'fa-light fa-user-check',
38
+ },
39
+ memberOrderLine: {
40
+ name: 'MemberOrderLine',
41
+ source: `${config.module}.MemberOrderLine`,
42
+ title: '@order-management:bulk-buy-orders.entities.member-order-line.title',
43
+ titlePlural: '@order-management:bulk-buy-orders.entities.member-order-line.plural',
44
+ icon: 'fa-light fa-list-check',
45
+ },
46
+ },
47
+ };
48
+ //#endregion
49
+
50
+ //#endregion
51
+ //#region ---- Factory Function ----
52
+ async function memberOrderLineFactory() {
53
+ const i18n = `${RootConfig.config.i18n}:bulk-buy-orders.entities.member-order-line`;
54
+ const entityDef = {
55
+ module: RootConfig.module.name,
56
+ name: RootConfig.entities.memberOrderLine.name,
57
+ title: RootConfig.entities.memberOrderLine.title,
58
+ icon: RootConfig.entities.memberOrderLine.icon,
59
+ formats: {
60
+ individual: RootConfig.entities.memberOrderLine.title,
61
+ plural: RootConfig.entities.memberOrderLine.titlePlural,
62
+ searchResult: {
63
+ title: '{{ bulkBuyOrderItem.product.title }}',
64
+ description: '{{ context.eval("quantity") + " × " + context.eval("price") }}',
65
+ },
66
+ },
67
+ plugins: [
68
+ {
69
+ name: 'computed-property',
70
+ options: {
71
+ fields: [
72
+ {
73
+ name: 'lineTotal',
74
+ title: `@${i18n}.fields.line-total.title`,
75
+ value: '{{ context.eval("price") && context.eval("quantity") ? (context.eval("price") * context.eval("quantity") * (1 + (context.eval("taxRate") || 0) / 100)).toFixed(2) : 0 }}',
76
+ group: {
77
+ id: 'financial-info',
78
+ title: `@${i18n}.groups.financial-info`,
79
+ },
80
+ showAs: {
81
+ type: AXPWidgetsCatalog.number,
82
+ options: {
83
+ readonly: true,
84
+ format: 'currency',
85
+ },
86
+ },
87
+ },
88
+ ],
89
+ },
90
+ },
91
+ ],
92
+ groups: [
93
+ { id: 'order-info', title: `@${i18n}.groups.order-info` },
94
+ { id: 'product-info', title: `@${i18n}.groups.product-info` },
95
+ { id: 'financial-info', title: `@${i18n}.groups.financial-info` },
96
+ ],
97
+ properties: [
98
+ {
99
+ name: 'id',
100
+ title: 'ID',
101
+ groupId: 'order-info',
102
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
103
+ },
104
+ {
105
+ name: 'memberOrderId',
106
+ title: `@${i18n}.fields.member-order.title`,
107
+ groupId: 'order-info',
108
+ options: {
109
+ sort: { enabled: true },
110
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
111
+ },
112
+ schema: {
113
+ dataType: 'string',
114
+ interface: {
115
+ type: AXPWidgetsList.Editors.LookupBox,
116
+ options: {
117
+ entity: `${RootConfig.module.name}.${RootConfig.entities.memberOrder.name}`,
118
+ textField: 'member.displayName',
119
+ valueField: 'id',
120
+ look: 'select',
121
+ expose: [
122
+ { source: 'id', target: 'memberOrder.id' },
123
+ { source: 'member.displayName', target: 'memberOrder.member.displayName' },
124
+ { source: 'bulkBuyOrder.orderNumber', target: 'memberOrder.bulkBuyOrder.orderNumber' },
125
+ ],
126
+ },
127
+ },
128
+ },
129
+ validations: [{ rule: 'required' }],
130
+ },
131
+ {
132
+ name: 'bulkBuyOrderItemId',
133
+ title: `@${i18n}.fields.bulk-buy-order-item.title`,
134
+ groupId: 'product-info',
135
+ options: {
136
+ sort: { enabled: true },
137
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
138
+ },
139
+ schema: {
140
+ dataType: 'string',
141
+ interface: {
142
+ type: AXPWidgetsList.Editors.LookupBox,
143
+ options: {
144
+ entity: `${RootConfig.module.name}.${RootConfig.entities.bulkBuyOrderItem.name}`,
145
+ textField: 'product.title',
146
+ valueField: 'id',
147
+ look: 'select',
148
+ expose: [
149
+ { source: 'id', target: 'bulkBuyOrderItem.id' },
150
+ { source: 'product.title', target: 'bulkBuyOrderItem.product.title' },
151
+ { source: 'price', target: 'bulkBuyOrderItem.price' },
152
+ { source: 'unit', target: 'bulkBuyOrderItem.unit' },
153
+ ],
154
+ },
155
+ },
156
+ },
157
+ validations: [{ rule: 'required' }],
158
+ },
159
+ {
160
+ name: 'quantity',
161
+ title: `@${i18n}.fields.quantity.title`,
162
+ groupId: 'product-info',
163
+ options: {
164
+ sort: { enabled: true },
165
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
166
+ },
167
+ schema: {
168
+ dataType: 'number',
169
+ interface: {
170
+ type: AXPWidgetsList.Editors.NumberBox,
171
+ options: {
172
+ minValue: 0,
173
+ decimals: 2,
174
+ },
175
+ },
176
+ },
177
+ validations: [
178
+ { rule: 'required' },
179
+ {
180
+ rule: 'minValue',
181
+ options: {
182
+ value: 0,
183
+ },
184
+ },
185
+ ],
186
+ },
187
+ {
188
+ name: 'price',
189
+ title: `@${i18n}.fields.price.title`,
190
+ groupId: 'financial-info',
191
+ options: {
192
+ sort: { enabled: true },
193
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
194
+ },
195
+ schema: {
196
+ dataType: 'number',
197
+ interface: {
198
+ type: AXPWidgetsList.Editors.NumberBox,
199
+ options: {
200
+ minValue: 0,
201
+ decimals: 2,
202
+ format: 'currency',
203
+ readonly: true,
204
+ },
205
+ },
206
+ },
207
+ validations: [
208
+ {
209
+ rule: 'minValue',
210
+ options: {
211
+ value: 0,
212
+ },
213
+ },
214
+ ],
215
+ },
216
+ {
217
+ name: 'taxRate',
218
+ title: `@${i18n}.fields.tax-rate.title`,
219
+ groupId: 'financial-info',
220
+ schema: {
221
+ dataType: 'number',
222
+ visible: false,
223
+ interface: {
224
+ type: AXPWidgetsCatalog.number,
225
+ },
226
+ },
227
+ },
228
+ ],
229
+ columns: [
230
+ { name: 'memberOrderId', options: { dataPath: 'memberOrder.member.displayName' } },
231
+ { name: 'bulkBuyOrderItemId', options: { dataPath: 'bulkBuyOrderItem.product.title' } },
232
+ { name: 'quantity' },
233
+ { name: 'price' },
234
+ { name: 'lineTotal' },
235
+ ],
236
+ interfaces: {
237
+ master: {
238
+ create: {
239
+ sections: [{ id: 'order-info' }, { id: 'product-info' }, { id: 'financial-info' }],
240
+ properties: [
241
+ { name: 'memberOrderId', layout: { positions: { lg: { colSpan: 12 } } } },
242
+ { name: 'bulkBuyOrderItemId', layout: { positions: { lg: { colSpan: 12 } } } },
243
+ { name: 'quantity', layout: { positions: { lg: { colSpan: 6 } } } },
244
+ ],
245
+ },
246
+ update: {
247
+ sections: [{ id: 'order-info' }, { id: 'product-info' }, { id: 'financial-info' }],
248
+ properties: [
249
+ { name: 'memberOrderId', layout: { positions: { lg: { colSpan: 12 } } } },
250
+ { name: 'bulkBuyOrderItemId', layout: { positions: { lg: { colSpan: 12 } } } },
251
+ { name: 'quantity', layout: { positions: { lg: { colSpan: 6 } } } },
252
+ ],
253
+ },
254
+ single: {
255
+ title: '{{ bulkBuyOrderItem.product.title }}',
256
+ sections: [
257
+ { id: 'order-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
258
+ { id: 'product-info', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
259
+ { id: 'financial-info', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
260
+ ],
261
+ properties: [
262
+ { name: 'memberOrderId', layout: { positions: { lg: { colSpan: 12 } } } },
263
+ { name: 'bulkBuyOrderItemId', layout: { positions: { lg: { colSpan: 12 } } } },
264
+ { name: 'quantity', layout: { positions: { lg: { colSpan: 4 } } } },
265
+ { name: 'price', layout: { positions: { lg: { colSpan: 4 } } } },
266
+ { name: 'lineTotal', layout: { positions: { lg: { colSpan: 4 } } } },
267
+ ],
268
+ },
269
+ list: {
270
+ actions: [...entityDetailsCrudActions('memberOrderId')],
271
+ views: [createAllQueryView()],
272
+ },
273
+ },
274
+ },
275
+ };
276
+ return entityDef;
277
+ }
278
+ //#endregion
279
+
280
+ /**
281
+ * Generated bundle index. Do not edit.
282
+ */
283
+
284
+ export { memberOrderLineFactory };
285
+ //# sourceMappingURL=acorex-platform-module-order-management-client-contracts-entities-member-order-line.mjs.map