@acorex-platform/module-financial-core-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 (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,216 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function paymentTermFactory() {
8
+ const sections = [
9
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
10
+ { id: 'schedule', layout: { positions: { lg: { colSpan: 12 } } } },
11
+ ];
12
+ const propertyLayouts = [
13
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
14
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
15
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
16
+ { name: 'netDueDays', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
17
+ { name: 'discountPercent', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
18
+ { name: 'discountDays', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
19
+ { name: 'gracePeriodDays', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
20
+ { name: 'autoRenew', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },
21
+ ];
22
+ const entityDef = {
23
+ module: RootConfig.module.name,
24
+ name: RootConfig.entities.paymentTerm.name,
25
+ title: RootConfig.entities.paymentTerm.title,
26
+ icon: RootConfig.entities.paymentTerm.icon,
27
+ formats: {
28
+ individual: RootConfig.entities.paymentTerm.title,
29
+ plural: RootConfig.entities.paymentTerm.titlePlural,
30
+ searchResult: {
31
+ title: '{{ title }}',
32
+ description: '{{ netDueDays }} days',
33
+ },
34
+ },
35
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
36
+ groups: [
37
+ { id: 'basic-info', title: '@financial-core:payments.entities.payment-term.groups.basic-info' },
38
+ { id: 'schedule', title: '@financial-core:payments.entities.payment-term.groups.schedule' },
39
+ ],
40
+ properties: [
41
+ {
42
+ name: 'id',
43
+ title: '@general:terms.common.id',
44
+ groupId: 'basic-info',
45
+ schema: {
46
+ dataType: 'uuid',
47
+ visible: false,
48
+ readonly: true,
49
+ unique: { enabled: true },
50
+ },
51
+ },
52
+ {
53
+ name: 'code',
54
+ title: '@general:terms.common.code',
55
+ groupId: 'basic-info',
56
+ options: {
57
+ sort: { enabled: true },
58
+ filter: {
59
+ advance: { enabled: true },
60
+ inline: { enabled: true },
61
+ },
62
+ },
63
+ schema: {
64
+ dataType: 'string',
65
+ interface: {
66
+ type: AXPWidgetsList.Editors.TextBox,
67
+ options: {
68
+ placeholder: '@financial-core:payments.entities.payment-term.fields.code.placeholder',
69
+ },
70
+ },
71
+ },
72
+ validations: [{ rule: 'required' }],
73
+ },
74
+ {
75
+ name: 'title',
76
+ title: '@general:terms.common.title',
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'string',
80
+ interface: {
81
+ type: AXPWidgetsList.Editors.TextBox,
82
+ options: {
83
+ placeholder: '@financial-core:payments.entities.payment-term.fields.title.placeholder',
84
+ },
85
+ },
86
+ },
87
+ validations: [{ rule: 'required' }],
88
+ },
89
+ {
90
+ name: 'description',
91
+ title: '@general:terms.common.description',
92
+ groupId: 'basic-info',
93
+ schema: {
94
+ dataType: 'string',
95
+ interface: {
96
+ type: AXPWidgetsList.Editors.LargeTextBox,
97
+ options: {
98
+ rows: 4,
99
+ placeholder: '@financial-core:payments.entities.payment-term.fields.description.placeholder',
100
+ },
101
+ },
102
+ },
103
+ },
104
+ {
105
+ name: 'netDueDays',
106
+ title: '@financial-core:payments.entities.payment-term.fields.net-due-days.title',
107
+ groupId: 'schedule',
108
+ schema: {
109
+ dataType: 'number',
110
+ interface: {
111
+ type: AXPWidgetsList.Editors.NumberBox,
112
+ options: {
113
+ minValue: 0,
114
+ step: 1,
115
+ },
116
+ },
117
+ },
118
+ validations: [{ rule: 'required' }],
119
+ },
120
+ {
121
+ name: 'discountPercent',
122
+ title: '@financial-core:payments.entities.payment-term.fields.discount-percent.title',
123
+ groupId: 'schedule',
124
+ schema: {
125
+ dataType: 'number',
126
+ interface: {
127
+ type: AXPWidgetsList.Editors.NumberBox,
128
+ options: {
129
+ minValue: 0,
130
+ maxValue: 100,
131
+ step: 0.1,
132
+ },
133
+ },
134
+ },
135
+ },
136
+ {
137
+ name: 'discountDays',
138
+ title: '@financial-core:payments.entities.payment-term.fields.discount-days.title',
139
+ groupId: 'schedule',
140
+ schema: {
141
+ dataType: 'number',
142
+ interface: {
143
+ type: AXPWidgetsList.Editors.NumberBox,
144
+ options: {
145
+ minValue: 0,
146
+ step: 1,
147
+ },
148
+ },
149
+ },
150
+ },
151
+ {
152
+ name: 'gracePeriodDays',
153
+ title: '@financial-core:payments.entities.payment-term.fields.grace-period-days.title',
154
+ groupId: 'schedule',
155
+ schema: {
156
+ dataType: 'number',
157
+ interface: {
158
+ type: AXPWidgetsList.Editors.NumberBox,
159
+ options: {
160
+ minValue: 0,
161
+ step: 1,
162
+ },
163
+ },
164
+ },
165
+ },
166
+ {
167
+ name: 'autoRenew',
168
+ title: '@financial-core:payments.entities.payment-term.fields.auto-renew.title',
169
+ groupId: 'schedule',
170
+ schema: {
171
+ dataType: 'boolean',
172
+ interface: {
173
+ type: AXPWidgetsList.Editors.ToggleSwitch,
174
+ },
175
+ },
176
+ },
177
+ ],
178
+ columns: [
179
+ { name: 'code', options: { width: '140px', order: 1 } },
180
+ { name: 'title', options: { width: '240px', order: 2 } },
181
+ { name: 'netDueDays', options: { width: '140px', order: 3 } },
182
+ { name: 'discountPercent', options: { width: '160px', order: 4 } },
183
+ ],
184
+ interfaces: {
185
+ master: {
186
+ create: {
187
+ sections,
188
+ properties: propertyLayouts,
189
+ },
190
+ update: {
191
+ sections,
192
+ properties: propertyLayouts,
193
+ },
194
+ single: {
195
+ title: '{{ title }}',
196
+ sections,
197
+ properties: propertyLayouts,
198
+ actions: [...entityMasterRecordActions()],
199
+ },
200
+ list: {
201
+ actions: [...entityMasterCrudActions()],
202
+ views: [
203
+ createAllQueryView({
204
+ sorts: [{ name: 'code', dir: 'asc' }],
205
+ }),
206
+ ],
207
+ },
208
+ },
209
+ },
210
+ };
211
+ return entityDef;
212
+ }
213
+ //#endregion
214
+
215
+ export { paymentTermFactory };
216
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/payment-term/payment-term.entity.ts"],"sourcesContent":["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 paymentTermFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'schedule', 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: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'netDueDays', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'discountPercent', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'discountDays', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'gracePeriodDays', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },\n { name: 'autoRenew', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.paymentTerm.name,\n title: RootConfig.entities.paymentTerm.title,\n icon: RootConfig.entities.paymentTerm.icon,\n formats: {\n individual: RootConfig.entities.paymentTerm.title,\n plural: RootConfig.entities.paymentTerm.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ netDueDays }} days',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],\n groups: [\n { id: 'basic-info', title: '@financial-core:payments.entities.payment-term.groups.basic-info' },\n { id: 'schedule', title: '@financial-core:payments.entities.payment-term.groups.schedule' },\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:payments.entities.payment-term.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:payments.entities.payment-term.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@financial-core:payments.entities.payment-term.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'netDueDays',\n title: '@financial-core:payments.entities.payment-term.fields.net-due-days.title',\n groupId: 'schedule',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 1,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'discountPercent',\n title: '@financial-core:payments.entities.payment-term.fields.discount-percent.title',\n groupId: 'schedule',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n maxValue: 100,\n step: 0.1,\n },\n },\n },\n },\n {\n name: 'discountDays',\n title: '@financial-core:payments.entities.payment-term.fields.discount-days.title',\n groupId: 'schedule',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 1,\n },\n },\n },\n },\n {\n name: 'gracePeriodDays',\n title: '@financial-core:payments.entities.payment-term.fields.grace-period-days.title',\n groupId: 'schedule',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 1,\n },\n },\n },\n },\n {\n name: 'autoRenew',\n title: '@financial-core:payments.entities.payment-term.fields.auto-renew.title',\n groupId: 'schedule',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '240px', order: 2 } },\n { name: 'netDueDays', options: { width: '140px', order: 3 } },\n { name: 'discountPercent', 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"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,kBAAkB,GAAA;AAEtC,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA,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acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function taxClassFactory() {
8
+ const sections = [
9
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
10
+ { id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
11
+ ];
12
+ const propertyLayouts = [
13
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
14
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
15
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
16
+ { name: 'type', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
17
+ { name: 'defaultRate', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
18
+ { name: 'isCompound', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
19
+ { name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
20
+ ];
21
+ const entityDef = {
22
+ module: RootConfig.module.name,
23
+ name: RootConfig.entities.taxClass.name,
24
+ title: RootConfig.entities.taxClass.title,
25
+ icon: RootConfig.entities.taxClass.icon,
26
+ formats: {
27
+ individual: RootConfig.entities.taxClass.title,
28
+ plural: RootConfig.entities.taxClass.titlePlural,
29
+ searchResult: {
30
+ title: '{{ title }}',
31
+ description: '{{ context.eval("type") + " - " + context.eval("defaultRate") + "%" }}',
32
+ },
33
+ },
34
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
35
+ groups: [
36
+ { id: 'basic-info', title: '@financial-core:taxation.entities.tax-class.groups.basic-info' },
37
+ { id: 'configuration', title: '@financial-core:taxation.entities.tax-class.groups.configuration' },
38
+ ],
39
+ properties: [
40
+ {
41
+ name: 'id',
42
+ title: '@general:terms.common.id',
43
+ groupId: 'basic-info',
44
+ schema: {
45
+ dataType: 'uuid',
46
+ visible: false,
47
+ readonly: true,
48
+ unique: { enabled: true },
49
+ },
50
+ },
51
+ {
52
+ name: 'code',
53
+ title: '@general:terms.common.code',
54
+ groupId: 'basic-info',
55
+ options: {
56
+ sort: { enabled: true },
57
+ filter: {
58
+ advance: { enabled: true },
59
+ inline: { enabled: true },
60
+ },
61
+ },
62
+ schema: {
63
+ dataType: 'string',
64
+ interface: {
65
+ type: AXPWidgetsList.Editors.TextBox,
66
+ options: {
67
+ placeholder: '@financial-core:taxation.entities.tax-class.fields.code.placeholder',
68
+ },
69
+ },
70
+ },
71
+ validations: [{ rule: 'required' }],
72
+ },
73
+ {
74
+ name: 'title',
75
+ title: '@general:terms.common.title',
76
+ groupId: 'basic-info',
77
+ schema: {
78
+ dataType: 'string',
79
+ interface: {
80
+ type: AXPWidgetsList.Editors.TextBox,
81
+ options: {
82
+ placeholder: '@financial-core:taxation.entities.tax-class.fields.title.placeholder',
83
+ },
84
+ },
85
+ },
86
+ validations: [{ rule: 'required' }],
87
+ },
88
+ {
89
+ name: 'description',
90
+ title: '@general:terms.common.description',
91
+ groupId: 'basic-info',
92
+ schema: {
93
+ dataType: 'string',
94
+ interface: {
95
+ type: AXPWidgetsList.Editors.LargeTextBox,
96
+ options: {
97
+ rows: 4,
98
+ placeholder: '@financial-core:taxation.entities.tax-class.fields.description.placeholder',
99
+ },
100
+ },
101
+ },
102
+ },
103
+ {
104
+ name: 'type',
105
+ title: '@financial-core:taxation.entities.tax-class.fields.type.title',
106
+ groupId: 'configuration',
107
+ schema: {
108
+ dataType: 'string',
109
+ interface: {
110
+ type: AXPWidgetsList.Editors.SelectBox,
111
+ options: {
112
+ valueField: 'value',
113
+ textField: 'text',
114
+ dataSource: [
115
+ { value: 'vat', text: '@financial-core:taxation.entities.tax-class.fields.type.options.vat' },
116
+ { value: 'sales', text: '@financial-core:taxation.entities.tax-class.fields.type.options.sales' },
117
+ {
118
+ value: 'withholding',
119
+ text: '@financial-core:taxation.entities.tax-class.fields.type.options.withholding',
120
+ },
121
+ { value: 'service', text: '@financial-core:taxation.entities.tax-class.fields.type.options.service' },
122
+ ],
123
+ },
124
+ },
125
+ },
126
+ validations: [{ rule: 'required' }],
127
+ },
128
+ {
129
+ name: 'defaultRate',
130
+ title: '@financial-core:taxation.entities.tax-class.fields.default-rate.title',
131
+ groupId: 'configuration',
132
+ schema: {
133
+ dataType: 'number',
134
+ interface: {
135
+ type: AXPWidgetsList.Editors.NumberBox,
136
+ options: {
137
+ minValue: 0,
138
+ maxValue: 100,
139
+ step: 0.1,
140
+ },
141
+ },
142
+ },
143
+ validations: [{ rule: 'required' }],
144
+ },
145
+ {
146
+ name: 'isCompound',
147
+ title: '@financial-core:taxation.entities.tax-class.fields.is-compound.title',
148
+ groupId: 'configuration',
149
+ schema: {
150
+ dataType: 'boolean',
151
+ interface: {
152
+ type: AXPWidgetsList.Editors.ToggleSwitch,
153
+ },
154
+ },
155
+ },
156
+ {
157
+ name: 'priority',
158
+ title: '@financial-core:taxation.entities.tax-class.fields.priority.title',
159
+ groupId: 'configuration',
160
+ schema: {
161
+ dataType: 'number',
162
+ interface: {
163
+ type: AXPWidgetsList.Editors.NumberBox,
164
+ options: {
165
+ minValue: 1,
166
+ step: 1,
167
+ },
168
+ },
169
+ },
170
+ },
171
+ ],
172
+ columns: [
173
+ { name: 'code', options: { width: '140px', order: 1 } },
174
+ { name: 'title', options: { width: '220px', order: 2 } },
175
+ { name: 'type', options: { width: '180px', order: 3 } },
176
+ { name: 'defaultRate', options: { width: '140px', order: 4 } },
177
+ ],
178
+ interfaces: {
179
+ master: {
180
+ create: {
181
+ sections,
182
+ properties: propertyLayouts,
183
+ },
184
+ update: {
185
+ sections,
186
+ properties: propertyLayouts,
187
+ },
188
+ single: {
189
+ title: '{{ title }}',
190
+ sections,
191
+ properties: propertyLayouts,
192
+ actions: [...entityMasterRecordActions()],
193
+ },
194
+ list: {
195
+ actions: [...entityMasterCrudActions()],
196
+ views: [
197
+ createAllQueryView({
198
+ sorts: [{ name: 'code', dir: 'asc' }],
199
+ }),
200
+ ],
201
+ },
202
+ },
203
+ },
204
+ };
205
+ return entityDef;
206
+ }
207
+ //#endregion
208
+
209
+ export { taxClassFactory };
210
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/tax-class/tax-class.entity.ts"],"sourcesContent":["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 taxClassFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'configuration', 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: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'type', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'defaultRate', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'isCompound', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.taxClass.name,\n title: RootConfig.entities.taxClass.title,\n icon: RootConfig.entities.taxClass.icon,\n formats: {\n individual: RootConfig.entities.taxClass.title,\n plural: RootConfig.entities.taxClass.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"type\") + \" - \" + context.eval(\"defaultRate\") + \"%\" }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],\n groups: [\n { id: 'basic-info', title: '@financial-core:taxation.entities.tax-class.groups.basic-info' },\n { id: 'configuration', title: '@financial-core:taxation.entities.tax-class.groups.configuration' },\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-class.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-class.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@financial-core:taxation.entities.tax-class.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'type',\n title: '@financial-core:taxation.entities.tax-class.fields.type.title',\n groupId: 'configuration',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'vat', text: '@financial-core:taxation.entities.tax-class.fields.type.options.vat' },\n { value: 'sales', text: '@financial-core:taxation.entities.tax-class.fields.type.options.sales' },\n {\n value: 'withholding',\n text: '@financial-core:taxation.entities.tax-class.fields.type.options.withholding',\n },\n { value: 'service', text: '@financial-core:taxation.entities.tax-class.fields.type.options.service' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'defaultRate',\n title: '@financial-core:taxation.entities.tax-class.fields.default-rate.title',\n groupId: 'configuration',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n maxValue: 100,\n step: 0.1,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'isCompound',\n title: '@financial-core:taxation.entities.tax-class.fields.is-compound.title',\n groupId: 'configuration',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'priority',\n title: '@financial-core:taxation.entities.tax-class.fields.priority.title',\n groupId: 'configuration',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 1,\n step: 1,\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: 'type', options: { width: '180px', order: 3 } },\n { name: 'defaultRate', options: { width: '140px', 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"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,eAAe,GAAA;AAEnC,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA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