@silexpert/core 1.1.61 → 1.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/resources/GeneralLedger.d.ts +3 -1
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js +6 -0
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/Society.d.ts +1 -0
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/api/resources/User.d.ts +8 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +9 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +38 -3
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +42 -2
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BankCollectingState.d.ts +4 -1
- package/es/types/Enum/BankCollectingState.d.ts.map +1 -1
- package/es/types/Enum/BankCollectingState.js +16 -1
- package/es/types/Enum/BankCollectingState.js.map +1 -1
- package/es/types/Enum/Supervision.d.ts +8 -1
- package/es/types/Enum/Supervision.d.ts.map +1 -1
- package/es/types/Enum/Supervision.js +51 -0
- package/es/types/Enum/Supervision.js.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +13 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +28 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +2 -0
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.d.ts +4 -0
- package/es/types/Interface/api/user/QuerySocieties.d.ts.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.js +10 -0
- package/es/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/es/utils/vat/3310/century23.d.ts.map +1 -1
- package/es/utils/vat/3310/century23.js +28 -31
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/es/utils/vat/3514/century23.d.ts.map +1 -1
- package/es/utils/vat/3514/century23.js +28 -31
- package/es/utils/vat/3514/century23.js.map +1 -1
- package/es/utils/vat/3517/century23.d.ts.map +1 -1
- package/es/utils/vat/3517/century23.js +99 -107
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/es/utils/vat/3519/century23.d.ts.map +1 -1
- package/es/utils/vat/3519/century23.js +69 -70
- package/es/utils/vat/3519/century23.js.map +1 -1
- package/js/api/resources/GeneralLedger.js +10 -0
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Society.js +3 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources/User.js +11 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +37 -2
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BankCollectingState.js +18 -4
- package/js/types/Enum/BankCollectingState.js.map +1 -1
- package/js/types/Enum/Supervision.js +42 -0
- package/js/types/Enum/Supervision.js.map +1 -1
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +18 -0
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/js/types/Interface/api/user/QuerySocieties.js +6 -1
- package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/js/utils/vat/3310/century23.js +23 -28
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/js/utils/vat/3514/century23.js +22 -27
- package/js/utils/vat/3514/century23.js.map +1 -1
- package/js/utils/vat/3517/century23.js +85 -95
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/js/utils/vat/3519/century23.js +60 -65
- package/js/utils/vat/3519/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/GeneralLedger.ts +9 -1
- package/ts/api/resources/Society.ts +4 -0
- package/ts/api/resources/User.ts +13 -1
- package/ts/types/Enum/BalanceSheet.ts +42 -2
- package/ts/types/Enum/BankCollectingState.ts +17 -1
- package/ts/types/Enum/Supervision.ts +53 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +25 -0
- package/ts/types/Interface/api/statistic/ExitRequest.ts +3 -1
- package/ts/types/Interface/api/user/QuerySocieties.ts +9 -0
- package/ts/utils/vat/3310/century23.ts +28 -31
- package/ts/utils/vat/3514/century23.ts +28 -31
- package/ts/utils/vat/3517/century23.ts +98 -109
- package/ts/utils/vat/3519/century23.ts +68 -69
|
@@ -10,7 +10,7 @@ var _utils = require("../utils");
|
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
12
|
function getCerfa3519Century23RegistrationFields(data) {
|
|
13
|
-
var _a, _b, _c, _d;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
14
14
|
const comment = (0, _utils.textFormatting)(data.comment);
|
|
15
15
|
return [{
|
|
16
16
|
name: '3519',
|
|
@@ -28,28 +28,25 @@ function getCerfa3519Century23RegistrationFields(data) {
|
|
|
28
28
|
value: data.refund.amount
|
|
29
29
|
}, {
|
|
30
30
|
key: 'DG',
|
|
31
|
-
|
|
32
|
-
isMultiple: false,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
isMultiple: false,
|
|
51
|
-
description: 'Lieu',
|
|
52
|
-
value: (0, _utils.textFormatting)(data.refund.place, 35)
|
|
31
|
+
value: null,
|
|
32
|
+
isMultiple: false,
|
|
33
|
+
tags: [{
|
|
34
|
+
tag: 'Designation',
|
|
35
|
+
description: 'Soussigné',
|
|
36
|
+
value: (0, _utils.textFormatting)(data.refund.name, 35)
|
|
37
|
+
}, {
|
|
38
|
+
tag: 'DesignationSuite1',
|
|
39
|
+
description: 'Titre',
|
|
40
|
+
value: (0, _utils.textFormatting)(data.refund.quality, 35)
|
|
41
|
+
}, {
|
|
42
|
+
tag: 'DesignationSuite2',
|
|
43
|
+
description: 'Qualité',
|
|
44
|
+
value: (0, _utils.textFormatting)(data.refund.quality, 35)
|
|
45
|
+
}, {
|
|
46
|
+
tag: 'AdresseVille',
|
|
47
|
+
description: 'Lieu',
|
|
48
|
+
value: (0, _utils.textFormatting)(data.refund.place, 35)
|
|
49
|
+
}]
|
|
53
50
|
}, {
|
|
54
51
|
key: 'FK',
|
|
55
52
|
tag: 'Valeur',
|
|
@@ -58,76 +55,74 @@ function getCerfa3519Century23RegistrationFields(data) {
|
|
|
58
55
|
value: data.declaration.shouldCredit ? 'X' : null
|
|
59
56
|
}, {
|
|
60
57
|
key: 'AA',
|
|
61
|
-
tag: 'Iban',
|
|
62
|
-
isMultiple: false,
|
|
63
|
-
description: 'IBAN',
|
|
64
|
-
value: data.bankAccount.iban ? (_a = (0, _utils.textFormatting)(data.bankAccount.iban.toUpperCase())) === null || _a === void 0 ? void 0 : _a.replace(/\s/g, '') : null
|
|
65
|
-
}, {
|
|
66
|
-
key: 'AA',
|
|
67
|
-
tag: 'Bic',
|
|
68
58
|
isMultiple: false,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
59
|
+
value: null,
|
|
60
|
+
tags: [{
|
|
61
|
+
tag: 'Iban',
|
|
62
|
+
description: 'IBAN',
|
|
63
|
+
value: 'DYNAMIC_IBAN'
|
|
64
|
+
}, {
|
|
65
|
+
tag: 'Bic',
|
|
66
|
+
description: 'BIC',
|
|
67
|
+
value: 'DYNAMIC_BIC'
|
|
68
|
+
}
|
|
69
|
+
// {
|
|
70
|
+
// tag: 'TitulaireDesignation',
|
|
71
|
+
// description: 'Désignation du titulaire',
|
|
72
|
+
// value: null,
|
|
73
|
+
// },
|
|
74
|
+
]
|
|
77
75
|
}, {
|
|
78
76
|
key: 'DI',
|
|
79
77
|
tag: 'Valeur',
|
|
80
78
|
isMultiple: false,
|
|
81
79
|
description: 'Première demande',
|
|
82
|
-
value: data.refund.firstTime.is ? 'X' : null
|
|
80
|
+
value: ((_a = data.refund.firstTime) === null || _a === void 0 ? void 0 : _a.is) ? 'X' : null
|
|
83
81
|
}, {
|
|
84
82
|
key: 'DL',
|
|
85
83
|
tag: 'Valeur',
|
|
86
84
|
isMultiple: false,
|
|
87
85
|
description: 'Création le',
|
|
88
|
-
value: data.refund.firstTime.is && data.refund.firstTime.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null
|
|
86
|
+
value: ((_b = data.refund.firstTime) === null || _b === void 0 ? void 0 : _b.is) && ((_c = data.refund.firstTime) === null || _c === void 0 ? void 0 : _c.date) ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null
|
|
89
87
|
}, {
|
|
90
88
|
key: 'DJ',
|
|
91
89
|
tag: 'Valeur',
|
|
92
90
|
isMultiple: false,
|
|
93
91
|
description: 'Cession, cessation, décès, entrée dans un groupe TVA',
|
|
94
|
-
value: data.refund.closing.is ? 'X' : null
|
|
92
|
+
value: ((_d = data.refund.closing) === null || _d === void 0 ? void 0 : _d.is) ? 'X' : null
|
|
95
93
|
}, {
|
|
96
94
|
key: 'DM',
|
|
97
95
|
tag: 'Valeur',
|
|
98
96
|
isMultiple: false,
|
|
99
97
|
description: 'Le :',
|
|
100
|
-
value: data.refund.closing.is && data.refund.closing.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null
|
|
98
|
+
value: ((_e = data.refund.closing) === null || _e === void 0 ? void 0 : _e.is) && ((_f = data.refund.closing) === null || _f === void 0 ? void 0 : _f.date) ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null
|
|
101
99
|
}, {
|
|
102
100
|
key: 'DK',
|
|
103
101
|
tag: 'Valeur',
|
|
104
102
|
isMultiple: false,
|
|
105
103
|
description: 'Autres',
|
|
106
|
-
value: data.refund.other ? 'X' : null
|
|
104
|
+
value: ((_g = data.refund.other) === null || _g === void 0 ? void 0 : _g.is) ? 'X' : null
|
|
107
105
|
}, {
|
|
108
106
|
key: 'FJ',
|
|
109
|
-
|
|
110
|
-
isMultiple: false,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
isMultiple: false,
|
|
129
|
-
description: 'Commentaires',
|
|
130
|
-
value: comment && ((_d = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _d !== void 0 ? _d : 0) > 1536 ? (0, _utils.textFormatting)(comment.slice(1536, 2048)) : null
|
|
107
|
+
value: null,
|
|
108
|
+
isMultiple: false,
|
|
109
|
+
tags: [{
|
|
110
|
+
tag: 'TexteLibre1',
|
|
111
|
+
description: 'Commentaires',
|
|
112
|
+
value: (0, _utils.textFormatting)(comment, 512)
|
|
113
|
+
}, {
|
|
114
|
+
tag: 'TexteLibre2',
|
|
115
|
+
description: 'Commentaires',
|
|
116
|
+
value: comment && ((_h = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _h !== void 0 ? _h : 0) > 512 ? (0, _utils.textFormatting)(comment.slice(512, 1024)) : null
|
|
117
|
+
}, {
|
|
118
|
+
tag: 'TexteLibre3',
|
|
119
|
+
description: 'Commentaires',
|
|
120
|
+
value: comment && ((_j = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _j !== void 0 ? _j : 0) > 1024 ? (0, _utils.textFormatting)(comment.slice(1024, 1536)) : null
|
|
121
|
+
}, {
|
|
122
|
+
tag: 'TexteLibre4',
|
|
123
|
+
description: 'Commentaires',
|
|
124
|
+
value: comment && ((_k = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _k !== void 0 ? _k : 0) > 1536 ? (0, _utils.textFormatting)(comment.slice(1536, 2048)) : null
|
|
125
|
+
}]
|
|
131
126
|
}]
|
|
132
127
|
}];
|
|
133
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"century23.js","names":["getCerfa3519Century23RegistrationFields","_dayjs","require","dayjs","_interopRequireWildcard","_utils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","data","comment","textFormatting","name","fields","tag","isMultiple","description","value","declaration","nationality","isFrench","refund","amount","quality","place","shouldCredit","bankAccount","iban","_a","toUpperCase","replace","bic","firstTime","is","date","format","closing","other","_b","length","slice","_c","_d"],"sources":["../../../../ts/utils/vat/3519/century23.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { Cerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';\nimport { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';\nimport { textFormatting } from '../utils';\n\nexport function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): AsponeFormFields {\n const comment = textFormatting(data.comment);\n\n return [{\n name: '3519',\n fields: [\n {\n key: 'DD',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Entreprise française',\n value: data.declaration.nationality.isFrench ? 'X' : null,\n },\n {\n key: 'DN',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Remboursement demandé',\n value: data.refund.amount,\n },\n {\n key: 'DG',\n tag: 'Designation',\n isMultiple: false,\n description: 'Soussigné',\n value: textFormatting(data.refund.name, 35),\n },\n {\n key: 'DG',\n tag: 'DesignationSuite1',\n isMultiple: false,\n description: 'Titre',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n key: 'DG',\n tag: 'DesignationSuite2',\n isMultiple: false,\n description: 'Qualité',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n key: 'DG',\n tag: 'AdresseVille',\n isMultiple: false,\n description: 'Lieu',\n value: textFormatting(data.refund.place, 35),\n },\n {\n key: 'FK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'A créditer au compte désigné',\n value: data.declaration.shouldCredit ? 'X' : null,\n },\n {\n key: 'AA',\n tag: 'Iban',\n isMultiple: false,\n description: 'IBAN',\n value: data.bankAccount.iban ? textFormatting(data.bankAccount.iban.toUpperCase())?.replace(/\\s/g, '') : null,\n },\n {\n key: 'AA',\n tag: 'Bic',\n isMultiple: false,\n description: 'BIC',\n value: data.bankAccount.bic ? textFormatting(data.bankAccount.bic.toUpperCase()) : null,\n },\n {\n key: 'AA',\n tag: 'TitulaireDesignation',\n isMultiple: false,\n description: 'Désignation du titulaire',\n value: null,\n },\n {\n key: 'DI',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Première demande',\n value: data.refund.firstTime.is ? 'X' : null,\n },\n {\n key: 'DL',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Création le',\n value: data.refund.firstTime.is && data.refund.firstTime.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null,\n },\n {\n key: 'DJ',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Cession, cessation, décès, entrée dans un groupe TVA',\n value: data.refund.closing.is ? 'X' : null,\n },\n {\n key: 'DM',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Le :',\n value: data.refund.closing.is && data.refund.closing.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null,\n },\n {\n key: 'DK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Autres',\n value: data.refund.other ? 'X' : null,\n },\n {\n key: 'FJ',\n tag: 'TexteLibre1',\n isMultiple: false,\n description: 'Commentaires',\n value: textFormatting(comment, 512),\n },\n {\n key: 'FJ',\n tag: 'TexteLibre2',\n isMultiple: false,\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,\n },\n {\n key: 'FJ',\n tag: 'TexteLibre3',\n isMultiple: false,\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,\n },\n {\n key: 'FJ',\n tag: 'TexteLibre4',\n isMultiple: false,\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,\n },\n ],\n }];\n}"],"mappings":";;;;;QAKgBA,uCAAuC,GAAvCA,uCAAuC;AALvD,IAAAC,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CAAAH,MAAA;AAGjB,IAAAI,MAAA,GAAAH,OAAA;AAA0C,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,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C8B,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,GAAG;KAC7F,EACD;MACErC,GAAG,EAAE,IAAI;MACTW,GAAG,EAAE,aAAa;MAClBC,UAAU,EAAE,KAAK;MACjBC,WAAW,EAAE,cAAc;MAC3BC,KAAK,EAAEP,OAAO,IAAI,CAAC,CAAA+B,EAAA,GAAA/B,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE6B,MAAM,cAAAE,EAAA,cAAAA,EAAA,GAAI,CAAC,IAAI,IAAI,GAAG,IAAA9B,qBAAc,EAACD,OAAO,CAAC8B,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG;KAC/F,EACD;MACErC,GAAG,EAAE,IAAI;MACTW,GAAG,EAAE,aAAa;MAClBC,UAAU,EAAE,KAAK;MACjBC,WAAW,EAAE,cAAc;MAC3BC,KAAK,EAAEP,OAAO,IAAI,CAAC,CAAAgC,EAAA,GAAAhC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE6B,MAAM,cAAAG,EAAA,cAAAA,EAAA,GAAI,CAAC,IAAI,IAAI,GAAG,IAAA/B,qBAAc,EAACD,OAAO,CAAC8B,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG;KAC/F;GAEJ,CAAC;AACJ"}
|
|
1
|
+
{"version":3,"file":"century23.js","names":["getCerfa3519Century23RegistrationFields","_dayjs","require","dayjs","_interopRequireWildcard","_utils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","data","comment","textFormatting","name","fields","tag","isMultiple","description","value","declaration","nationality","isFrench","refund","amount","tags","quality","place","shouldCredit","_a","firstTime","is","_b","_c","date","format","_d","closing","_e","_f","_g","other","_h","length","slice","_j","_k"],"sources":["../../../../ts/utils/vat/3519/century23.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { Cerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';\nimport { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';\nimport { textFormatting } from '../utils';\n\nexport function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): AsponeFormFields {\n const comment = textFormatting(data.comment);\n\n return [{\n name: '3519',\n fields: [\n {\n key: 'DD',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Entreprise française',\n value: data.declaration.nationality.isFrench ? 'X' : null,\n },\n {\n key: 'DN',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Remboursement demandé',\n value: data.refund.amount,\n },\n {\n key: 'DG',\n value: null,\n isMultiple: false,\n tags: [\n {\n tag: 'Designation',\n description: 'Soussigné',\n value: textFormatting(data.refund.name, 35),\n },\n {\n tag: 'DesignationSuite1',\n description: 'Titre',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n tag: 'DesignationSuite2',\n description: 'Qualité',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n tag: 'AdresseVille',\n description: 'Lieu',\n value: textFormatting(data.refund.place, 35),\n },\n ],\n },\n {\n key: 'FK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'A créditer au compte désigné',\n value: data.declaration.shouldCredit ? 'X' : null,\n },\n {\n key: 'AA',\n isMultiple: false,\n value: null,\n tags: [\n {\n tag: 'Iban',\n description: 'IBAN',\n value: 'DYNAMIC_IBAN',\n },\n {\n tag: 'Bic',\n description: 'BIC',\n value: 'DYNAMIC_BIC',\n },\n // {\n // tag: 'TitulaireDesignation',\n // description: 'Désignation du titulaire',\n // value: null,\n // },\n ],\n },\n {\n key: 'DI',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Première demande',\n value: data.refund.firstTime?.is ? 'X' : null,\n },\n {\n key: 'DL',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Création le',\n value: data.refund.firstTime?.is && data.refund.firstTime?.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null,\n },\n {\n key: 'DJ',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Cession, cessation, décès, entrée dans un groupe TVA',\n value: data.refund.closing?.is ? 'X' : null,\n },\n {\n key: 'DM',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Le :',\n value: data.refund.closing?.is && data.refund.closing?.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null,\n },\n {\n key: 'DK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Autres',\n value: data.refund.other?.is ? 'X' : null,\n },\n {\n key: 'FJ',\n value: null,\n isMultiple: false,\n tags: [\n {\n tag: 'TexteLibre1',\n description: 'Commentaires',\n value: textFormatting(comment, 512),\n },\n {\n tag: 'TexteLibre2',\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,\n },\n {\n tag: 'TexteLibre3',\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,\n },\n {\n tag: 'TexteLibre4',\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,\n },\n ],\n },\n ],\n }];\n}"],"mappings":";;;;;QAKgBA,uCAAuC,GAAvCA,uCAAuC;AALvD,IAAAC,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CAAAH,MAAA;AAGjB,IAAAI,MAAA,GAAAH,OAAA;AAA0C,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAA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K,EAAEP,OAAO,IAAI,CAAC,CAAAkC,EAAA,GAAAlC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE+B,MAAM,cAAAG,EAAA,cAAAA,EAAA,GAAI,CAAC,IAAI,IAAI,GAAG,IAAAjC,qBAAc,EAACD,OAAO,CAACgC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG;OAC/F;KAEJ;GAEJ,CAAC;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.64",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary,
|
|
2
|
+
BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary,
|
|
3
3
|
} from '../../types';
|
|
4
4
|
import { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';
|
|
5
5
|
import { Resource } from '../Resource';
|
|
@@ -60,4 +60,12 @@ export class GeneralLedger extends Resource {
|
|
|
60
60
|
getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {
|
|
61
61
|
return this.axios.$get('/generalLedger/auxiliary', { params });
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
getAuxiliarySummaries(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>> {
|
|
65
|
+
return this.axios.$get('/general-ledger/auxiliary/summaries', { params });
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<IGeneralLedgerThirdParty> {
|
|
69
|
+
return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });
|
|
70
|
+
}
|
|
63
71
|
}
|
|
@@ -95,4 +95,8 @@ export class Society extends Resource {
|
|
|
95
95
|
getAllMissingInformations(id: number): Promise<ReadInvalidFieldState[]> {
|
|
96
96
|
return this.axios.$get(`/society/${id}/informations-statements`);
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
getOwner(id: number): Promise<IUser> {
|
|
100
|
+
return this.axios.$get(`/societies/${id}/owner`);
|
|
101
|
+
}
|
|
98
102
|
}
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles,
|
|
3
|
+
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class User extends Resource {
|
|
@@ -56,13 +56,25 @@ export class User extends Resource {
|
|
|
56
56
|
calendarSelectableTeammates(): Promise<IUser[]> {
|
|
57
57
|
return this.axios.$get('user/calendar-selectable-teammates');
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated not securised ! please use getAllSocieties()
|
|
61
|
+
*/
|
|
59
62
|
societies(params: QuerySocieties): Promise<ISociety[]> {
|
|
60
63
|
return this.axios.$get('user/societies', { params });
|
|
61
64
|
}
|
|
65
|
+
|
|
66
|
+
getAllSocieties(id: number, params: QueryUserSociety): Promise<ISociety[]> {
|
|
67
|
+
return this.axios.$get(`/users/${id}/societies`, { params });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated not securised ! please use society.getOwner()
|
|
72
|
+
*/
|
|
62
73
|
ownerSociety(idSociety: number): Promise<IUser> {
|
|
63
74
|
// TODO: Revoir l'endpoint non conventionnel
|
|
64
75
|
return this.axios.$get(`user/${idSociety}/owner`);
|
|
65
76
|
}
|
|
77
|
+
|
|
66
78
|
update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {
|
|
67
79
|
return this.axios.$put(`user/${id}`, params);
|
|
68
80
|
}
|
|
@@ -21,6 +21,11 @@ export enum BalanceSheetState {
|
|
|
21
21
|
INVOICING_IN_PROGRESS = 16,
|
|
22
22
|
INVOICING_REFUSED = 17,
|
|
23
23
|
REFUSED_BY_CLIENT = 18,
|
|
24
|
+
ACCEPTED_BY_CLIENT_DEFAULT = 19,
|
|
25
|
+
ACCEPTED_BY_SIE_DEFAULT = 20,
|
|
26
|
+
REFUSED_BY_SIE_DEFAULT = 21,
|
|
27
|
+
SENDED_TO_SIE_DEFAULT = 22,
|
|
28
|
+
FIX_IN_PROGRESS = 23,
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export const BalanceSheetDetails = [
|
|
@@ -137,7 +142,7 @@ export const BalanceSheetDetails = [
|
|
|
137
142
|
text: 'Impayé',
|
|
138
143
|
value: BalanceSheetState.UNPAID,
|
|
139
144
|
color: 'error darken-2',
|
|
140
|
-
|
|
145
|
+
textColor: 'error--text text--darken-2',
|
|
141
146
|
key: 'unpaid',
|
|
142
147
|
forRoles: [['front_office', 'manager'], ['front_office_express', 'manager'], ['customer_success'], ['facturation']],
|
|
143
148
|
},
|
|
@@ -159,9 +164,44 @@ export const BalanceSheetDetails = [
|
|
|
159
164
|
text: 'Facturation refusée',
|
|
160
165
|
value: BalanceSheetState.INVOICING_REFUSED,
|
|
161
166
|
color: 'error darken-2',
|
|
162
|
-
|
|
167
|
+
textColor: 'error--text text--darken-2',
|
|
163
168
|
forRoles: [['facturation']],
|
|
164
169
|
},
|
|
170
|
+
{
|
|
171
|
+
text: 'Accepté client par défaut',
|
|
172
|
+
value: BalanceSheetState.ACCEPTED_BY_CLIENT_DEFAULT,
|
|
173
|
+
color: 'green darken-2',
|
|
174
|
+
textColor: 'green--text',
|
|
175
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
text: 'Accepté SIE par défaut',
|
|
179
|
+
value: BalanceSheetState.ACCEPTED_BY_SIE_DEFAULT,
|
|
180
|
+
color: 'green darken-2',
|
|
181
|
+
colorText: 'green--text',
|
|
182
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
text: 'Envoyé SIE par défaut',
|
|
186
|
+
value: BalanceSheetState.SENDED_TO_SIE_DEFAULT,
|
|
187
|
+
color: 'blue lighten-3',
|
|
188
|
+
textColor: 'blue--text text--lighten-3',
|
|
189
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
text: 'Refus SIE par défaut',
|
|
193
|
+
value: BalanceSheetState.REFUSED_BY_SIE_DEFAULT,
|
|
194
|
+
color: 'error darken-2',
|
|
195
|
+
colorText: 'error--text text--darken-2',
|
|
196
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
text: 'Correctif en cours',
|
|
200
|
+
value: BalanceSheetState.FIX_IN_PROGRESS,
|
|
201
|
+
color: 'blue darken-4',
|
|
202
|
+
textColor: 'blue--text',
|
|
203
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
204
|
+
},
|
|
165
205
|
] as const;
|
|
166
206
|
|
|
167
207
|
export type BalanceSheetType = 'active' | 'passive';
|
|
@@ -3,22 +3,38 @@ export enum BankCollectingState {
|
|
|
3
3
|
PENDING_COLLECTION = 2,
|
|
4
4
|
INVOICED = 3,
|
|
5
5
|
REFUSED_INVOICE = 4,
|
|
6
|
+
UNPAID = 5,
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export const BankCollectingStateList = [
|
|
9
10
|
{
|
|
10
11
|
id: BankCollectingState.INVOICE_IN_PROGRESS,
|
|
11
12
|
label: 'Facturation en cours',
|
|
13
|
+
color: 'yellow darken-3',
|
|
14
|
+
textColor: 'yellow--text text--darken-1',
|
|
12
15
|
},
|
|
13
16
|
{
|
|
14
17
|
id: BankCollectingState.PENDING_COLLECTION,
|
|
15
18
|
label: 'Encaissement en att.',
|
|
19
|
+
color: 'yellow darken-3',
|
|
20
|
+
textColor: 'yellow--text text--darken-1',
|
|
16
21
|
},
|
|
17
22
|
{
|
|
18
23
|
id: BankCollectingState.INVOICED,
|
|
19
24
|
label: 'Facturé et encaissé',
|
|
25
|
+
color: 'green darken-4',
|
|
26
|
+
textColor: 'green--text ',
|
|
20
27
|
},
|
|
21
28
|
{
|
|
22
29
|
id: BankCollectingState.REFUSED_INVOICE,
|
|
23
30
|
label: 'Facturation refusée',
|
|
24
|
-
|
|
31
|
+
color: 'red lighten-2',
|
|
32
|
+
textColor: 'red--text red--lighten-3',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: BankCollectingState.UNPAID,
|
|
36
|
+
label: 'Impayé',
|
|
37
|
+
color: 'red lighten-2',
|
|
38
|
+
textColor: 'red--text red--lighten-3',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -6,4 +6,56 @@ export enum Supervision {
|
|
|
6
6
|
ATTEST_REFUSED = 8,
|
|
7
7
|
ATTEST_WITH_OBSERVATIONS = 9,
|
|
8
8
|
TO_REVIEW = 10,
|
|
9
|
-
|
|
9
|
+
SUPERVISION_WAITING = 11,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const SupervisionStateList = [
|
|
13
|
+
{
|
|
14
|
+
id: Supervision.WAITING,
|
|
15
|
+
label: 'En attente',
|
|
16
|
+
color: 'grey',
|
|
17
|
+
textColor: 'grey--text',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: Supervision.SIGNED,
|
|
21
|
+
label: 'Signé',
|
|
22
|
+
color: 'green darken-1',
|
|
23
|
+
textColor: 'green--text text--darken-1',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: Supervision.TO_ATTEST,
|
|
27
|
+
label: 'A attesté',
|
|
28
|
+
color: 'yellow darken-3',
|
|
29
|
+
textColor: 'yellow--text text--darken-1',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: Supervision.ATTESTED,
|
|
33
|
+
label: 'Attesté',
|
|
34
|
+
color: 'green darken-1',
|
|
35
|
+
textColor: 'green--text text--darken-1',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: Supervision.ATTEST_REFUSED,
|
|
39
|
+
label: 'Attesté avec refus',
|
|
40
|
+
color: 'green darken-1',
|
|
41
|
+
textColor: 'green--text text--darken-1',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: Supervision.ATTEST_WITH_OBSERVATIONS,
|
|
45
|
+
label: 'Attesté avec observations',
|
|
46
|
+
color: 'green darken-1',
|
|
47
|
+
textColor: 'green--text text--darken-1',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: Supervision.TO_REVIEW,
|
|
51
|
+
label: 'A revoir',
|
|
52
|
+
color: 'red lighten-2',
|
|
53
|
+
textColor: 'red--text red--lighten-3',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: Supervision.SUPERVISION_WAITING,
|
|
57
|
+
label: 'En cours de supervision',
|
|
58
|
+
color: 'yellow darken-3',
|
|
59
|
+
textColor: 'yellow--text text--darken-1',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IsDateString, IsNumber } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
1
3
|
import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
|
|
2
4
|
|
|
3
5
|
export interface IGeneralLedgerThirdParty {
|
|
@@ -9,4 +11,27 @@ export interface IGeneralLedgerThirdParty {
|
|
|
9
11
|
entries: IGeneralLedgerAccountingEntry[];
|
|
10
12
|
identifier: string;
|
|
11
13
|
initialBalance: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ReadGeneralLedgerSummary {
|
|
17
|
+
idThirdParty: number;
|
|
18
|
+
name: string;
|
|
19
|
+
credit: number;
|
|
20
|
+
debit: number;
|
|
21
|
+
balance: number;
|
|
22
|
+
identifier: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class QueryGeneralLedgerThirdParty {
|
|
26
|
+
@ApiProperty()
|
|
27
|
+
@IsDateString()
|
|
28
|
+
startDate: string;
|
|
29
|
+
|
|
30
|
+
@ApiProperty()
|
|
31
|
+
@IsDateString()
|
|
32
|
+
endDate: string;
|
|
33
|
+
|
|
34
|
+
@ApiProperty()
|
|
35
|
+
@IsNumber()
|
|
36
|
+
idSociety: number;
|
|
12
37
|
}
|
|
@@ -3,7 +3,8 @@ import { ISociety } from '../../models/ISociety';
|
|
|
3
3
|
export interface CountLateToDoDone {
|
|
4
4
|
late: string[],
|
|
5
5
|
toDo: string[],
|
|
6
|
-
done: string[]
|
|
6
|
+
done: string[],
|
|
7
|
+
doneByDefault?: string[],
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface Count {
|
|
@@ -88,6 +89,7 @@ export interface StatisticBalanceSheetDetail {
|
|
|
88
89
|
toRevised: string[],
|
|
89
90
|
toSupervised: string[],
|
|
90
91
|
acceptedSIE: string[],
|
|
92
|
+
acceptedSIEByDefault: string[],
|
|
91
93
|
ARCAttested: string[],
|
|
92
94
|
ARCNoAttested: string[],
|
|
93
95
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
1
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { SubscriptionType } from '../../../Enum/SubscriptionType';
|
|
2
4
|
|
|
3
5
|
export class QuerySocieties {
|
|
4
6
|
@ApiProperty({
|
|
@@ -15,4 +17,11 @@ export class QuerySocieties {
|
|
|
15
17
|
example: 100,
|
|
16
18
|
})
|
|
17
19
|
idTypeSubscription: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class QueryUserSociety {
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsNumber()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
idSubscriptionType?: SubscriptionType;
|
|
18
27
|
}
|
|
@@ -473,38 +473,35 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
473
473
|
fields: [
|
|
474
474
|
{
|
|
475
475
|
key: 'BA',
|
|
476
|
-
|
|
477
|
-
isMultiple: false,
|
|
478
|
-
description: 'FTX Commentaires type 1, ligne 1 1ère zone de 512',
|
|
479
|
-
value: textFormatting(comment, 512),
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
key: 'BA',
|
|
483
|
-
tag: 'TexteLibre2',
|
|
484
|
-
isMultiple: false,
|
|
485
|
-
description: 'FTX Commentaires type 1, ligne 2 2ème zone de 512',
|
|
486
|
-
value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
key: 'BA',
|
|
490
|
-
tag: 'TexteLibre3',
|
|
491
|
-
isMultiple: false,
|
|
492
|
-
description: 'FTX Commentaires type 1, ligne 3 3ème zone de 512',
|
|
493
|
-
value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
key: 'BA',
|
|
497
|
-
tag: 'TexteLibre4',
|
|
498
|
-
isMultiple: false,
|
|
499
|
-
description: 'FTX Commentaires type 1, ligne 4 4ème zone de 512',
|
|
500
|
-
value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
key: 'BA',
|
|
504
|
-
tag: 'TexteLibre5',
|
|
476
|
+
value: null,
|
|
505
477
|
isMultiple: false,
|
|
506
|
-
|
|
507
|
-
|
|
478
|
+
tags: [
|
|
479
|
+
{
|
|
480
|
+
tag: 'TexteLibre1',
|
|
481
|
+
description: 'FTX Commentaires type 1, ligne 1 1ère zone de 512',
|
|
482
|
+
value: textFormatting(comment, 512),
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
tag: 'TexteLibre2',
|
|
486
|
+
description: 'FTX Commentaires type 1, ligne 2 2ème zone de 512',
|
|
487
|
+
value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
tag: 'TexteLibre3',
|
|
491
|
+
description: 'FTX Commentaires type 1, ligne 3 3ème zone de 512',
|
|
492
|
+
value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
tag: 'TexteLibre4',
|
|
496
|
+
description: 'FTX Commentaires type 1, ligne 4 4ème zone de 512',
|
|
497
|
+
value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
tag: 'TexteLibre5',
|
|
501
|
+
description: 'FTX Commentaires type 1, ligne 5 5ème zone de 512',
|
|
502
|
+
value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
|
|
503
|
+
},
|
|
504
|
+
],
|
|
508
505
|
},
|
|
509
506
|
{
|
|
510
507
|
key: 'BB',
|