@acorex-platform/module-financial-core-client 0.0.32 → 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 (54) hide show
  1. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs +324 -0
  2. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs +380 -0
  4. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs +295 -0
  6. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs +343 -0
  8. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs +351 -0
  10. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs +288 -0
  12. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs +282 -0
  14. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs +272 -0
  16. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs +364 -0
  18. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs +99 -0
  20. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs +252 -0
  22. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs +308 -0
  24. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs +223 -0
  26. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs +271 -0
  28. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs +279 -0
  30. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs +216 -0
  32. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs +210 -0
  34. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs +200 -0
  36. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs +292 -0
  38. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs +2 -0
  40. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs +37 -0
  42. package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs.map +1 -0
  43. package/package.json +45 -1
  44. package/types/acorex-platform-module-financial-core-client-contracts-entities-currency.d.ts +5 -0
  45. package/types/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.d.ts +5 -0
  46. package/types/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.d.ts +5 -0
  47. package/types/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.d.ts +5 -0
  48. package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-method.d.ts +5 -0
  49. package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-term.d.ts +5 -0
  50. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-class.d.ts +5 -0
  51. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-region.d.ts +5 -0
  52. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.d.ts +5 -0
  53. package/types/acorex-platform-module-financial-core-client-contracts-entity-catalog.d.ts +10 -0
  54. package/types/acorex-platform-module-financial-core-client-local-entities.d.ts +12 -0
@@ -0,0 +1,272 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'financial-core',
6
+ module: 'FinancialCore',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ name: config.module,
12
+ title: `@${config.i18n}:module.title`,
13
+ icon: 'fa-light fa-sack-dollar',
14
+ },
15
+ entities: {
16
+ currency: {
17
+ name: 'Currency',
18
+ title: `@${config.i18n}:currencies.entities.currency.title`,
19
+ titlePlural: `@${config.i18n}:currencies.entities.currency.plural`,
20
+ icon: 'fa-light fa-coins',
21
+ },
22
+ exchangeRate: {
23
+ name: 'ExchangeRate',
24
+ title: `@${config.i18n}:exchange-rates.entities.exchange-rate.title`,
25
+ titlePlural: `@${config.i18n}:exchange-rates.entities.exchange-rate.plural`,
26
+ icon: 'fa-light fa-arrows-rotate',
27
+ },
28
+ taxClass: {
29
+ name: 'TaxClass',
30
+ title: `@${config.i18n}:taxation.entities.tax-class.title`,
31
+ titlePlural: `@${config.i18n}:taxation.entities.tax-class.plural`,
32
+ icon: 'fa-light fa-scale-balanced',
33
+ },
34
+ taxRegion: {
35
+ name: 'TaxRegion',
36
+ title: `@${config.i18n}:taxation.entities.tax-region.title`,
37
+ titlePlural: `@${config.i18n}:taxation.entities.tax-region.plural`,
38
+ icon: 'fa-light fa-map-location-dot',
39
+ },
40
+ taxRule: {
41
+ name: 'TaxRule',
42
+ title: `@${config.i18n}:taxation.entities.tax-rule.title`,
43
+ titlePlural: `@${config.i18n}:taxation.entities.tax-rule.plural`,
44
+ icon: 'fa-light fa-scroll',
45
+ },
46
+ paymentTerm: {
47
+ name: 'PaymentTerm',
48
+ title: `@${config.i18n}:payments.entities.payment-term.title`,
49
+ titlePlural: `@${config.i18n}:payments.entities.payment-term.plural`,
50
+ icon: 'fa-light fa-calendar-check',
51
+ },
52
+ paymentMethod: {
53
+ name: 'PaymentMethod',
54
+ title: `@${config.i18n}:payments.entities.payment-method.title`,
55
+ titlePlural: `@${config.i18n}:payments.entities.payment-method.plural`,
56
+ icon: 'fa-light fa-credit-card',
57
+ },
58
+ fiscalCalendar: {
59
+ name: 'FiscalCalendar',
60
+ title: `@${config.i18n}:calendars.entities.fiscal-calendar.title`,
61
+ titlePlural: `@${config.i18n}:calendars.entities.fiscal-calendar.plural`,
62
+ icon: 'fa-light fa-calendar-days',
63
+ },
64
+ financialDimension: {
65
+ name: 'FinancialDimension',
66
+ title: `@${config.i18n}:dimensions.entities.financial-dimension.title`,
67
+ titlePlural: `@${config.i18n}:dimensions.entities.financial-dimension.plural`,
68
+ icon: 'fa-light fa-layer-group',
69
+ },
70
+ },
71
+ };
72
+
73
+ //#endregion
74
+ //#region ---- Entity Factory ----
75
+ async function taxRegionFactory() {
76
+ const sections = [
77
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
78
+ { id: 'jurisdiction', layout: { positions: { lg: { colSpan: 12 } } } },
79
+ ];
80
+ const propertyLayouts = [
81
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
82
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
83
+ { name: 'countryCode', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
84
+ { name: 'regionCode', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
85
+ { name: 'taxAuthorityName', layout: { positions: { lg: { colSpan: 8, order: 5 } } } },
86
+ { name: 'defaultCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
87
+ ];
88
+ const entityDef = {
89
+ module: RootConfig.module.name,
90
+ name: RootConfig.entities.taxRegion.name,
91
+ title: RootConfig.entities.taxRegion.title,
92
+ icon: RootConfig.entities.taxRegion.icon,
93
+ formats: {
94
+ individual: RootConfig.entities.taxRegion.title,
95
+ plural: RootConfig.entities.taxRegion.titlePlural,
96
+ searchResult: {
97
+ title: '{{ title }}',
98
+ description: '{{ context.eval("countryCode") + " - " + context.eval("regionCode") }}',
99
+ },
100
+ },
101
+ plugins: [
102
+ { name: 'history' },
103
+ { name: 'lock' },
104
+ { name: 'compare' },
105
+ { name: 'disable' },
106
+ {
107
+ name: 'default',
108
+ options: {
109
+ title: '@financial-core:taxation.entities.tax-region.fields.is-default.title',
110
+ },
111
+ },
112
+ ],
113
+ groups: [
114
+ { id: 'basic-info', title: '@financial-core:taxation.entities.tax-region.groups.basic-info' },
115
+ { id: 'jurisdiction', title: '@financial-core:taxation.entities.tax-region.groups.jurisdiction' },
116
+ ],
117
+ properties: [
118
+ {
119
+ name: 'id',
120
+ title: '@general:terms.common.id',
121
+ groupId: 'basic-info',
122
+ schema: {
123
+ dataType: 'uuid',
124
+ visible: false,
125
+ readonly: true,
126
+ unique: { enabled: true },
127
+ },
128
+ },
129
+ {
130
+ name: 'code',
131
+ title: '@general:terms.common.code',
132
+ groupId: 'basic-info',
133
+ options: {
134
+ sort: { enabled: true },
135
+ filter: {
136
+ advance: { enabled: true },
137
+ inline: { enabled: true },
138
+ },
139
+ },
140
+ schema: {
141
+ dataType: 'string',
142
+ interface: {
143
+ type: AXPWidgetsList.Editors.TextBox,
144
+ options: {
145
+ placeholder: '@financial-core:taxation.entities.tax-region.fields.code.placeholder',
146
+ },
147
+ },
148
+ },
149
+ validations: [{ rule: 'required' }],
150
+ },
151
+ {
152
+ name: 'title',
153
+ title: '@general:terms.common.title',
154
+ groupId: 'basic-info',
155
+ schema: {
156
+ dataType: 'string',
157
+ interface: {
158
+ type: AXPWidgetsList.Editors.TextBox,
159
+ options: {
160
+ placeholder: '@financial-core:taxation.entities.tax-region.fields.title.placeholder',
161
+ },
162
+ },
163
+ },
164
+ validations: [{ rule: 'required' }],
165
+ },
166
+ {
167
+ name: 'countryCode',
168
+ title: '@financial-core:taxation.entities.tax-region.fields.country-code.title',
169
+ groupId: 'jurisdiction',
170
+ schema: {
171
+ dataType: 'string',
172
+ interface: {
173
+ type: AXPWidgetsList.Editors.TextBox,
174
+ options: {
175
+ mask: 'AA',
176
+ placeholder: '@financial-core:taxation.entities.tax-region.fields.country-code.placeholder',
177
+ },
178
+ },
179
+ },
180
+ validations: [{ rule: 'required' }],
181
+ },
182
+ {
183
+ name: 'regionCode',
184
+ title: '@financial-core:taxation.entities.tax-region.fields.region-code.title',
185
+ groupId: 'jurisdiction',
186
+ schema: {
187
+ dataType: 'string',
188
+ interface: {
189
+ type: AXPWidgetsList.Editors.TextBox,
190
+ options: {
191
+ placeholder: '@financial-core:taxation.entities.tax-region.fields.region-code.placeholder',
192
+ },
193
+ },
194
+ },
195
+ },
196
+ {
197
+ name: 'taxAuthorityName',
198
+ title: '@financial-core:taxation.entities.tax-region.fields.tax-authority.title',
199
+ groupId: 'jurisdiction',
200
+ schema: {
201
+ dataType: 'string',
202
+ interface: {
203
+ type: AXPWidgetsList.Editors.TextBox,
204
+ options: {
205
+ placeholder: '@financial-core:taxation.entities.tax-region.fields.tax-authority.placeholder',
206
+ },
207
+ },
208
+ },
209
+ },
210
+ {
211
+ name: 'defaultCurrencyId',
212
+ title: '@financial-core:taxation.entities.tax-region.fields.default-currency.title',
213
+ groupId: 'jurisdiction',
214
+ schema: {
215
+ dataType: 'string',
216
+ interface: {
217
+ type: AXPWidgetsList.Editors.LookupBox,
218
+ options: {
219
+ entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,
220
+ look: 'select',
221
+ expose: [
222
+ { source: 'id', target: 'currency.id' },
223
+ { source: 'title', target: 'currency.title' },
224
+ ],
225
+ },
226
+ },
227
+ },
228
+ },
229
+ ],
230
+ columns: [
231
+ { name: 'code', options: { width: '140px', order: 1 } },
232
+ { name: 'title', options: { width: '220px', order: 2 } },
233
+ { name: 'countryCode', options: { width: '140px', order: 3 } },
234
+ { name: 'regionCode', options: { width: '160px', order: 4 } },
235
+ ],
236
+ interfaces: {
237
+ master: {
238
+ create: {
239
+ sections,
240
+ properties: propertyLayouts,
241
+ },
242
+ update: {
243
+ sections,
244
+ properties: propertyLayouts,
245
+ },
246
+ single: {
247
+ title: '{{ title }}',
248
+ sections,
249
+ properties: propertyLayouts,
250
+ actions: [...entityMasterRecordActions()],
251
+ },
252
+ list: {
253
+ actions: [...entityMasterCrudActions()],
254
+ views: [
255
+ createAllQueryView({
256
+ sorts: [{ name: 'code', dir: 'asc' }],
257
+ }),
258
+ ],
259
+ },
260
+ },
261
+ },
262
+ };
263
+ return entityDef;
264
+ }
265
+ //#endregion
266
+
267
+ /**
268
+ * Generated bundle index. Do not edit.
269
+ */
270
+
271
+ export { taxRegionFactory };
272
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/root-config.ts","../../../../libs/modules/financial-core/contracts/src/entities/tax-region/tax-region.entity.ts","../../../../libs/modules/financial-core/contracts/src/acorex-platform-module-financial-core-client-contracts-entities-tax-region.ts"],"sourcesContent":["const config = {\n i18n: 'financial-core',\n module: 'FinancialCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-sack-dollar',\n },\n entities: {\n currency: {\n name: 'Currency',\n title: `@${config.i18n}:currencies.entities.currency.title`,\n titlePlural: `@${config.i18n}:currencies.entities.currency.plural`,\n icon: 'fa-light fa-coins',\n },\n exchangeRate: {\n name: 'ExchangeRate',\n title: `@${config.i18n}:exchange-rates.entities.exchange-rate.title`,\n titlePlural: `@${config.i18n}:exchange-rates.entities.exchange-rate.plural`,\n icon: 'fa-light fa-arrows-rotate',\n },\n taxClass: {\n name: 'TaxClass',\n title: `@${config.i18n}:taxation.entities.tax-class.title`,\n titlePlural: `@${config.i18n}:taxation.entities.tax-class.plural`,\n icon: 'fa-light fa-scale-balanced',\n },\n taxRegion: {\n name: 'TaxRegion',\n title: `@${config.i18n}:taxation.entities.tax-region.title`,\n titlePlural: `@${config.i18n}:taxation.entities.tax-region.plural`,\n icon: 'fa-light fa-map-location-dot',\n },\n taxRule: {\n name: 'TaxRule',\n title: `@${config.i18n}:taxation.entities.tax-rule.title`,\n titlePlural: `@${config.i18n}:taxation.entities.tax-rule.plural`,\n icon: 'fa-light fa-scroll',\n },\n paymentTerm: {\n name: 'PaymentTerm',\n title: `@${config.i18n}:payments.entities.payment-term.title`,\n titlePlural: `@${config.i18n}:payments.entities.payment-term.plural`,\n icon: 'fa-light fa-calendar-check',\n },\n paymentMethod: {\n name: 'PaymentMethod',\n title: `@${config.i18n}:payments.entities.payment-method.title`,\n titlePlural: `@${config.i18n}:payments.entities.payment-method.plural`,\n icon: 'fa-light fa-credit-card',\n },\n fiscalCalendar: {\n name: 'FiscalCalendar',\n title: `@${config.i18n}:calendars.entities.fiscal-calendar.title`,\n titlePlural: `@${config.i18n}:calendars.entities.fiscal-calendar.plural`,\n icon: 'fa-light fa-calendar-days',\n },\n financialDimension: {\n name: 'FinancialDimension',\n title: `@${config.i18n}:dimensions.entities.financial-dimension.title`,\n titlePlural: `@${config.i18n}:dimensions.entities.financial-dimension.plural`,\n icon: 'fa-light fa-layer-group',\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function taxRegionFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'jurisdiction', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'countryCode', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'regionCode', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'taxAuthorityName', layout: { positions: { lg: { colSpan: 8, order: 5 } } } },\n { name: 'defaultCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.taxRegion.name,\n title: RootConfig.entities.taxRegion.title,\n icon: RootConfig.entities.taxRegion.icon,\n formats: {\n individual: RootConfig.entities.taxRegion.title,\n plural: RootConfig.entities.taxRegion.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"countryCode\") + \" - \" + context.eval(\"regionCode\") }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'disable' },\n {\n name: 'default',\n options: {\n title: '@financial-core:taxation.entities.tax-region.fields.is-default.title',\n },\n },\n ],\n groups: [\n { id: 'basic-info', title: '@financial-core:taxation.entities.tax-region.groups.basic-info' },\n { id: 'jurisdiction', title: '@financial-core:taxation.entities.tax-region.groups.jurisdiction' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'countryCode',\n title: '@financial-core:taxation.entities.tax-region.fields.country-code.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n mask: 'AA',\n placeholder: '@financial-core:taxation.entities.tax-region.fields.country-code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'regionCode',\n title: '@financial-core:taxation.entities.tax-region.fields.region-code.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.fields.region-code.placeholder',\n },\n },\n },\n },\n {\n name: 'taxAuthorityName',\n title: '@financial-core:taxation.entities.tax-region.fields.tax-authority.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.fields.tax-authority.placeholder',\n },\n },\n },\n },\n {\n name: 'defaultCurrencyId',\n title: '@financial-core:taxation.entities.tax-region.fields.default-currency.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,\n look: 'select',\n expose: [\n { source: 'id', target: 'currency.id' },\n { source: 'title', target: 'currency.title' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'countryCode', options: { width: '140px', order: 3 } },\n { name: 'regionCode', options: { width: '160px', order: 4 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.tax-region';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACX,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,MAAM,EAAE,eAAe;CAC1B;AAEM,MAAM,UAAU,GAAG;IACtB,MAAM;AACN,IAAA,MAAM,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,yBAAyB;AAClC,KAAA;AACD,IAAA,QAAQ,EAAE;AACN,QAAA,QAAQ,EAAE;AACN,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,mCAAA,CAAqC;AAC3D,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,oCAAA,CAAsC;AAClE,YAAA,IAAI,EAAE,mBAAmB;AAC5B,SAAA;AACD,QAAA,YAAY,EAAE;AACV,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,4CAAA,CAA8C;AACpE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,6CAAA,CAA+C;AAC3E,YAAA,IAAI,EAAE,2BAA2B;AACpC,SAAA;AACD,QAAA,QAAQ,EAAE;AACN,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,kCAAA,CAAoC;AAC1D,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,mCAAA,CAAqC;AACjE,YAAA,IAAI,EAAE,4BAA4B;AACr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O,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACxD,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AAC9D,YAAA,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AAC9D,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACtC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;AC5MA;;AAEG;;;;"}
@@ -0,0 +1,364 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'financial-core',
6
+ module: 'FinancialCore',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ name: config.module,
12
+ title: `@${config.i18n}:module.title`,
13
+ icon: 'fa-light fa-sack-dollar',
14
+ },
15
+ entities: {
16
+ currency: {
17
+ name: 'Currency',
18
+ title: `@${config.i18n}:currencies.entities.currency.title`,
19
+ titlePlural: `@${config.i18n}:currencies.entities.currency.plural`,
20
+ icon: 'fa-light fa-coins',
21
+ },
22
+ exchangeRate: {
23
+ name: 'ExchangeRate',
24
+ title: `@${config.i18n}:exchange-rates.entities.exchange-rate.title`,
25
+ titlePlural: `@${config.i18n}:exchange-rates.entities.exchange-rate.plural`,
26
+ icon: 'fa-light fa-arrows-rotate',
27
+ },
28
+ taxClass: {
29
+ name: 'TaxClass',
30
+ title: `@${config.i18n}:taxation.entities.tax-class.title`,
31
+ titlePlural: `@${config.i18n}:taxation.entities.tax-class.plural`,
32
+ icon: 'fa-light fa-scale-balanced',
33
+ },
34
+ taxRegion: {
35
+ name: 'TaxRegion',
36
+ title: `@${config.i18n}:taxation.entities.tax-region.title`,
37
+ titlePlural: `@${config.i18n}:taxation.entities.tax-region.plural`,
38
+ icon: 'fa-light fa-map-location-dot',
39
+ },
40
+ taxRule: {
41
+ name: 'TaxRule',
42
+ title: `@${config.i18n}:taxation.entities.tax-rule.title`,
43
+ titlePlural: `@${config.i18n}:taxation.entities.tax-rule.plural`,
44
+ icon: 'fa-light fa-scroll',
45
+ },
46
+ paymentTerm: {
47
+ name: 'PaymentTerm',
48
+ title: `@${config.i18n}:payments.entities.payment-term.title`,
49
+ titlePlural: `@${config.i18n}:payments.entities.payment-term.plural`,
50
+ icon: 'fa-light fa-calendar-check',
51
+ },
52
+ paymentMethod: {
53
+ name: 'PaymentMethod',
54
+ title: `@${config.i18n}:payments.entities.payment-method.title`,
55
+ titlePlural: `@${config.i18n}:payments.entities.payment-method.plural`,
56
+ icon: 'fa-light fa-credit-card',
57
+ },
58
+ fiscalCalendar: {
59
+ name: 'FiscalCalendar',
60
+ title: `@${config.i18n}:calendars.entities.fiscal-calendar.title`,
61
+ titlePlural: `@${config.i18n}:calendars.entities.fiscal-calendar.plural`,
62
+ icon: 'fa-light fa-calendar-days',
63
+ },
64
+ financialDimension: {
65
+ name: 'FinancialDimension',
66
+ title: `@${config.i18n}:dimensions.entities.financial-dimension.title`,
67
+ titlePlural: `@${config.i18n}:dimensions.entities.financial-dimension.plural`,
68
+ icon: 'fa-light fa-layer-group',
69
+ },
70
+ },
71
+ };
72
+
73
+ //#endregion
74
+ //#region ---- Entity Factory ----
75
+ async function taxRuleFactory() {
76
+ const sections = [
77
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
78
+ { id: 'calculation', layout: { positions: { lg: { colSpan: 12 } } } },
79
+ { id: 'effectivity', layout: { positions: { lg: { colSpan: 12 } } } },
80
+ ];
81
+ const propertyLayouts = [
82
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
83
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
84
+ { name: 'taxRegionId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
85
+ { name: 'taxClassId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
86
+ { name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
87
+ { name: 'calculationMethod', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
88
+ { name: 'rate', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
89
+ { name: 'thresholdAmount', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },
90
+ { name: 'conditionSummary', layout: { positions: { lg: { colSpan: 12, order: 9 } } } },
91
+ { name: 'effectiveFrom', layout: { positions: { lg: { colSpan: 6, order: 10 } } } },
92
+ { name: 'effectiveTo', layout: { positions: { lg: { colSpan: 6, order: 11 } } } },
93
+ ];
94
+ const entityDef = {
95
+ module: RootConfig.module.name,
96
+ name: RootConfig.entities.taxRule.name,
97
+ title: RootConfig.entities.taxRule.title,
98
+ icon: RootConfig.entities.taxRule.icon,
99
+ formats: {
100
+ individual: RootConfig.entities.taxRule.title,
101
+ plural: RootConfig.entities.taxRule.titlePlural,
102
+ searchResult: {
103
+ title: '{{ title }}',
104
+ description: '{{ context.eval("taxRegion.title", { pipes: ["translate"] }) + " · " + context.eval("taxClass.title", { pipes: ["translate"] }) }}',
105
+ },
106
+ },
107
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
108
+ groups: [
109
+ { id: 'basic-info', title: '@financial-core:taxation.entities.tax-rule.groups.basic-info' },
110
+ { id: 'calculation', title: '@financial-core:taxation.entities.tax-rule.groups.calculation' },
111
+ { id: 'effectivity', title: '@financial-core:taxation.entities.tax-rule.groups.effectivity' },
112
+ ],
113
+ properties: [
114
+ {
115
+ name: 'id',
116
+ title: '@general:terms.common.id',
117
+ groupId: 'basic-info',
118
+ schema: {
119
+ dataType: 'uuid',
120
+ visible: false,
121
+ readonly: true,
122
+ unique: { enabled: true },
123
+ },
124
+ },
125
+ {
126
+ name: 'code',
127
+ title: '@general:terms.common.code',
128
+ groupId: 'basic-info',
129
+ options: {
130
+ sort: { enabled: true },
131
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
132
+ },
133
+ schema: {
134
+ dataType: 'string',
135
+ interface: {
136
+ type: AXPWidgetsList.Editors.TextBox,
137
+ options: {
138
+ placeholder: '@financial-core:taxation.entities.tax-rule.fields.code.placeholder',
139
+ },
140
+ },
141
+ },
142
+ validations: [{ rule: 'required' }],
143
+ },
144
+ {
145
+ name: 'title',
146
+ title: '@general:terms.common.title',
147
+ groupId: 'basic-info',
148
+ schema: {
149
+ dataType: 'string',
150
+ interface: {
151
+ type: AXPWidgetsList.Editors.TextBox,
152
+ options: {
153
+ placeholder: '@financial-core:taxation.entities.tax-rule.fields.title.placeholder',
154
+ },
155
+ },
156
+ },
157
+ validations: [{ rule: 'required' }],
158
+ },
159
+ {
160
+ name: 'taxRegionId',
161
+ title: '@financial-core:taxation.entities.tax-rule.fields.tax-region.title',
162
+ groupId: 'basic-info',
163
+ schema: {
164
+ dataType: 'string',
165
+ interface: {
166
+ type: AXPWidgetsList.Editors.LookupBox,
167
+ options: {
168
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taxRegion.name}`,
169
+ look: 'select',
170
+ expose: [
171
+ { source: 'id', target: 'taxRegion.id' },
172
+ { source: 'title', target: 'taxRegion.title' },
173
+ ],
174
+ },
175
+ },
176
+ },
177
+ validations: [{ rule: 'required' }],
178
+ },
179
+ {
180
+ name: 'taxClassId',
181
+ title: '@financial-core:taxation.entities.tax-rule.fields.tax-class.title',
182
+ groupId: 'basic-info',
183
+ schema: {
184
+ dataType: 'string',
185
+ interface: {
186
+ type: AXPWidgetsList.Editors.LookupBox,
187
+ options: {
188
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taxClass.name}`,
189
+ look: 'select',
190
+ expose: [
191
+ { source: 'id', target: 'taxClass.id' },
192
+ { source: 'title', target: 'taxClass.title' },
193
+ ],
194
+ },
195
+ },
196
+ },
197
+ validations: [{ rule: 'required' }],
198
+ },
199
+ {
200
+ name: 'priority',
201
+ title: '@financial-core:taxation.entities.tax-rule.fields.priority.title',
202
+ groupId: 'calculation',
203
+ schema: {
204
+ dataType: 'number',
205
+ interface: {
206
+ type: AXPWidgetsList.Editors.NumberBox,
207
+ options: {
208
+ minValue: 1,
209
+ step: 1,
210
+ },
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'calculationMethod',
216
+ title: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.title',
217
+ groupId: 'calculation',
218
+ schema: {
219
+ dataType: 'string',
220
+ interface: {
221
+ type: AXPWidgetsList.Editors.SelectBox,
222
+ options: {
223
+ valueField: 'value',
224
+ textField: 'text',
225
+ dataSource: [
226
+ {
227
+ value: 'percentage',
228
+ text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.percentage',
229
+ },
230
+ {
231
+ value: 'fixed',
232
+ text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.fixed',
233
+ },
234
+ {
235
+ value: 'tiered',
236
+ text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.tiered',
237
+ },
238
+ ],
239
+ },
240
+ },
241
+ },
242
+ validations: [{ rule: 'required' }],
243
+ },
244
+ {
245
+ name: 'rate',
246
+ title: '@financial-core:taxation.entities.tax-rule.fields.rate.title',
247
+ groupId: 'calculation',
248
+ schema: {
249
+ dataType: 'number',
250
+ interface: {
251
+ type: AXPWidgetsList.Editors.NumberBox,
252
+ options: {
253
+ minValue: 0,
254
+ maxValue: 100,
255
+ step: 0.1,
256
+ },
257
+ },
258
+ },
259
+ validations: [{ rule: 'required' }],
260
+ },
261
+ {
262
+ name: 'thresholdAmount',
263
+ title: '@financial-core:taxation.entities.tax-rule.fields.threshold-amount.title',
264
+ groupId: 'calculation',
265
+ schema: {
266
+ dataType: 'number',
267
+ interface: {
268
+ type: AXPWidgetsList.Editors.NumberBox,
269
+ options: {
270
+ minValue: 0,
271
+ step: 1,
272
+ },
273
+ },
274
+ },
275
+ },
276
+ {
277
+ name: 'conditionSummary',
278
+ title: '@financial-core:taxation.entities.tax-rule.fields.condition-summary.title',
279
+ groupId: 'calculation',
280
+ schema: {
281
+ dataType: 'string',
282
+ interface: {
283
+ type: AXPWidgetsList.Editors.LargeTextBox,
284
+ options: {
285
+ rows: 4,
286
+ placeholder: '@financial-core:taxation.entities.tax-rule.fields.condition-summary.placeholder',
287
+ },
288
+ },
289
+ },
290
+ },
291
+ {
292
+ name: 'effectiveFrom',
293
+ title: '@financial-core:taxation.entities.tax-rule.fields.effective-from.title',
294
+ groupId: 'effectivity',
295
+ schema: {
296
+ dataType: 'date',
297
+ interface: {
298
+ type: AXPWidgetsList.Editors.DateTimeBox,
299
+ options: {
300
+ showTime: true,
301
+ },
302
+ },
303
+ },
304
+ validations: [{ rule: 'required' }],
305
+ },
306
+ {
307
+ name: 'effectiveTo',
308
+ title: '@financial-core:taxation.entities.tax-rule.fields.effective-to.title',
309
+ groupId: 'effectivity',
310
+ schema: {
311
+ dataType: 'date',
312
+ interface: {
313
+ type: AXPWidgetsList.Editors.DateTimeBox,
314
+ options: {
315
+ showTime: true,
316
+ },
317
+ },
318
+ },
319
+ },
320
+ ],
321
+ columns: [
322
+ { name: 'code', options: { width: '120px', order: 1 } },
323
+ { name: 'title', options: { width: '220px', order: 2 } },
324
+ { name: 'taxRegionId', options: { dataPath: 'taxRegion.title', width: '220px', order: 3 } },
325
+ { name: 'taxClassId', options: { dataPath: 'taxClass.title', width: '220px', order: 4 } },
326
+ { name: 'rate', options: { width: '120px', order: 5 } },
327
+ ],
328
+ interfaces: {
329
+ master: {
330
+ create: {
331
+ sections,
332
+ properties: propertyLayouts,
333
+ },
334
+ update: {
335
+ sections,
336
+ properties: propertyLayouts,
337
+ },
338
+ single: {
339
+ title: '{{ title }}',
340
+ sections,
341
+ properties: propertyLayouts,
342
+ actions: [...entityMasterRecordActions()],
343
+ },
344
+ list: {
345
+ actions: [...entityMasterCrudActions()],
346
+ views: [
347
+ createAllQueryView({
348
+ sorts: [{ name: 'code', dir: 'asc' }],
349
+ }),
350
+ ],
351
+ },
352
+ },
353
+ },
354
+ };
355
+ return entityDef;
356
+ }
357
+ //#endregion
358
+
359
+ /**
360
+ * Generated bundle index. Do not edit.
361
+ */
362
+
363
+ export { taxRuleFactory };
364
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs.map