@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,288 @@
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 paymentTermFactory() {
76
+ const sections = [
77
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
78
+ { id: 'schedule', 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: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
84
+ { name: 'netDueDays', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
85
+ { name: 'discountPercent', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
86
+ { name: 'discountDays', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
87
+ { name: 'gracePeriodDays', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
88
+ { name: 'autoRenew', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },
89
+ ];
90
+ const entityDef = {
91
+ module: RootConfig.module.name,
92
+ name: RootConfig.entities.paymentTerm.name,
93
+ title: RootConfig.entities.paymentTerm.title,
94
+ icon: RootConfig.entities.paymentTerm.icon,
95
+ formats: {
96
+ individual: RootConfig.entities.paymentTerm.title,
97
+ plural: RootConfig.entities.paymentTerm.titlePlural,
98
+ searchResult: {
99
+ title: '{{ title }}',
100
+ description: '{{ netDueDays }} days',
101
+ },
102
+ },
103
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
104
+ groups: [
105
+ { id: 'basic-info', title: '@financial-core:payments.entities.payment-term.groups.basic-info' },
106
+ { id: 'schedule', title: '@financial-core:payments.entities.payment-term.groups.schedule' },
107
+ ],
108
+ properties: [
109
+ {
110
+ name: 'id',
111
+ title: '@general:terms.common.id',
112
+ groupId: 'basic-info',
113
+ schema: {
114
+ dataType: 'uuid',
115
+ visible: false,
116
+ readonly: true,
117
+ unique: { enabled: true },
118
+ },
119
+ },
120
+ {
121
+ name: 'code',
122
+ title: '@general:terms.common.code',
123
+ groupId: 'basic-info',
124
+ options: {
125
+ sort: { enabled: true },
126
+ filter: {
127
+ advance: { enabled: true },
128
+ inline: { enabled: true },
129
+ },
130
+ },
131
+ schema: {
132
+ dataType: 'string',
133
+ interface: {
134
+ type: AXPWidgetsList.Editors.TextBox,
135
+ options: {
136
+ placeholder: '@financial-core:payments.entities.payment-term.fields.code.placeholder',
137
+ },
138
+ },
139
+ },
140
+ validations: [{ rule: 'required' }],
141
+ },
142
+ {
143
+ name: 'title',
144
+ title: '@general:terms.common.title',
145
+ groupId: 'basic-info',
146
+ schema: {
147
+ dataType: 'string',
148
+ interface: {
149
+ type: AXPWidgetsList.Editors.TextBox,
150
+ options: {
151
+ placeholder: '@financial-core:payments.entities.payment-term.fields.title.placeholder',
152
+ },
153
+ },
154
+ },
155
+ validations: [{ rule: 'required' }],
156
+ },
157
+ {
158
+ name: 'description',
159
+ title: '@general:terms.common.description',
160
+ groupId: 'basic-info',
161
+ schema: {
162
+ dataType: 'string',
163
+ interface: {
164
+ type: AXPWidgetsList.Editors.LargeTextBox,
165
+ options: {
166
+ rows: 4,
167
+ placeholder: '@financial-core:payments.entities.payment-term.fields.description.placeholder',
168
+ },
169
+ },
170
+ },
171
+ },
172
+ {
173
+ name: 'netDueDays',
174
+ title: '@financial-core:payments.entities.payment-term.fields.net-due-days.title',
175
+ groupId: 'schedule',
176
+ schema: {
177
+ dataType: 'number',
178
+ interface: {
179
+ type: AXPWidgetsList.Editors.NumberBox,
180
+ options: {
181
+ minValue: 0,
182
+ step: 1,
183
+ },
184
+ },
185
+ },
186
+ validations: [{ rule: 'required' }],
187
+ },
188
+ {
189
+ name: 'discountPercent',
190
+ title: '@financial-core:payments.entities.payment-term.fields.discount-percent.title',
191
+ groupId: 'schedule',
192
+ schema: {
193
+ dataType: 'number',
194
+ interface: {
195
+ type: AXPWidgetsList.Editors.NumberBox,
196
+ options: {
197
+ minValue: 0,
198
+ maxValue: 100,
199
+ step: 0.1,
200
+ },
201
+ },
202
+ },
203
+ },
204
+ {
205
+ name: 'discountDays',
206
+ title: '@financial-core:payments.entities.payment-term.fields.discount-days.title',
207
+ groupId: 'schedule',
208
+ schema: {
209
+ dataType: 'number',
210
+ interface: {
211
+ type: AXPWidgetsList.Editors.NumberBox,
212
+ options: {
213
+ minValue: 0,
214
+ step: 1,
215
+ },
216
+ },
217
+ },
218
+ },
219
+ {
220
+ name: 'gracePeriodDays',
221
+ title: '@financial-core:payments.entities.payment-term.fields.grace-period-days.title',
222
+ groupId: 'schedule',
223
+ schema: {
224
+ dataType: 'number',
225
+ interface: {
226
+ type: AXPWidgetsList.Editors.NumberBox,
227
+ options: {
228
+ minValue: 0,
229
+ step: 1,
230
+ },
231
+ },
232
+ },
233
+ },
234
+ {
235
+ name: 'autoRenew',
236
+ title: '@financial-core:payments.entities.payment-term.fields.auto-renew.title',
237
+ groupId: 'schedule',
238
+ schema: {
239
+ dataType: 'boolean',
240
+ interface: {
241
+ type: AXPWidgetsList.Editors.ToggleSwitch,
242
+ },
243
+ },
244
+ },
245
+ ],
246
+ columns: [
247
+ { name: 'code', options: { width: '140px', order: 1 } },
248
+ { name: 'title', options: { width: '240px', order: 2 } },
249
+ { name: 'netDueDays', options: { width: '140px', order: 3 } },
250
+ { name: 'discountPercent', options: { width: '160px', order: 4 } },
251
+ ],
252
+ interfaces: {
253
+ master: {
254
+ create: {
255
+ sections,
256
+ properties: propertyLayouts,
257
+ },
258
+ update: {
259
+ sections,
260
+ properties: propertyLayouts,
261
+ },
262
+ single: {
263
+ title: '{{ title }}',
264
+ sections,
265
+ properties: propertyLayouts,
266
+ actions: [...entityMasterRecordActions()],
267
+ },
268
+ list: {
269
+ actions: [...entityMasterCrudActions()],
270
+ views: [
271
+ createAllQueryView({
272
+ sorts: [{ name: 'code', dir: 'asc' }],
273
+ }),
274
+ ],
275
+ },
276
+ },
277
+ },
278
+ };
279
+ return entityDef;
280
+ }
281
+ //#endregion
282
+
283
+ /**
284
+ * Generated bundle index. Do not edit.
285
+ */
286
+
287
+ export { paymentTermFactory };
288
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/root-config.ts","../../../../libs/modules/financial-core/contracts/src/entities/payment-term/payment-term.entity.ts","../../../../libs/modules/financial-core/contracts/src/acorex-platform-module-financial-core-client-contracts-entities-payment-term.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 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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.payment-term';\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,C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AA,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;;AC5NA;;AAEG;;;;"}
@@ -0,0 +1,282 @@
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 taxClassFactory() {
76
+ const sections = [
77
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
78
+ { id: 'configuration', 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: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
84
+ { name: 'type', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
85
+ { name: 'defaultRate', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
86
+ { name: 'isCompound', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
87
+ { name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
88
+ ];
89
+ const entityDef = {
90
+ module: RootConfig.module.name,
91
+ name: RootConfig.entities.taxClass.name,
92
+ title: RootConfig.entities.taxClass.title,
93
+ icon: RootConfig.entities.taxClass.icon,
94
+ formats: {
95
+ individual: RootConfig.entities.taxClass.title,
96
+ plural: RootConfig.entities.taxClass.titlePlural,
97
+ searchResult: {
98
+ title: '{{ title }}',
99
+ description: '{{ context.eval("type") + " - " + context.eval("defaultRate") + "%" }}',
100
+ },
101
+ },
102
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
103
+ groups: [
104
+ { id: 'basic-info', title: '@financial-core:taxation.entities.tax-class.groups.basic-info' },
105
+ { id: 'configuration', title: '@financial-core:taxation.entities.tax-class.groups.configuration' },
106
+ ],
107
+ properties: [
108
+ {
109
+ name: 'id',
110
+ title: '@general:terms.common.id',
111
+ groupId: 'basic-info',
112
+ schema: {
113
+ dataType: 'uuid',
114
+ visible: false,
115
+ readonly: true,
116
+ unique: { enabled: true },
117
+ },
118
+ },
119
+ {
120
+ name: 'code',
121
+ title: '@general:terms.common.code',
122
+ groupId: 'basic-info',
123
+ options: {
124
+ sort: { enabled: true },
125
+ filter: {
126
+ advance: { enabled: true },
127
+ inline: { enabled: true },
128
+ },
129
+ },
130
+ schema: {
131
+ dataType: 'string',
132
+ interface: {
133
+ type: AXPWidgetsList.Editors.TextBox,
134
+ options: {
135
+ placeholder: '@financial-core:taxation.entities.tax-class.fields.code.placeholder',
136
+ },
137
+ },
138
+ },
139
+ validations: [{ rule: 'required' }],
140
+ },
141
+ {
142
+ name: 'title',
143
+ title: '@general:terms.common.title',
144
+ groupId: 'basic-info',
145
+ schema: {
146
+ dataType: 'string',
147
+ interface: {
148
+ type: AXPWidgetsList.Editors.TextBox,
149
+ options: {
150
+ placeholder: '@financial-core:taxation.entities.tax-class.fields.title.placeholder',
151
+ },
152
+ },
153
+ },
154
+ validations: [{ rule: 'required' }],
155
+ },
156
+ {
157
+ name: 'description',
158
+ title: '@general:terms.common.description',
159
+ groupId: 'basic-info',
160
+ schema: {
161
+ dataType: 'string',
162
+ interface: {
163
+ type: AXPWidgetsList.Editors.LargeTextBox,
164
+ options: {
165
+ rows: 4,
166
+ placeholder: '@financial-core:taxation.entities.tax-class.fields.description.placeholder',
167
+ },
168
+ },
169
+ },
170
+ },
171
+ {
172
+ name: 'type',
173
+ title: '@financial-core:taxation.entities.tax-class.fields.type.title',
174
+ groupId: 'configuration',
175
+ schema: {
176
+ dataType: 'string',
177
+ interface: {
178
+ type: AXPWidgetsList.Editors.SelectBox,
179
+ options: {
180
+ valueField: 'value',
181
+ textField: 'text',
182
+ dataSource: [
183
+ { value: 'vat', text: '@financial-core:taxation.entities.tax-class.fields.type.options.vat' },
184
+ { value: 'sales', text: '@financial-core:taxation.entities.tax-class.fields.type.options.sales' },
185
+ {
186
+ value: 'withholding',
187
+ text: '@financial-core:taxation.entities.tax-class.fields.type.options.withholding',
188
+ },
189
+ { value: 'service', text: '@financial-core:taxation.entities.tax-class.fields.type.options.service' },
190
+ ],
191
+ },
192
+ },
193
+ },
194
+ validations: [{ rule: 'required' }],
195
+ },
196
+ {
197
+ name: 'defaultRate',
198
+ title: '@financial-core:taxation.entities.tax-class.fields.default-rate.title',
199
+ groupId: 'configuration',
200
+ schema: {
201
+ dataType: 'number',
202
+ interface: {
203
+ type: AXPWidgetsList.Editors.NumberBox,
204
+ options: {
205
+ minValue: 0,
206
+ maxValue: 100,
207
+ step: 0.1,
208
+ },
209
+ },
210
+ },
211
+ validations: [{ rule: 'required' }],
212
+ },
213
+ {
214
+ name: 'isCompound',
215
+ title: '@financial-core:taxation.entities.tax-class.fields.is-compound.title',
216
+ groupId: 'configuration',
217
+ schema: {
218
+ dataType: 'boolean',
219
+ interface: {
220
+ type: AXPWidgetsList.Editors.ToggleSwitch,
221
+ },
222
+ },
223
+ },
224
+ {
225
+ name: 'priority',
226
+ title: '@financial-core:taxation.entities.tax-class.fields.priority.title',
227
+ groupId: 'configuration',
228
+ schema: {
229
+ dataType: 'number',
230
+ interface: {
231
+ type: AXPWidgetsList.Editors.NumberBox,
232
+ options: {
233
+ minValue: 1,
234
+ step: 1,
235
+ },
236
+ },
237
+ },
238
+ },
239
+ ],
240
+ columns: [
241
+ { name: 'code', options: { width: '140px', order: 1 } },
242
+ { name: 'title', options: { width: '220px', order: 2 } },
243
+ { name: 'type', options: { width: '180px', order: 3 } },
244
+ { name: 'defaultRate', options: { width: '140px', order: 4 } },
245
+ ],
246
+ interfaces: {
247
+ master: {
248
+ create: {
249
+ sections,
250
+ properties: propertyLayouts,
251
+ },
252
+ update: {
253
+ sections,
254
+ properties: propertyLayouts,
255
+ },
256
+ single: {
257
+ title: '{{ title }}',
258
+ sections,
259
+ properties: propertyLayouts,
260
+ actions: [...entityMasterRecordActions()],
261
+ },
262
+ list: {
263
+ actions: [...entityMasterCrudActions()],
264
+ views: [
265
+ createAllQueryView({
266
+ sorts: [{ name: 'code', dir: 'asc' }],
267
+ }),
268
+ ],
269
+ },
270
+ },
271
+ },
272
+ };
273
+ return entityDef;
274
+ }
275
+ //#endregion
276
+
277
+ /**
278
+ * Generated bundle index. Do not edit.
279
+ */
280
+
281
+ export { taxClassFactory };
282
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/root-config.ts","../../../../libs/modules/financial-core/contracts/src/entities/tax-class/tax-class.entity.ts","../../../../libs/modules/financial-core/contracts/src/acorex-platform-module-financial-core-client-contracts-entities-tax-class.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 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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.tax-class';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACX,IAAA,IAAI,E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