@silexpert/core 1.3.193-ca12-3 → 1.3.193

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 (49) hide show
  1. package/dist/cjs/types/Enum/SocietyApproval.d.ts +0 -19
  2. package/dist/cjs/types/Enum/SocietyApproval.d.ts.map +1 -1
  3. package/dist/cjs/types/Enum/SocietyApproval.js +1 -76
  4. package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/cerfa/3514.d.ts +2 -2
  6. package/dist/cjs/types/Interface/api/cerfa/3514.d.ts.map +1 -1
  7. package/dist/cjs/types/Interface/api/cerfa/3514.js.map +1 -1
  8. package/dist/cjs/types/Interface/api/cerfa/3517.d.ts +233 -238
  9. package/dist/cjs/types/Interface/api/cerfa/3517.d.ts.map +1 -1
  10. package/dist/cjs/types/Interface/api/cerfa/3517.js.map +1 -1
  11. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -1
  12. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  13. package/dist/cjs/utils/vat/3517/century23.d.ts +8 -0
  14. package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -0
  15. package/dist/cjs/utils/vat/3517/{century26.js → century23.js} +193 -247
  16. package/dist/cjs/utils/vat/3517/century23.js.map +1 -0
  17. package/dist/cjs/utils/vat/centuries.js +13 -13
  18. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  19. package/dist/mjs/types/Enum/SocietyApproval.d.ts +0 -19
  20. package/dist/mjs/types/Enum/SocietyApproval.d.ts.map +1 -1
  21. package/dist/mjs/types/Enum/SocietyApproval.js +0 -75
  22. package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
  23. package/dist/mjs/types/Interface/api/cerfa/3514.d.ts +2 -2
  24. package/dist/mjs/types/Interface/api/cerfa/3514.d.ts.map +1 -1
  25. package/dist/mjs/types/Interface/api/cerfa/3514.js.map +1 -1
  26. package/dist/mjs/types/Interface/api/cerfa/3517.d.ts +233 -238
  27. package/dist/mjs/types/Interface/api/cerfa/3517.d.ts.map +1 -1
  28. package/dist/mjs/types/Interface/api/cerfa/3517.js.map +1 -1
  29. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -1
  30. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  31. package/dist/mjs/utils/vat/3517/century23.d.ts +8 -0
  32. package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -0
  33. package/dist/mjs/utils/vat/3517/{century26.js → century23.js} +135 -189
  34. package/dist/mjs/utils/vat/3517/century23.js.map +1 -0
  35. package/dist/mjs/utils/vat/centuries.js +13 -13
  36. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  37. package/package.json +1 -1
  38. package/ts/types/Enum/SocietyApproval.ts +0 -83
  39. package/ts/types/Interface/api/cerfa/3514.ts +2 -2
  40. package/ts/types/Interface/api/cerfa/3517.ts +211 -207
  41. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +1 -1
  42. package/ts/utils/vat/3517/{century26.ts → century23.ts} +145 -203
  43. package/ts/utils/vat/centuries.ts +21 -21
  44. package/dist/cjs/utils/vat/3517/century26.d.ts +0 -8
  45. package/dist/cjs/utils/vat/3517/century26.d.ts.map +0 -1
  46. package/dist/cjs/utils/vat/3517/century26.js.map +0 -1
  47. package/dist/mjs/utils/vat/3517/century26.d.ts +0 -8
  48. package/dist/mjs/utils/vat/3517/century26.d.ts.map +0 -1
  49. package/dist/mjs/utils/vat/3517/century26.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ReadCerfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/ReadCerfa.ts"],"names":[],"mappings":"AA8BA,MAAM,OAAO,cAAc;IACzB,GAAG,CAAS;IACZ,KAAK,CAAmC;CACzC","sourcesContent":["import { CerfaType } from '../../../Enum/CerfaType';\nimport {\n AnyCerfa2031Century,\n AnyCerfa2033Century,\n AnyCerfa2050Century,\n AnyCerfa2035Century,\n AnyCerfa2065Century,\n AnyCerfa2571Century,\n AnyCerfa2572Century,\n Cerfa2069RCI_2024,\n Cerfa2573_2024,\n Cerfa3519_2017,\n FieldForGeneration,\n PayloadCerfa3519_2017,\n QuestionWording,\n} from '../../..';\nimport { Question } from '../../../Enum/BalanceSheetQuestion';\nimport { TerminationType } from '../../../Enum/AnswerTypeValue';\nimport { Cerfa3310_2023 } from './3310';\nimport { getCerfa3519Century17Payload } from '../../../../utils/vat/3519/century17';\nimport { getCerfa3519Century23RegistrationFields } from '../../../../utils/vat/3519/century23';\n\nexport type CerfaPayloadFormField = {\n label: string;\n key: string;\n type: 'text' | 'string' | 'number' | 'boolean' | 'date';\n visibleIf?: string;\n columns?: number;\n};\n\nexport class CerfaFormValue {\n key: string;\n value: string | number | boolean | null;\n}\n\nexport type CerfaPayloadForm = {\n sectionName: string;\n childrens: CerfaPayloadForm | CerfaPayloadFormField[];\n};\n\nexport type AnnexVatDocument = {\n shouldInclude: (data: Cerfa3310_2023) => boolean;\n name: string;\n century: string;\n payload: (amount: number, payload: PayloadCerfa3519_2017) => ReturnType<typeof getCerfa3519Century17Payload>;\n asponePayload: (data: Cerfa3519_2017) => ReturnType<typeof getCerfa3519Century23RegistrationFields>;\n fields: CerfaPayloadForm[];\n fileName: '3519-2017';\n};\n\nexport type VatDocument = {\n idCerfaType: CerfaType;\n name: string;\n century: string; // Millésime du formulaire ASPONE\n centuries: number[];\n payload: (...args: any[]) => any;\n asponePayload: (...args: any[]) => any;\n fields: Array<CerfaPayloadForm>;\n fileName: '3310-2023' | '3514-2022' | '3310-2024' | '3517-2025' | '3310-2025' | '3517-2026';\n annex?: AnnexVatDocument;\n annexFields?: (data: any) => AsponeFormFields;\n};\n\nexport interface ReadCerfaToComplete {\n declaration: CerfaType;\n annex: CerfaType | null;\n}\nexport interface ReadCerfaDocument {\n file: any;\n payload: any;\n}\nexport interface Accountant {\n has: boolean;\n name: string | null;\n phone: string | null;\n address: CerfaAddress;\n}\nexport interface CouncilDetails {\n has: boolean;\n name: string | null;\n phone: string | null;\n address: CerfaAddress;\n}\nexport interface EcfDetails {\n has: boolean;\n name: string | null;\n address: CerfaAddress;\n}\nexport interface ViewerDetails {\n has: boolean;\n name: string;\n address: CerfaAddress;\n number: string | null;\n}\nexport interface CerfaAddress {\n number: string;\n street: string;\n zipCode: string;\n city: string;\n country: {\n name: string | null;\n code: string | null;\n };\n full: string;\n}\n\nexport type CerfaAnswers = {\n [key in keyof typeof QuestionWording | keyof typeof Question]: any;\n};\n\nexport type Termination = {\n type: TerminationType;\n date: string | null;\n};\n\nexport type AsponeFormFields = Array<{\n name: string;\n /** Système dynamique de remplissage néant si aucun champ du formulaire n'est rempli */\n nilKey?: string;\n fields: FieldForGeneration[];\n index?: number;\n}>;\nexport type AsponeFormField = {\n name: string;\n /** Système dynamique de remplissage néant si aucun champ du formulaire n'est rempli */\n nilKey?: string;\n fields: FieldForGeneration[];\n};\n\nexport interface RegistrationPayload {\n cerfa2573?: Cerfa2573_2024;\n cerfa2572?: AnyCerfa2572Century;\n cerfa2571?: AnyCerfa2571Century;\n cerfa2031?: AnyCerfa2031Century;\n cerfa2033?: AnyCerfa2033Century;\n cerfa2050?: AnyCerfa2050Century;\n cerfa2065?: AnyCerfa2065Century;\n cerfa2035?: AnyCerfa2035Century;\n cerfa2069RCI?: Cerfa2069RCI_2024;\n}\n\nexport type ReadFormFile = {\n name: string;\n idFile: number;\n size: number;\n token: string;\n id?: number;\n Location: string;\n ETag: string;\n Bucket: string;\n Key?: string;\n mimeType?: string;\n};\n\nexport interface ReadFormGeneration {\n file: ReadFormFile;\n payload: RegistrationPayload;\n}\n\nexport interface ReadAnnexFormGeneration {\n file?: ReadFormFile;\n payload: RegistrationPayload;\n}\n"]}
1
+ {"version":3,"file":"ReadCerfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/ReadCerfa.ts"],"names":[],"mappings":"AA8BA,MAAM,OAAO,cAAc;IACzB,GAAG,CAAS;IACZ,KAAK,CAAmC;CACzC","sourcesContent":["import { CerfaType } from '../../../Enum/CerfaType';\nimport {\n AnyCerfa2031Century,\n AnyCerfa2033Century,\n AnyCerfa2050Century,\n AnyCerfa2035Century,\n AnyCerfa2065Century,\n AnyCerfa2571Century,\n AnyCerfa2572Century,\n Cerfa2069RCI_2024,\n Cerfa2573_2024,\n Cerfa3519_2017,\n FieldForGeneration,\n PayloadCerfa3519_2017,\n QuestionWording,\n} from '../../..';\nimport { Question } from '../../../Enum/BalanceSheetQuestion';\nimport { TerminationType } from '../../../Enum/AnswerTypeValue';\nimport { Cerfa3310_2023 } from './3310';\nimport { getCerfa3519Century17Payload } from '../../../../utils/vat/3519/century17';\nimport { getCerfa3519Century23RegistrationFields } from '../../../../utils/vat/3519/century23';\n\nexport type CerfaPayloadFormField = {\n label: string;\n key: string;\n type: 'text' | 'string' | 'number' | 'boolean' | 'date';\n visibleIf?: string;\n columns?: number;\n};\n\nexport class CerfaFormValue {\n key: string;\n value: string | number | boolean | null;\n}\n\nexport type CerfaPayloadForm = {\n sectionName: string;\n childrens: CerfaPayloadForm | CerfaPayloadFormField[];\n};\n\nexport type AnnexVatDocument = {\n shouldInclude: (data: Cerfa3310_2023) => boolean;\n name: string;\n century: string;\n payload: (amount: number, payload: PayloadCerfa3519_2017) => ReturnType<typeof getCerfa3519Century17Payload>;\n asponePayload: (data: Cerfa3519_2017) => ReturnType<typeof getCerfa3519Century23RegistrationFields>;\n fields: CerfaPayloadForm[];\n fileName: '3519-2017';\n};\n\nexport type VatDocument = {\n idCerfaType: CerfaType;\n name: string;\n century: string; // Millésime du formulaire ASPONE\n centuries: number[];\n payload: (...args: any[]) => any;\n asponePayload: (...args: any[]) => any;\n fields: Array<CerfaPayloadForm>;\n fileName: '3310-2023' | '3514-2022' | '3517-2023' | '3310-2024' | '3517-2025' | '3310-2025';\n annex?: AnnexVatDocument;\n annexFields?: (data: any) => AsponeFormFields;\n};\n\nexport interface ReadCerfaToComplete {\n declaration: CerfaType;\n annex: CerfaType | null;\n}\nexport interface ReadCerfaDocument {\n file: any;\n payload: any;\n}\nexport interface Accountant {\n has: boolean;\n name: string | null;\n phone: string | null;\n address: CerfaAddress;\n}\nexport interface CouncilDetails {\n has: boolean;\n name: string | null;\n phone: string | null;\n address: CerfaAddress;\n}\nexport interface EcfDetails {\n has: boolean;\n name: string | null;\n address: CerfaAddress;\n}\nexport interface ViewerDetails {\n has: boolean;\n name: string;\n address: CerfaAddress;\n number: string | null;\n}\nexport interface CerfaAddress {\n number: string;\n street: string;\n zipCode: string;\n city: string;\n country: {\n name: string | null;\n code: string | null;\n };\n full: string;\n}\n\nexport type CerfaAnswers = {\n [key in keyof typeof QuestionWording | keyof typeof Question]: any;\n};\n\nexport type Termination = {\n type: TerminationType;\n date: string | null;\n};\n\nexport type AsponeFormFields = Array<{\n name: string;\n /** Système dynamique de remplissage néant si aucun champ du formulaire n'est rempli */\n nilKey?: string;\n fields: FieldForGeneration[];\n index?: number;\n}>;\nexport type AsponeFormField = {\n name: string;\n /** Système dynamique de remplissage néant si aucun champ du formulaire n'est rempli */\n nilKey?: string;\n fields: FieldForGeneration[];\n};\n\nexport interface RegistrationPayload {\n cerfa2573?: Cerfa2573_2024;\n cerfa2572?: AnyCerfa2572Century;\n cerfa2571?: AnyCerfa2571Century;\n cerfa2031?: AnyCerfa2031Century;\n cerfa2033?: AnyCerfa2033Century;\n cerfa2050?: AnyCerfa2050Century;\n cerfa2065?: AnyCerfa2065Century;\n cerfa2035?: AnyCerfa2035Century;\n cerfa2069RCI?: Cerfa2069RCI_2024;\n}\n\nexport type ReadFormFile = {\n name: string;\n idFile: number;\n size: number;\n token: string;\n id?: number;\n Location: string;\n ETag: string;\n Bucket: string;\n Key?: string;\n mimeType?: string;\n};\n\nexport interface ReadFormGeneration {\n file: ReadFormFile;\n payload: RegistrationPayload;\n}\n\nexport interface ReadAnnexFormGeneration {\n file?: ReadFormFile;\n payload: RegistrationPayload;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { Cerfa3517_2023, PayloadCerfa3517_2023 } from '../../../types/Interface/api/cerfa/3517';
2
+ import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry';
3
+ import { AsponeFormFields, CerfaPayloadForm } from '../../../types';
4
+ export declare function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2023): Cerfa3517_2023;
5
+ export declare function getCerfa3517CenturyRegistrationField(data: Cerfa3517_2023): AsponeFormFields;
6
+ export declare function getCerfa3517DDRCentury23egistrationField(data: Cerfa3517_2023): AsponeFormFields;
7
+ export declare const cerfa3517Century23Fields: CerfaPayloadForm[];
8
+ //# sourceMappingURL=century23.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/vat/3517/century23.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,OAAO,EAAE,gBAAgB,EAAkB,gBAAgB,EAAiB,MAAM,gBAAgB,CAAC;AAEnG,wBAAgB,4BAA4B,CAC1C,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,OAAO,EAAE,qBAAqB,GAC7B,cAAc,CAsgBhB;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAmrC3F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAiK/F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EA2atD,CAAC"}
@@ -3,7 +3,7 @@ import { isDefined } from 'class-validator';
3
3
  import { round as _round, uniqBy } from 'lodash';
4
4
  import { Vat } from '../../../types/Enum/Vat';
5
5
  import { getAmountByAccountNumber, getTaxAmountByAccountNumber, setZeroIfIsNegative, textFormatting } from '../utils';
6
- export function getCerfa3517Century26Payload(accountingEntries, payload) {
6
+ export function getCerfa3517Century23Payload(accountingEntries, payload) {
7
7
  const shouldHaveVatCode = isDefined(payload.setting?.tvaCode) && isDefined(payload.society.siret);
8
8
  const shouldFillRefund = _round(payload.refund?.asked ?? 0) > 0;
9
9
  const isNil = payload.isNil === true;
@@ -192,48 +192,21 @@ export function getCerfa3517Century26Payload(accountingEntries, payload) {
192
192
  balanceSurplus: 0, // Calculé plus bas
193
193
  },
194
194
  tax: {
195
- onBoarding: isNil ? 0 : _round(payload.tax?.onBoarding ?? 0),
196
- ofEmployer: isNil ? 0 : _round(payload.tax?.ofEmployer ?? 0),
197
- contribution: isNil ? 0 : _round(payload.tax?.contribution ?? 0),
198
- onRetransmission: {
199
- base: isNil ? 0 : _round(payload.tax?.onRetransmission ?? 0),
200
- tax: isNil ? 0 : _round((payload.tax?.onRetransmission ?? 0) * 0.05),
201
- },
195
+ onRetransmission: isNil ? 0 : _round(payload.tax?.onRetransmission ?? 0),
202
196
  onResultFarm: isNil ? 0 : _round(payload.tax?.onResultFarm ?? 0),
203
197
  payingVideo: {
204
- reduced: {
205
- base: isNil ? 0 : _round(payload.tax?.payingVideo?.reduced ?? 0),
206
- tax: isNil ? 0 : _round((payload.tax?.payingVideo?.reduced ?? 0) * 0.018025),
207
- },
208
- normal: {
209
- base: isNil ? 0 : _round(payload.tax?.payingVideo?.normal ?? 0),
210
- tax: isNil ? 0 : _round((payload.tax?.payingVideo?.normal ?? 0) * 0.15),
211
- },
212
- },
213
- videoOnAsk: {
214
- reduced: {
215
- base: isNil ? 0 : _round(payload.tax?.videoOnAsk?.reduced ?? 0),
216
- tax: isNil ? 0 : _round((payload.tax?.videoOnAsk?.reduced ?? 0) * 0.0515),
217
- },
218
- normal: {
219
- base: isNil ? 0 : _round(payload.tax?.videoOnAsk?.normal ?? 0),
220
- tax: isNil ? 0 : _round((payload.tax?.videoOnAsk?.normal ?? 0) * 0.15),
221
- },
198
+ reduced: isNil ? 0 : _round(payload.tax?.payingVideo?.reduced ?? 0),
199
+ normal: isNil ? 0 : _round(payload.tax?.payingVideo?.normal ?? 0),
222
200
  },
223
- onAdsFromVideo: {
224
- reduced: {
225
- base: isNil ? 0 : _round(payload.tax?.onAdsFromVideo?.reduced ?? 0),
226
- tax: isNil ? 0 : _round((payload.tax?.onAdsFromVideo?.reduced ?? 0) * 0.0515),
227
- },
228
- normal: {
229
- base: isNil ? 0 : _round(payload.tax?.onAdsFromVideo?.normal ?? 0),
230
- tax: isNil ? 0 : _round((payload.tax?.onAdsFromVideo?.normal ?? 0) * 0.15),
231
- },
232
- },
233
- bailiff: {
234
- tax: isNil ? 0 : _round(payload.tax?.bailiff?.tax ?? 0),
235
- count: isNil ? 0 : _round(payload.tax?.bailiff?.count ?? 0),
201
+ freeVideo: {
202
+ reduce: isNil ? 0 : _round(payload.tax?.freeVideo?.reduced ?? 0),
203
+ normal: isNil ? 0 : _round(payload.tax?.freeVideo?.normal ?? 0),
236
204
  },
205
+ bailiff: isNil ? 0 : _round(payload.tax?.bailiff ?? 0),
206
+ contribution: isNil ? 0 : _round(payload.tax?.contribution ?? 0),
207
+ ofEmployer: isNil ? 0 : _round(payload.tax?.ofEmployer ?? 0),
208
+ onBoardingCorse: isNil ? 0 : _round(payload.tax?.onBoardingCorse ?? 0),
209
+ onBoarding: isNil ? 0 : _round(payload.tax?.onBoarding ?? 0),
237
210
  development: isNil ? 0 : _round(payload.tax?.development ?? 0),
238
211
  publicity: isNil ? 0 : _round(payload.tax?.publicity ?? 0),
239
212
  onCompanySurplus: isNil ? 0 : _round(payload.tax?.onCompanySurplus ?? 0),
@@ -329,7 +302,7 @@ export function getCerfa3517Century26Payload(accountingEntries, payload) {
329
302
  },
330
303
  total: 0, // Calculé plus bas
331
304
  refund: {
332
- creditRefundable: 0, // Calculé plus bas
305
+ creditRefundable: shouldFillRefund ? (isNil ? 0 : _round(payload.refund?.creditRefundable ?? 0)) : 0,
333
306
  surplus: 0, // Calculé plus bas
334
307
  maximum: 0, // Calculé plus bas
335
308
  asked: isNil ? 0 : _round(payload.refund?.asked ?? 0),
@@ -381,16 +354,16 @@ export function getCerfa3517Century26Payload(accountingEntries, payload) {
381
354
  data.net.surplus = data.net.advance.total - data.net.due > 0 ? data.net.advance.total - data.net.due : 0;
382
355
  data.net.balanceSurplus = data.net.credit + data.net.surplus;
383
356
  data.tax.total =
384
- data.tax.onRetransmission.tax +
357
+ data.tax.onRetransmission +
385
358
  data.tax.onResultFarm +
386
- data.tax.payingVideo.reduced.tax +
387
- data.tax.payingVideo.normal.tax +
388
- data.tax.videoOnAsk.reduced.tax +
389
- data.tax.videoOnAsk.normal.tax +
390
- data.tax.onAdsFromVideo.reduced.tax +
391
- data.tax.onAdsFromVideo.normal.tax +
392
- data.tax.bailiff.tax +
359
+ data.tax.payingVideo.reduced +
360
+ data.tax.payingVideo.normal +
361
+ data.tax.freeVideo.reduce +
362
+ data.tax.freeVideo.normal +
363
+ data.tax.bailiff +
393
364
  data.tax.contribution +
365
+ data.tax.ofEmployer +
366
+ data.tax.onBoardingCorse +
394
367
  data.tax.onBoarding +
395
368
  data.tax.development +
396
369
  data.tax.publicity +
@@ -443,7 +416,6 @@ export function getCerfa3517Century26Payload(accountingEntries, payload) {
443
416
  data.recapitulation.assimiledTax = data.tax.total;
444
417
  data.recapitulation.toPay =
445
418
  data.recapitulation.vatNetDue + data.recapitulation.assimiledTax + data.recapitulation.consumsion;
446
- data.refund.creditRefundable = shouldFillRefund ? data.net.credit : 0;
447
419
  data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
448
420
  data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
449
421
  data.refund.reportable =
@@ -451,7 +423,7 @@ export function getCerfa3517Century26Payload(accountingEntries, payload) {
451
423
  data.total = setZeroIfIsNegative(data.vat.total.tax - (data.vat.saleOfImmobilization.tax + data.vat.ownDelivery.tax + data.deductible.total1));
452
424
  return data;
453
425
  }
454
- export function getCerfa3517Century26RegistrationField(data) {
426
+ export function getCerfa3517CenturyRegistrationField(data) {
455
427
  const comment = textFormatting(data.declaration.comment);
456
428
  return [
457
429
  {
@@ -538,7 +510,7 @@ export function getCerfa3517Century26RegistrationField(data) {
538
510
  key: 'BD',
539
511
  isMultiple: false,
540
512
  tag: 'Valeur',
541
- description: 'Taxe annuelle sur les émissions de polluants atmosphériques des véhicules de tourisme',
513
+ description: 'Taxe sur les émissions de polluants atmosphériques due au titre de 2022 (CGI, art. 1010) 911630 70C',
542
514
  value: data.tax.oldVehicle,
543
515
  },
544
516
  {
@@ -601,6 +573,13 @@ export function getCerfa3517Century26RegistrationField(data) {
601
573
  description: "Taxe spéciale due en cas de non-respect de l'engagement de conserver pendant 5 ans les parts de fonds commun de placement à risques ou de fonds professionnels de capital investissement (art. 209-0-A du CGI) 912234 4M",
602
574
  value: data.tax.specialDue,
603
575
  },
576
+ {
577
+ key: 'CH',
578
+ isMultiple: false,
579
+ tag: 'Valeur',
580
+ description: 'TICFE - Taxe due 912244 ',
581
+ value: data.tic.ticfe.tax && data.tic.ticfe.tax > 0 ? data.tic.ticfe.tax : null,
582
+ },
604
583
  {
605
584
  key: 'CJ',
606
585
  isMultiple: false,
@@ -923,6 +902,13 @@ export function getCerfa3517Century26RegistrationField(data) {
923
902
  description: 'TICCE - crédit imputé sur la TVA 912237 ',
924
903
  value: data.tic.ticc.imputed && data.tic.ticc.imputed > 0 ? data.tic.ticc.imputed : null,
925
904
  },
905
+ {
906
+ key: 'HH',
907
+ isMultiple: false,
908
+ tag: 'Valeur',
909
+ description: 'TICGN - Taxe due 912245 ',
910
+ value: data.tic.ticgn.tax && data.tic.ticgn.tax > 0 ? data.tic.ticgn.tax : null,
911
+ },
926
912
  {
927
913
  key: 'JA',
928
914
  isMultiple: false,
@@ -935,7 +921,7 @@ export function getCerfa3517Century26RegistrationField(data) {
935
921
  isMultiple: false,
936
922
  tag: 'Valeur',
937
923
  description: "Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales 100094 25A",
938
- value: data.deductible.rate !== 100 ? data.deductible.rate : data.isNil ? 100 : null,
924
+ value: data.deductible.rate !== 100 ? data.deductible.rate : null,
939
925
  },
940
926
  {
941
927
  key: 'JE',
@@ -951,6 +937,13 @@ export function getCerfa3517Century26RegistrationField(data) {
951
937
  description: 'TOTAL - crédit imputé sur la TVA 912252 ',
952
938
  value: data.tic.total.imputed && data.tic.total.imputed > 0 ? data.tic.total.imputed : null,
953
939
  },
940
+ {
941
+ key: 'JH',
942
+ isMultiple: false,
943
+ tag: 'Valeur',
944
+ description: 'TICCE - Taxe due 912246 ',
945
+ value: data.tic.ticc.tax && data.tic.ticc.tax > 0 ? data.tic.ticc.tax : null,
946
+ },
954
947
  {
955
948
  key: 'KA',
956
949
  isMultiple: false,
@@ -1101,25 +1094,25 @@ export function getCerfa3517Century26RegistrationField(data) {
1101
1094
  value: data.tic.ticfe.refund && data.tic.ticfe.refund > 0 ? data.tic.ticfe.refund : null,
1102
1095
  },
1103
1096
  {
1104
- key: 'QA',
1097
+ key: 'NU',
1105
1098
  isMultiple: false,
1106
1099
  tag: 'Valeur',
1107
- description: "Taxe sur la cession de droits d'exploitation audiovisuels des manifestations sportives au taux de 5 % (CIBS, art. L455-28)",
1108
- value: data.tax.onRetransmission.tax,
1100
+ description: 'TICFE - crédit constaté 912248 ',
1101
+ value: data.tic.ticfe.credit && data.tic.ticfe.credit > 0 ? data.tic.ticfe.credit : null,
1109
1102
  },
1110
1103
  {
1111
- key: 'ZR',
1104
+ key: 'QA',
1112
1105
  isMultiple: false,
1113
1106
  tag: 'Valeur',
1114
- description: "Base imposable sur la taxe sur la cession de droits d'exploitation audiovisuels des manifestations sportives au taux de 5 % (CIBS, art. L455-28)",
1115
- value: data.tax.onRetransmission.base,
1107
+ description: 'Taxe sur les retransmissions sportives 100023 36',
1108
+ value: data.tax.onRetransmission,
1116
1109
  },
1117
1110
  {
1118
1111
  key: 'QH',
1119
1112
  isMultiple: false,
1120
1113
  tag: 'Valeur',
1121
1114
  description: 'Taxe sur les actes des huissiers de justice 100036 44',
1122
- value: data.tax.bailiff.tax,
1115
+ value: data.tax.bailiff,
1123
1116
  },
1124
1117
  {
1125
1118
  key: 'QS',
@@ -1163,6 +1156,20 @@ export function getCerfa3517Century26RegistrationField(data) {
1163
1156
  description: 'Crédit imputé sur le ou les prochains acomptes 100224 52',
1164
1157
  value: data.recapitulation.ticRefunded,
1165
1158
  },
1159
+ {
1160
+ key: 'RF',
1161
+ isMultiple: false,
1162
+ tag: 'Valeur',
1163
+ description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux au taux de 5,15 % 902441 42',
1164
+ value: data.tax.payingVideo?.reduced,
1165
+ },
1166
+ {
1167
+ key: 'RG',
1168
+ isMultiple: false,
1169
+ tag: 'Valeur',
1170
+ description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux au taux de 15 % 902437 43',
1171
+ value: data.tax.payingVideo?.normal,
1172
+ },
1166
1173
  {
1167
1174
  key: 'RN',
1168
1175
  isMultiple: false,
@@ -1199,18 +1206,25 @@ export function getCerfa3517Century26RegistrationField(data) {
1199
1206
  value: data.isNil ? 'X' : null,
1200
1207
  },
1201
1208
  {
1202
- key: 'BK',
1209
+ key: 'SH',
1210
+ isMultiple: false,
1203
1211
  tag: 'Valeur',
1212
+ description: "Total des droits de la taxe sur l'exploration d'hydrocarbures (CGI, art 1590) 909352 85",
1213
+ value: data.tax.fuelExploration,
1214
+ },
1215
+ {
1216
+ key: 'SQ',
1204
1217
  isMultiple: false,
1205
- description: 'Autres',
1206
- value: comment && comment.length > 0 ? 'X' : null,
1218
+ tag: 'Valeur',
1219
+ description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art 1609 sexdecies B) au taux de 5,15 % 909815 43A',
1220
+ value: data.tax.freeVideo?.reduce ?? 0,
1207
1221
  },
1208
1222
  {
1209
- key: 'SH',
1223
+ key: 'SS',
1210
1224
  isMultiple: false,
1211
1225
  tag: 'Valeur',
1212
- description: "Total des droits de la taxe sur l'exploration d'hydrocarbures (CGI, art 1590) 909352 85",
1213
- value: data.tax.fuelExploration,
1226
+ description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art 1609 sexdecies B) au taux de 15 % 909817 43B',
1227
+ value: data.tax.freeVideo?.normal ?? 0,
1214
1228
  },
1215
1229
  {
1216
1230
  key: 'SV',
@@ -1261,6 +1275,13 @@ export function getCerfa3517Century26RegistrationField(data) {
1261
1275
  description: 'TICGN - Reliquat de crédit à rembourser 912240 ',
1262
1276
  value: data.tic.ticgn.refund && data.tic.ticgn.refund > 0 ? data.tic.ticgn.refund : null,
1263
1277
  },
1278
+ {
1279
+ key: 'TH',
1280
+ isMultiple: false,
1281
+ tag: 'Valeur',
1282
+ description: 'TICGN - crédit constaté 912249 ',
1283
+ value: data.tic.ticgn.credit && data.tic.ticgn.credit > 0 ? data.tic.ticgn.credit : null,
1284
+ },
1264
1285
  {
1265
1286
  key: 'UB',
1266
1287
  isMultiple: false,
@@ -1289,6 +1310,13 @@ export function getCerfa3517Century26RegistrationField(data) {
1289
1310
  description: 'TICCE - Reliquat de crédit à rembourser 912241 ',
1290
1311
  value: data.tic.ticc.refund && data.tic.ticc.refund > 0 ? data.tic.ticc.refund : null,
1291
1312
  },
1313
+ {
1314
+ key: 'UH',
1315
+ isMultiple: false,
1316
+ tag: 'Valeur',
1317
+ description: 'TICCE - crédit constaté 912250 ',
1318
+ value: data.tic.ticc.credit && data.tic.ticc.credit > 0 ? data.tic.ticc.credit : null,
1319
+ },
1292
1320
  {
1293
1321
  key: 'VA',
1294
1322
  isMultiple: false,
@@ -1499,6 +1527,13 @@ export function getCerfa3517Century26RegistrationField(data) {
1499
1527
  description: 'Taxe sur les exploitants de plateformes de mise en relation par voie électronique en vue de fournir certaines prestations de transport (CGI, article 300 bis) - Taxe due 911708 94',
1500
1528
  value: data.tax.platform,
1501
1529
  },
1530
+ {
1531
+ key: 'XF',
1532
+ isMultiple: false,
1533
+ tag: 'Valeur',
1534
+ description: 'Taxe sur le transport aérien de passagers - Majoration en Corse (CIBS, art. L422-13 et L422-29) - Taxe 912231 45A',
1535
+ value: data.tax.onBoardingCorse,
1536
+ },
1502
1537
  {
1503
1538
  key: 'XG',
1504
1539
  isMultiple: false,
@@ -1520,102 +1555,11 @@ export function getCerfa3517Century26RegistrationField(data) {
1520
1555
  description: 'Taxe sur certaines dépenses de publicité (CGI, art. 302 bis MA) 907826 47',
1521
1556
  value: data.tax.publicity,
1522
1557
  },
1523
- {
1524
- key: 'TL',
1525
- isMultiple: false,
1526
- tag: 'Valeur',
1527
- description: 'Taxe sur les vidéogrammes (CIBS, art. L452-28) au taux de 1,8025 % - Base imposable',
1528
- value: data.tax.payingVideo?.reduced.base,
1529
- },
1530
- {
1531
- key: 'NX',
1532
- isMultiple: false,
1533
- tag: 'Valeur',
1534
- description: 'Taxe sur les vidéogrammes (CIBS, art. L452-28) au taux de 1,8025 % - Taxe due',
1535
- value: data.tax.payingVideo?.reduced.tax,
1536
- },
1537
- {
1538
- key: 'UL',
1539
- isMultiple: false,
1540
- tag: 'Valeur',
1541
- description: 'Taxe sur les vidéogrammes (CIBS, art. L452-28) au taux de 15 % - Base imposable',
1542
- value: data.tax.payingVideo?.normal.base,
1543
- },
1544
- {
1545
- key: 'LL',
1546
- isMultiple: false,
1547
- tag: 'Valeur',
1548
- description: 'Taxe sur les vidéogrammes (CIBS, art. L452-28) au taux de 15 % - Taxe due',
1549
- value: data.tax.payingVideo?.normal.tax,
1550
- },
1551
- {
1552
- key: 'RF',
1553
- tag: 'Valeur',
1554
- value: data.tax.videoOnAsk?.reduced?.tax,
1555
- description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux au taux de 5,15 %',
1556
- isMultiple: false,
1557
- },
1558
- {
1559
- key: 'RG',
1560
- isMultiple: false,
1561
- tag: 'Valeur',
1562
- value: data.tax.videoOnAsk?.normal?.tax,
1563
- description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux au taux de 15 %',
1564
- },
1565
- {
1566
- key: 'SQ',
1567
- isMultiple: false,
1568
- tag: 'Valeur',
1569
- value: data.tax.onAdsFromVideo?.reduced?.tax,
1570
- description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art 1609 sexdecies B) au taux de 5,15 %',
1571
- },
1572
- {
1573
- key: 'SR',
1574
- isMultiple: false,
1575
- tag: 'Valeur',
1576
- value: data.tax.onAdsFromVideo?.reduced?.base,
1577
- description: 'Base imposable sur la taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art 1609 sexdecies B) au taux de 5,15 %',
1578
- },
1579
- {
1580
- key: 'SS',
1581
- isMultiple: false,
1582
- tag: 'Valeur',
1583
- value: data.tax.onAdsFromVideo?.normal?.tax,
1584
- description: 'Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art 1609 sexdecies B) au taux de 15 %',
1585
- },
1586
- {
1587
- key: 'ST',
1588
- isMultiple: false,
1589
- tag: 'Valeur',
1590
- value: data.tax.onAdsFromVideo?.normal?.base,
1591
- description: 'Base imposable sur la taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art 1609 sexdecies B) au taux de 15 %',
1592
- },
1593
- {
1594
- key: 'ZG',
1595
- isMultiple: false,
1596
- tag: 'Valeur',
1597
- value: data.tax.videoOnAsk?.reduced?.base,
1598
- description: 'Base imposable sur la taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux au taux de 5,15 %',
1599
- },
1600
- {
1601
- key: 'ZH',
1602
- isMultiple: false,
1603
- tag: 'Valeur',
1604
- value: data.tax.videoOnAsk?.normal?.base,
1605
- description: 'Base imposable sur la taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux au taux de 15 %',
1606
- },
1607
- {
1608
- key: 'ZJ',
1609
- isMultiple: false,
1610
- tag: 'Valeur',
1611
- value: data.tax.bailiff.count,
1612
- description: 'Base imposable sur la taxe sur les actes des huissiers de justice (CGI, art 302 bis Y)',
1613
- },
1614
1558
  ],
1615
1559
  },
1616
1560
  ];
1617
1561
  }
1618
- export function getCerfa3517DDRCentury26RegistrationField(data) {
1562
+ export function getCerfa3517DDRCentury23egistrationField(data) {
1619
1563
  if (data.refund.asked > 0) {
1620
1564
  return [
1621
1565
  {
@@ -1666,6 +1610,11 @@ export function getCerfa3517DDRCentury26RegistrationField(data) {
1666
1610
  description: 'NAD Nom et prénom du demandeur 100178 ',
1667
1611
  value: textFormatting(data.refund.name, 35),
1668
1612
  },
1613
+ // {
1614
+ // tag: 'DesignationSuite1',
1615
+ // description: 'NAD Qualité du demandeur 100179 ',
1616
+ // value: null,
1617
+ // },
1669
1618
  {
1670
1619
  tag: 'AdresseVille',
1671
1620
  description: 'NAD Lieu de dépôt de la demande 100184 ',
@@ -1768,7 +1717,7 @@ export function getCerfa3517DDRCentury26RegistrationField(data) {
1768
1717
  }
1769
1718
  return [];
1770
1719
  }
1771
- export const cerfa3517Century26Fields = [
1720
+ export const cerfa3517Century23Fields = [
1772
1721
  {
1773
1722
  sectionName: 'Général',
1774
1723
  childrens: [
@@ -1876,8 +1825,8 @@ export const cerfa3517Century26Fields = [
1876
1825
  sectionName: 'Décompte des taxes assimilées',
1877
1826
  childrens: [
1878
1827
  {
1879
- label: '36 - Taxe sur la cession de droits d’exploitation audiovisuelle des manifestations sportives au taux de 5 % (CIBS, art. L455-28) (Base Hors-Taxe)',
1880
- key: 'tax.onRetransmission.base',
1828
+ label: '36 - Taxe sur les retransmissions sportives au taux de 5 % (CGI, art. 302 bis ZE)',
1829
+ key: 'tax.onRetransmission',
1881
1830
  type: 'number',
1882
1831
  },
1883
1832
  {
@@ -1886,43 +1835,28 @@ export const cerfa3517Century26Fields = [
1886
1835
  type: 'number',
1887
1836
  },
1888
1837
  {
1889
- label: '38A - Taxe sur les vidéogrammes (CIBS, art. L452-28) au taux de 1,8025 % (Base Hors-Taxe)',
1890
- key: 'tax.payingVideo.reduced.base',
1838
+ label: '42 - Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux (CGI, art. 1609 sexdecies B) au taux de 5.15%',
1839
+ key: 'tax.payingVideo.reduced',
1891
1840
  type: 'number',
1892
1841
  },
1893
1842
  {
1894
- label: '38B - Taxe sur les vidéogrammes (CIBS, art. L452-28) au taux de 15 % (Base Hors-Taxe)',
1895
- key: 'tax.payingVideo.normal.base',
1843
+ label: '43 - Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre onéreux (CGI, art. 1609 sexdecies B) au taux de 15%',
1844
+ key: 'tax.payingVideo.normal',
1896
1845
  type: 'number',
1897
1846
  },
1898
1847
  {
1899
- label: '42 - Taxe sur les services de contenus audiovisuels à la demande (CIBS, art. L453-25) au taux de 5.15% (Base Hors-Taxe)',
1900
- key: 'tax.videoOnAsk.reduced.base',
1848
+ label: '43A - Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art. 1609 sexdecies B) au taux de 5.15%',
1849
+ key: 'tax.freeVideo.reduced',
1901
1850
  type: 'number',
1902
1851
  },
1903
1852
  {
1904
- label: '43 - Taxe sur les services de contenus audiovisuels à la demande (CIBS, art. L453-25) au taux de 15% (Base Hors-Taxe)',
1905
- key: 'tax.videoOnAsk.normal.base',
1906
- type: 'number',
1907
- },
1908
- {
1909
- label: '43A - Taxe sur la la publicité diffusée au moyen de contenus audiovisuels à la demande (CIBS, art. L454-16) au taux de 5.15% (Base Hors-Taxe)',
1910
- key: 'tax.onAdsFromVideo.reduced',
1911
- type: 'number',
1912
- },
1913
- {
1914
- label: '43B - Taxe sur la la publicité diffusée au moyen de contenus audiovisuels à la demande (CIBS, art. L454-16) au taux de 15% (Base Hors-Taxe)',
1915
- key: 'tax.onAdsFromVideo.normal',
1916
- type: 'number',
1917
- },
1918
- {
1919
- label: "44 - Taxe sur les actes des huissiers de justice (CGI, art. 302 bis Y) - Nombre d'actes",
1920
- key: 'tax.bailiff.count',
1853
+ label: '43B - Taxe sur la diffusion en vidéo physique et en ligne de contenus audiovisuels à titre gratuit (CGI, art. 1609 sexdecies B) au taux de 15%',
1854
+ key: 'tax.freeVideo.normal',
1921
1855
  type: 'number',
1922
1856
  },
1923
1857
  {
1924
1858
  label: '44 - Taxe sur les actes des huissiers de justice (CGI, art. 302 bis Y)',
1925
- key: 'tax.bailiff.tax',
1859
+ key: 'tax.bailiff',
1926
1860
  type: 'number',
1927
1861
  },
1928
1862
  {
@@ -1935,6 +1869,11 @@ export const cerfa3517Century26Fields = [
1935
1869
  key: 'tax.ofEmployer',
1936
1870
  type: 'number',
1937
1871
  },
1872
+ {
1873
+ label: '45A - Taxe sur le transport aérien de passagers – Majoration en Corse (CIBS, art. L422-13 et L422-29)',
1874
+ key: 'tax.onBoardingCorse',
1875
+ type: 'number',
1876
+ },
1938
1877
  {
1939
1878
  label: '45B - Taxe sur le transport maritime de passagers dans certains territoires côtiers –Embarquement ou débarquement en Corse (CIBS, art. L423-57 et suivants)',
1940
1879
  key: 'tax.onBoarding',
@@ -1946,7 +1885,7 @@ export const cerfa3517Century26Fields = [
1946
1885
  type: 'number',
1947
1886
  },
1948
1887
  {
1949
- label: '47 - Taxe sur la publicité diffusée au moyen de documents imprimés (CIBS, art. L454-29)',
1888
+ label: '47 - Taxe sur certaines dépenses de publicité au taux de 1 % (CGI, art 302 bis MA)',
1950
1889
  key: 'tax.publicity',
1951
1890
  type: 'number',
1952
1891
  },
@@ -2042,7 +1981,7 @@ export const cerfa3517Century26Fields = [
2042
1981
  type: 'number',
2043
1982
  },
2044
1983
  {
2045
- label: '70C - Taxe annuelle sur les émissions de polluants atmosphériques des véhicules de tourisme',
1984
+ label: '70C - Taxe annuelle sur l’ancienneté des véhicules de tourisme',
2046
1985
  key: 'tax.oldVehicle',
2047
1986
  type: 'number',
2048
1987
  },
@@ -2142,7 +2081,7 @@ export const cerfa3517Century26Fields = [
2142
2081
  type: 'number',
2143
2082
  },
2144
2083
  {
2145
- label: '94 - Taxe sur la mise en relation par voie électronique en vue de fournir certaines prestations de transport (CIBS, art. L454-35) – Taxe due',
2084
+ label: '94 - Taxe sur les exploitants de plateformes de mise en relation par voie électronique en vue de fournir certaines prestations de transport (CGI, article 300 bis)',
2146
2085
  key: 'tax.platform',
2147
2086
  type: 'number',
2148
2087
  },
@@ -2156,7 +2095,14 @@ export const cerfa3517Century26Fields = [
2156
2095
  },
2157
2096
  {
2158
2097
  sectionName: 'Demande de remboursement',
2159
- childrens: [{ label: 'Remboursement demandé', key: 'refund.asked', type: 'number' }],
2098
+ childrens: [
2099
+ { label: 'Remboursement demandé', key: 'refund.asked', type: 'number' },
2100
+ {
2101
+ label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice',
2102
+ key: 'refund.creditRefundable',
2103
+ type: 'number',
2104
+ },
2105
+ ],
2160
2106
  },
2161
2107
  ];
2162
- //# sourceMappingURL=century26.js.map
2108
+ //# sourceMappingURL=century23.js.map