@silexpert/core 1.1.61 → 1.1.63
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/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/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/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +18 -0
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.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/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +25 -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,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,GAAA,4BA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A,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,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA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HANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.63",
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -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',
|
|
@@ -17,38 +17,35 @@ export function getCerfa3514Century23RegistrationFields(data: Cerfa3514_2022): A
|
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
key: 'CB',
|
|
20
|
-
|
|
20
|
+
value: null,
|
|
21
21
|
isMultiple: false,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
isMultiple: false,
|
|
50
|
-
description: 'Commentaires type 1, ligne 5 (FTX)',
|
|
51
|
-
value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
|
|
22
|
+
tags: [
|
|
23
|
+
{
|
|
24
|
+
tag: 'TexteLibre1',
|
|
25
|
+
description: 'Commentaires type 1, ligne 1 (FTX)',
|
|
26
|
+
value: textFormatting(comment, 512),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
tag: 'TexteLibre2',
|
|
30
|
+
description: 'Commentaires type 1, ligne 2 (FTX)',
|
|
31
|
+
value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
tag: 'TexteLibre3',
|
|
35
|
+
description: 'Commentaires type 1, ligne 3 (FTX)',
|
|
36
|
+
value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
tag: 'TexteLibre4',
|
|
40
|
+
description: 'Commentaires type 1, ligne 4 (FTX)',
|
|
41
|
+
value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
tag: 'TexteLibre5',
|
|
45
|
+
description: 'Commentaires type 1, ligne 5 (FTX)',
|
|
46
|
+
value: comment && (comment?.length ?? 0) > 2048 ? textFormatting(comment.slice(2048, 2560)) : null,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
52
49
|
},
|
|
53
50
|
{
|
|
54
51
|
key: 'CC',
|