@silexpert/core 1.1.17 → 1.1.19

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.
@@ -8,6 +8,7 @@ export declare class Vat extends Resource {
8
8
  getVariousOperations(idSociety: number, id: number): Promise<ReadVatVariousOperations[]>;
9
9
  createVariousOperations(idSociety: number, id: number): Promise<IAccountingTransaction[]>;
10
10
  updateOrCreate(idSociety: number, payload: UpdateOrCreateVatRegistration, details: CreateRegistrationDetail): Promise<ReadRegistration>;
11
+ preview(idSociety: number, payload: UpdateOrCreateVatAdvance): Promise<Buffer>;
11
12
  getPaginated(idSociety: number, query: QueryPaginatedRegistration): Promise<BasePaginate<ReadRegistration>>;
12
13
  getPrevious(idSociety: number, query: QueryPreviousVatDeclaration): Promise<ReadRegistration | null>;
13
14
  duplicate(idSociety: number, idRegistration: number): Promise<ReadRegistration>;
@@ -1 +1 @@
1
- {"version":3,"file":"Vat.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Vat.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,YAAY,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,YAAY,EAAE,UAAU,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,aAAa,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,6BAA6B,EACpT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,GAAI,SAAQ,QAAQ;IAC/B,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC;IAO1H,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC;IAIxF,uBAAuB,CAAC,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E,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI/E,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI5E,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI7E,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAI/E,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,8BAA8B,EAAE,CAAC;IAIxG,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAI3F,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAI3D,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;CAUjD"}
@@ -30,6 +30,14 @@ export class Vat extends Resource {
30
30
  return data;
31
31
  });
32
32
  }
33
+ preview(idSociety, payload) {
34
+ return this.axios.$post(`/societies/${idSociety}/vat/preview`, payload, {
35
+ responseType: 'arraybuffer',
36
+ headers: {
37
+ Accept: 'application/pdf',
38
+ },
39
+ });
40
+ }
33
41
  getPaginated(idSociety, query) {
34
42
  return this.axios.$get(`/societies/${idSociety}/vat`, { params: query });
35
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Vat.js","sourceRoot":"","sources":["../../../ts/api/resources/Vat.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,M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AAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,eAAe,CAAC,CAAC;IAClE,CAAC;IAED,YAAY,CAAC,KAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAC9C;YACE,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACP,CAAC;CACF","sourcesContent":["import {\n BasePaginate, CreateRegistrationDetail, IAccountingTransaction, ICustomerVat, QueryCerfa, QueryPaginatedRegistration, QueryPreviousVatDeclaration, QueryVatEntry, ReadRegistration, ReadVatDeclarationUpdatedEntry, ReadVatEntry, ReadVatVariousOperations, UpdateOrCreateVatAdvance, UpdateOrCreateVatRegistration, UpdateRegistration,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class Vat extends Resource {\n updateToRegisteredManually(idSociety: number, idRegistration: number, idUser: number): Promise<{ data: ReadRegistration }> {\n const params: UpdateRegistration = {\n idUser, isComplete: true, sendAt: new Date(), response: null, idDeposit: null,\n };\n return this.axios.patch(`/societies/${idSociety}/registrations/${idRegistration}`, params);\n }\n\n getVariousOperations(idSociety: number, id: number): Promise<ReadVatVariousOperations[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/${id}/various-operations`);\n }\n\n createVariousOperations(idSociety: number, id: number): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/societies/${idSociety}/vat/${id}/various-operations`);\n }\n\n async updateOrCreate(idSociety: number, payload: UpdateOrCreateVatRegistration, details: CreateRegistrationDetail): Promise<ReadRegistration> {\n const result = await this.axios.$post(`/societies/${idSociety}/vat`, payload);\n // @ts-ignore\n const data = result as ReadRegistration;\n await this.axios.$post(`/societies/${idSociety}/registrations/${data.id}/details`, details);\n return data;\n }\n\n getPaginated(idSociety: number, query: QueryPaginatedRegistration): Promise<BasePaginate<ReadRegistration>> {\n return this.axios.$get(`/societies/${idSociety}/vat`, { params: query });\n }\n\n getPrevious(idSociety: number, query: QueryPreviousVatDeclaration): Promise<ReadRegistration | null> {\n return this.axios.$get(`/societies/${idSociety}/vat/previous`, { params: query });\n }\n\n duplicate(idSociety: number, idRegistration: number): Promise<ReadRegistration> {\n return this.axios.$post(`/societies/${idSociety}/vat/${idRegistration}/duplicate`);\n }\n\n delete(idSociety: number, idRegistration: number): Promise<ReadRegistration> {\n return this.axios.$delete(`/societies/${idSociety}/vat/${idRegistration}`);\n }\n\n declare(idSociety: number, idRegistration: number): Promise<ReadRegistration> {\n return this.axios.$post(`/societies/${idSociety}/vat/${idRegistration}/declare`);\n }\n\n getAllEntries(idSociety: number, query: QueryVatEntry): Promise<ReadVatEntry[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/entries`, { params: query });\n }\n\n getAllUpdatedEntries(idSociety: number, query: QueryVatEntry): Promise<ReadVatDeclarationUpdatedEntry[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/updated-entries`, { params: query });\n }\n\n getAllNotAnnotatedEntries(idSociety: number, query: QueryVatEntry): Promise<ReadVatEntry[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/not-annotated-entries`, { params: query });\n }\n\n updateOrCreateAdvance(idSociety: number, payload: UpdateOrCreateVatAdvance): Promise<ICustomerVat> {\n return this.axios.$post(`/societies/${idSociety}/vat/advances`, payload);\n }\n\n getAllAdvances(idExercice: number): Promise<ICustomerVat[]> {\n return this.axios.$get(`/exercices/${idExercice}/vat/advances`);\n }\n\n getCerfaFile(query: QueryCerfa): Promise<Buffer> {\n return this.axios.$get('/vat-declarations/cerfa',\n {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}\n"]}
1
+ {"version":3,"file":"Vat.js","sourceRoot":"","sources":["../../../ts/api/resources/Vat.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,GAAI,SAAQ,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AC,CAAC;IACjG,CAAC;IAED,qBAAqB,CAAC,SAAiB,EAAE,OAAiC;QACxE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,eAAe,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,cAAc,CAAC,UAAkB;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,eAAe,CAAC,CAAC;IAClE,CAAC;IAED,YAAY,CAAC,KAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAC9C;YACE,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACP,CAAC;CACF","sourcesContent":["import {\n BasePaginate, CreateRegistrationDetail, IAccountingTransaction, ICustomerVat, QueryCerfa, QueryPaginatedRegistration, QueryPreviousVatDeclaration, QueryVatEntry, ReadRegistration, ReadVatDeclarationUpdatedEntry, ReadVatEntry, ReadVatVariousOperations, UpdateOrCreateVatAdvance, UpdateOrCreateVatRegistration, UpdateRegistration,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class Vat extends Resource {\n updateToRegisteredManually(idSociety: number, idRegistration: number, idUser: number): Promise<{ data: ReadRegistration }> {\n const params: UpdateRegistration = {\n idUser, isComplete: true, sendAt: new Date(), response: null, idDeposit: null,\n };\n return this.axios.patch(`/societies/${idSociety}/registrations/${idRegistration}`, params);\n }\n\n getVariousOperations(idSociety: number, id: number): Promise<ReadVatVariousOperations[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/${id}/various-operations`);\n }\n\n createVariousOperations(idSociety: number, id: number): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/societies/${idSociety}/vat/${id}/various-operations`);\n }\n\n async updateOrCreate(idSociety: number, payload: UpdateOrCreateVatRegistration, details: CreateRegistrationDetail): Promise<ReadRegistration> {\n const result = await this.axios.$post(`/societies/${idSociety}/vat`, payload);\n // @ts-ignore\n const data = result as ReadRegistration;\n await this.axios.$post(`/societies/${idSociety}/registrations/${data.id}/details`, details);\n return data;\n }\n\n preview(idSociety: number, payload: UpdateOrCreateVatAdvance): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/vat/preview`, payload, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getPaginated(idSociety: number, query: QueryPaginatedRegistration): Promise<BasePaginate<ReadRegistration>> {\n return this.axios.$get(`/societies/${idSociety}/vat`, { params: query });\n }\n\n getPrevious(idSociety: number, query: QueryPreviousVatDeclaration): Promise<ReadRegistration | null> {\n return this.axios.$get(`/societies/${idSociety}/vat/previous`, { params: query });\n }\n\n duplicate(idSociety: number, idRegistration: number): Promise<ReadRegistration> {\n return this.axios.$post(`/societies/${idSociety}/vat/${idRegistration}/duplicate`);\n }\n\n delete(idSociety: number, idRegistration: number): Promise<ReadRegistration> {\n return this.axios.$delete(`/societies/${idSociety}/vat/${idRegistration}`);\n }\n\n declare(idSociety: number, idRegistration: number): Promise<ReadRegistration> {\n return this.axios.$post(`/societies/${idSociety}/vat/${idRegistration}/declare`);\n }\n\n getAllEntries(idSociety: number, query: QueryVatEntry): Promise<ReadVatEntry[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/entries`, { params: query });\n }\n\n getAllUpdatedEntries(idSociety: number, query: QueryVatEntry): Promise<ReadVatDeclarationUpdatedEntry[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/updated-entries`, { params: query });\n }\n\n getAllNotAnnotatedEntries(idSociety: number, query: QueryVatEntry): Promise<ReadVatEntry[]> {\n return this.axios.$get(`/societies/${idSociety}/vat/not-annotated-entries`, { params: query });\n }\n\n updateOrCreateAdvance(idSociety: number, payload: UpdateOrCreateVatAdvance): Promise<ICustomerVat> {\n return this.axios.$post(`/societies/${idSociety}/vat/advances`, payload);\n }\n\n getAllAdvances(idExercice: number): Promise<ICustomerVat[]> {\n return this.axios.$get(`/exercices/${idExercice}/vat/advances`);\n }\n\n getCerfaFile(query: QueryCerfa): Promise<Buffer> {\n return this.axios.$get('/vat-declarations/cerfa',\n {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}\n"]}
@@ -24,14 +24,14 @@ export const AdjustmentTypeList = [
24
24
  id: AdjustmentTypeId.TOO_MUCH_DEDUCTED,
25
25
  label: 'TVA trop déduite',
26
26
  centuries: [2022, 2023, 2024, 2025],
27
- key: 'vat.deductible.toImpute',
27
+ key: 'vat.sumToAdd',
28
28
  inputKey: 'adjustment.tooMuchDeducted',
29
29
  },
30
30
  {
31
31
  id: AdjustmentTypeId.NOT_ENOUGH_DEDUCTED,
32
32
  label: 'TVA pas assez déduite',
33
33
  centuries: [2022, 2023, 2024, 2025],
34
- key: 'vat.sumToAdd',
34
+ key: 'vat.deductible.toImpute',
35
35
  inputKey: 'adjustment.notEnoughDeducted',
36
36
  },
37
37
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"AdjustmentType.js","sourceRoot":"","sources":["../../../ts/types/Enum/AdjustmentType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mFAAsB,CAAA;IACtB,uFAAwB,CAAA;IACxB,iFAAqB,CAAA;IACrB,qFAAuB,CAAA;AACzB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAuG;IACpI;QACE,EAAE,EAAE,gBAAgB,CAAC,kBAAkB;QACvC,KAAK,EAAE,oBAAoB;QAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,yBAAyB;QAC9B,QAAQ,EAAE,6BAA6B;KACxC;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,oBAAoB;QACzC,KAAK,EAAE,yBAAyB;QAChC,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,cAAc;QACnB,QAAQ,EAAE,+BAA+B;KAC1C;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,iBAAiB;QACtC,KAAK,EAAE,kBAAkB;QACzB,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,yBAAyB;QAC9B,QAAQ,EAAE,4BAA4B;KACvC;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,mBAAmB;QACxC,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,cAAc;QACnB,QAAQ,EAAE,8BAA8B;KACzC;CACF,CAAC","sourcesContent":["export enum AdjustmentTypeId {\n TOO_MUCH_COLLECTED = 1,\n NOT_ENOUGH_COLLECTED = 2,\n TOO_MUCH_DEDUCTED = 3,\n NOT_ENOUGH_DEDUCTED = 4,\n}\n\nexport const AdjustmentTypeList: Array<{ id:AdjustmentTypeId; label: string; centuries: number[], key: string; inputKey: string; }> = [\n {\n id: AdjustmentTypeId.TOO_MUCH_COLLECTED,\n label: 'TVA trop collectée',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.deductible.toImpute',\n inputKey: 'adjustment.tooMuchCollected',\n },\n {\n id: AdjustmentTypeId.NOT_ENOUGH_COLLECTED,\n label: 'TVA pas assez collectée',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.sumToAdd',\n inputKey: 'adjustment.notEnoughCollected',\n },\n {\n id: AdjustmentTypeId.TOO_MUCH_DEDUCTED,\n label: 'TVA trop déduite',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.deductible.toImpute',\n inputKey: 'adjustment.tooMuchDeducted',\n },\n {\n id: AdjustmentTypeId.NOT_ENOUGH_DEDUCTED,\n label: 'TVA pas assez déduite',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.sumToAdd',\n inputKey: 'adjustment.notEnoughDeducted',\n },\n];"]}
1
+ {"version":3,"file":"AdjustmentType.js","sourceRoot":"","sources":["../../../ts/types/Enum/AdjustmentType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mFAAsB,CAAA;IACtB,uFAAwB,CAAA;IACxB,iFAAqB,CAAA;IACrB,qFAAuB,CAAA;AACzB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAuG;IACpI;QACE,EAAE,EAAE,gBAAgB,CAAC,kBAAkB;QACvC,KAAK,EAAE,oBAAoB;QAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,yBAAyB;QAC9B,QAAQ,EAAE,6BAA6B;KACxC;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,oBAAoB;QACzC,KAAK,EAAE,yBAAyB;QAChC,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,cAAc;QACnB,QAAQ,EAAE,+BAA+B;KAC1C;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,iBAAiB;QACtC,KAAK,EAAE,kBAAkB;QACzB,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,cAAc;QACnB,QAAQ,EAAE,4BAA4B;KACvC;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,mBAAmB;QACxC,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QACnC,GAAG,EAAE,yBAAyB;QAC9B,QAAQ,EAAE,8BAA8B;KACzC;CACF,CAAC","sourcesContent":["export enum AdjustmentTypeId {\n TOO_MUCH_COLLECTED = 1,\n NOT_ENOUGH_COLLECTED = 2,\n TOO_MUCH_DEDUCTED = 3,\n NOT_ENOUGH_DEDUCTED = 4,\n}\n\nexport const AdjustmentTypeList: Array<{ id:AdjustmentTypeId; label: string; centuries: number[], key: string; inputKey: string; }> = [\n {\n id: AdjustmentTypeId.TOO_MUCH_COLLECTED,\n label: 'TVA trop collectée',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.deductible.toImpute',\n inputKey: 'adjustment.tooMuchCollected',\n },\n {\n id: AdjustmentTypeId.NOT_ENOUGH_COLLECTED,\n label: 'TVA pas assez collectée',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.sumToAdd',\n inputKey: 'adjustment.notEnoughCollected',\n },\n {\n id: AdjustmentTypeId.TOO_MUCH_DEDUCTED,\n label: 'TVA trop déduite',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.sumToAdd',\n inputKey: 'adjustment.tooMuchDeducted',\n },\n {\n id: AdjustmentTypeId.NOT_ENOUGH_DEDUCTED,\n label: 'TVA pas assez déduite',\n centuries: [2022, 2023, 2024, 2025],\n key: 'vat.deductible.toImpute',\n inputKey: 'adjustment.notEnoughDeducted',\n },\n];"]}
@@ -1 +1 @@
1
- {"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/3310/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAElG,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAwTlI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAg5B9F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAgLrD,CAAC"}
1
+ {"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/3310/century23.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAElG,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAwTlI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAg5B9F;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAiLrD,CAAC"}
@@ -4,7 +4,7 @@ import { round as _round } from 'lodash';
4
4
  import { Vat } from '../../../types/Enum/Vat';
5
5
  import { getAmountByAccountNumber, getTaxAmountByAccountNumber, textFormatting } from '../utils';
6
6
  export function getCerfa3310Century23Payload(accountingEntries, payload) {
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _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, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101;
7
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _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, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96;
8
8
  const shouldHaveVatCode = isDefined((_a = payload.setting) === null || _a === void 0 ? void 0 : _a.tvaCode) && isDefined(payload.society.siret);
9
9
  const vats = Object.values(Vat);
10
10
  const frenchVat = vats.filter((v) => !v.isVatImportation && !v.isVatIntracom).map((v) => v.id);
@@ -68,8 +68,8 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
68
68
  const coefficient = _round((_g = (_f = (_e = payload.vat) === null || _e === void 0 ? void 0 : _e.deductible) === null || _f === void 0 ? void 0 : _f.coefficient) !== null && _g !== void 0 ? _g : 100, 2);
69
69
  const isNil = payload.isNil === true;
70
70
  const isHolidayDeposit = payload.isHolidayDeposit === true;
71
- const sumToAdd = isNil ? 0 : isHolidayDeposit ? (_round(((_k = (_j = (_h = payload.previousVatDeclaration) === null || _h === void 0 ? void 0 : _h.toPay) === null || _j === void 0 ? void 0 : _j.total) !== null && _k !== void 0 ? _k : 0) * 0.8, 2)) : _round((_m = (_l = payload.vat) === null || _l === void 0 ? void 0 : _l.sumToAdd) !== null && _m !== void 0 ? _m : 0) + _round((_q = (_p = (_o = payload.vat) === null || _o === void 0 ? void 0 : _o.deductible) === null || _p === void 0 ? void 0 : _p.toImpute) !== null && _q !== void 0 ? _q : 0);
72
- const comment = isHolidayDeposit ? `ACOMPTE CONGES ${(_r = payload.comment) !== null && _r !== void 0 ? _r : ''}` : ((_s = payload.comment) !== null && _s !== void 0 ? _s : null);
71
+ const sumToAdd = isNil ? 0 : isHolidayDeposit ? (_round(((_k = (_j = (_h = payload.previousVatDeclaration) === null || _h === void 0 ? void 0 : _h.toPay) === null || _j === void 0 ? void 0 : _j.total) !== null && _k !== void 0 ? _k : 0) * 0.8, 2)) : _round((_m = (_l = payload.vat) === null || _l === void 0 ? void 0 : _l.sumToAdd) !== null && _m !== void 0 ? _m : 0);
72
+ const comment = isHolidayDeposit ? `ACOMPTE CONGES ${(_o = payload.comment) !== null && _o !== void 0 ? _o : ''}` : ((_p = payload.comment) !== null && _p !== void 0 ? _p : null);
73
73
  const initialPayload = {
74
74
  isNil,
75
75
  isDGE: false,
@@ -82,7 +82,7 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
82
82
  full: `${payload.society.address}\n${payload.society.zipCode} ${payload.society.city}`,
83
83
  },
84
84
  numbers: {
85
- SIE: (_u = (_t = payload.sie) === null || _t === void 0 ? void 0 : _t.sages) !== null && _u !== void 0 ? _u : null,
85
+ SIE: (_r = (_q = payload.sie) === null || _q === void 0 ? void 0 : _q.sages) !== null && _r !== void 0 ? _r : null,
86
86
  folder: null,
87
87
  key: null,
88
88
  period: null,
@@ -94,7 +94,7 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
94
94
  },
95
95
  service: {
96
96
  address: {
97
- full: isDefined((_w = (_v = payload.sie) === null || _v === void 0 ? void 0 : _v.address) === null || _w === void 0 ? void 0 : _w.address1) ? `${(_x = payload.sie) === null || _x === void 0 ? void 0 : _x.address.address1}\n${(_y = payload.sie) === null || _y === void 0 ? void 0 : _y.address.address2}\n${(_z = payload.sie) === null || _z === void 0 ? void 0 : _z.address.address3}\n${(_0 = payload.sie) === null || _0 === void 0 ? void 0 : _0.address.address4}\n${(_1 = payload.sie) === null || _1 === void 0 ? void 0 : _1.address.address5}` : null,
97
+ full: isDefined((_t = (_s = payload.sie) === null || _s === void 0 ? void 0 : _s.address) === null || _t === void 0 ? void 0 : _t.address1) ? `${(_u = payload.sie) === null || _u === void 0 ? void 0 : _u.address.address1}\n${(_v = payload.sie) === null || _v === void 0 ? void 0 : _v.address.address2}\n${(_w = payload.sie) === null || _w === void 0 ? void 0 : _w.address.address3}\n${(_x = payload.sie) === null || _x === void 0 ? void 0 : _x.address.address4}\n${(_y = payload.sie) === null || _y === void 0 ? void 0 : _y.address.address5}` : null,
98
98
  },
99
99
  },
100
100
  period: {
@@ -110,13 +110,13 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
110
110
  },
111
111
  },
112
112
  siret: {
113
- first: isDefined(payload.society.siret) ? ((_3 = (_2 = payload.society.siret) === null || _2 === void 0 ? void 0 : _2.slice(0, 9)) !== null && _3 !== void 0 ? _3 : null) : null,
114
- second: isDefined(payload.society.siret) ? ((_5 = (_4 = payload.society.siret) === null || _4 === void 0 ? void 0 : _4.slice(5)) !== null && _5 !== void 0 ? _5 : null) : null,
113
+ first: isDefined(payload.society.siret) ? ((_0 = (_z = payload.society.siret) === null || _z === void 0 ? void 0 : _z.slice(0, 9)) !== null && _0 !== void 0 ? _0 : null) : null,
114
+ second: isDefined(payload.society.siret) ? ((_2 = (_1 = payload.society.siret) === null || _1 === void 0 ? void 0 : _1.slice(5)) !== null && _2 !== void 0 ? _2 : null) : null,
115
115
  },
116
116
  intracommunityVat: {
117
- first: shouldHaveVatCode ? ((_8 = (_7 = (_6 = payload.setting) === null || _6 === void 0 ? void 0 : _6.tvaCode) === null || _7 === void 0 ? void 0 : _7.slice(0, 2)) !== null && _8 !== void 0 ? _8 : null) : null,
118
- second: shouldHaveVatCode ? ((_11 = (_10 = (_9 = payload.setting) === null || _9 === void 0 ? void 0 : _9.tvaCode) === null || _10 === void 0 ? void 0 : _10.slice(2, 4)) !== null && _11 !== void 0 ? _11 : null) : null,
119
- third: shouldHaveVatCode ? ((_13 = (_12 = payload.society.siret) === null || _12 === void 0 ? void 0 : _12.slice(0, 9)) !== null && _13 !== void 0 ? _13 : null) : null,
117
+ first: shouldHaveVatCode ? ((_5 = (_4 = (_3 = payload.setting) === null || _3 === void 0 ? void 0 : _3.tvaCode) === null || _4 === void 0 ? void 0 : _4.slice(0, 2)) !== null && _5 !== void 0 ? _5 : null) : null,
118
+ second: shouldHaveVatCode ? ((_8 = (_7 = (_6 = payload.setting) === null || _6 === void 0 ? void 0 : _6.tvaCode) === null || _7 === void 0 ? void 0 : _7.slice(2, 4)) !== null && _8 !== void 0 ? _8 : null) : null,
119
+ third: shouldHaveVatCode ? ((_10 = (_9 = payload.society.siret) === null || _9 === void 0 ? void 0 : _9.slice(0, 9)) !== null && _10 !== void 0 ? _10 : null) : null,
120
120
  },
121
121
  payment: {
122
122
  date: dayjs().format('YYYY-MM-DD'),
@@ -130,29 +130,29 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
130
130
  other: isNil || isHolidayDeposit ? 0 : taxedOther,
131
131
  purchaseOfIntracommunityServiceProvision: isNil || isHolidayDeposit ? 0 : taxedPurchaseOfIntracommunityService,
132
132
  import: isNil || isHolidayDeposit ? 0 : taxedImport,
133
- withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : _round((_15 = (_14 = payload.taxedOperations) === null || _14 === void 0 ? void 0 : _14.withdrawSuspensiveRegime) !== null && _15 !== void 0 ? _15 : 0),
134
- releaseFromConsumption: isNil || isHolidayDeposit ? 0 : _round((_17 = (_16 = payload.taxedOperations) === null || _16 === void 0 ? void 0 : _16.releaseFromConsumption) !== null && _17 !== void 0 ? _17 : 0),
133
+ withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : _round((_12 = (_11 = payload.taxedOperations) === null || _11 === void 0 ? void 0 : _11.withdrawSuspensiveRegime) !== null && _12 !== void 0 ? _12 : 0),
134
+ releaseFromConsumption: isNil || isHolidayDeposit ? 0 : _round((_14 = (_13 = payload.taxedOperations) === null || _13 === void 0 ? void 0 : _13.releaseFromConsumption) !== null && _14 !== void 0 ? _14 : 0),
135
135
  intracommunityAcquisitions: isNil || isHolidayDeposit ? 0 : taxedIntracommunityAcquisitions,
136
- energyDelivery: isNil || isHolidayDeposit ? 0 : _round((_19 = (_18 = payload.taxedOperations) === null || _18 === void 0 ? void 0 : _18.energyDelivery) !== null && _19 !== void 0 ? _19 : 0),
137
- purchaseOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : _round((_21 = (_20 = payload.taxedOperations) === null || _20 === void 0 ? void 0 : _20.purchaseOfServicesNotInFrance) !== null && _21 !== void 0 ? _21 : 0),
138
- regularizations: isNil || isHolidayDeposit ? 0 : _round((_23 = (_22 = payload.taxedOperations) === null || _22 === void 0 ? void 0 : _22.regularizations) !== null && _23 !== void 0 ? _23 : 0),
136
+ energyDelivery: isNil || isHolidayDeposit ? 0 : _round((_16 = (_15 = payload.taxedOperations) === null || _15 === void 0 ? void 0 : _15.energyDelivery) !== null && _16 !== void 0 ? _16 : 0),
137
+ purchaseOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : _round((_18 = (_17 = payload.taxedOperations) === null || _17 === void 0 ? void 0 : _17.purchaseOfServicesNotInFrance) !== null && _18 !== void 0 ? _18 : 0),
138
+ regularizations: isNil || isHolidayDeposit ? 0 : _round((_20 = (_19 = payload.taxedOperations) === null || _19 === void 0 ? void 0 : _19.regularizations) !== null && _20 !== void 0 ? _20 : 0),
139
139
  },
140
140
  untaxedOperations: {
141
141
  exportationNotInEurope: isNil || isHolidayDeposit ? 0 : untaxedExportationNotInEurope,
142
142
  other: isNil || isHolidayDeposit ? 0 : untaxedOther,
143
- distanceSelling: isNil || isHolidayDeposit ? 0 : _round((_25 = (_24 = payload.untaxedOperations) === null || _24 === void 0 ? void 0 : _24.distanceSelling) !== null && _25 !== void 0 ? _25 : 0),
143
+ distanceSelling: isNil || isHolidayDeposit ? 0 : _round((_22 = (_21 = payload.untaxedOperations) === null || _21 === void 0 ? void 0 : _21.distanceSelling) !== null && _22 !== void 0 ? _22 : 0),
144
144
  import: isNil || isHolidayDeposit ? 0 : untaxedImport,
145
- withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : _round((_27 = (_26 = payload.untaxedOperations) === null || _26 === void 0 ? void 0 : _26.withdrawSuspensiveRegime) !== null && _27 !== void 0 ? _27 : 0),
146
- importInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : _round((_29 = (_28 = payload.untaxedOperations) === null || _28 === void 0 ? void 0 : _28.importInSuspensiveSystem) !== null && _29 !== void 0 ? _29 : 0),
145
+ withdrawSuspensiveRegime: isNil || isHolidayDeposit ? 0 : _round((_24 = (_23 = payload.untaxedOperations) === null || _23 === void 0 ? void 0 : _23.withdrawSuspensiveRegime) !== null && _24 !== void 0 ? _24 : 0),
146
+ importInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : _round((_26 = (_25 = payload.untaxedOperations) === null || _25 === void 0 ? void 0 : _25.importInSuspensiveSystem) !== null && _26 !== void 0 ? _26 : 0),
147
147
  intracommunityAcquisitions: isNil || isHolidayDeposit ? 0 : untaxedIntracomunity,
148
148
  intracommunityDelivery: isNil || isHolidayDeposit ? 0 : untaxedIntracommunityDelivery,
149
- energyDelivery: isNil || isHolidayDeposit ? 0 : _round((_31 = (_30 = payload.untaxedOperations) === null || _30 === void 0 ? void 0 : _30.energyDelivery) !== null && _31 !== void 0 ? _31 : 0),
150
- oilProductsConsumption: isNil || isHolidayDeposit ? 0 : _round((_33 = (_32 = payload.untaxedOperations) === null || _32 === void 0 ? void 0 : _32.oilProductsConsumption) !== null && _33 !== void 0 ? _33 : 0),
151
- importPetrolInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : _round((_35 = (_34 = payload.untaxedOperations) === null || _34 === void 0 ? void 0 : _34.importPetrolInSuspensiveSystem) !== null && _35 !== void 0 ? _35 : 0),
152
- purchaseInFranchise: isNil || isHolidayDeposit ? 0 : _round((_37 = (_36 = payload.untaxedOperations) === null || _36 === void 0 ? void 0 : _36.purchaseInFranchise) !== null && _37 !== void 0 ? _37 : 0),
153
- saleOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : _round((_39 = (_38 = payload.untaxedOperations) === null || _38 === void 0 ? void 0 : _38.saleOfServicesNotInFrance) !== null && _39 !== void 0 ? _39 : 0),
154
- regularizations: isNil || isHolidayDeposit ? 0 : _round((_41 = (_40 = payload.untaxedOperations) === null || _40 === void 0 ? void 0 : _40.regularizations) !== null && _41 !== void 0 ? _41 : 0),
155
- internalUniq: isNil || isHolidayDeposit ? 0 : _round((_43 = (_42 = payload.untaxedOperations) === null || _42 === void 0 ? void 0 : _42.internalUniq) !== null && _43 !== void 0 ? _43 : 0),
149
+ energyDelivery: isNil || isHolidayDeposit ? 0 : _round((_28 = (_27 = payload.untaxedOperations) === null || _27 === void 0 ? void 0 : _27.energyDelivery) !== null && _28 !== void 0 ? _28 : 0),
150
+ oilProductsConsumption: isNil || isHolidayDeposit ? 0 : _round((_30 = (_29 = payload.untaxedOperations) === null || _29 === void 0 ? void 0 : _29.oilProductsConsumption) !== null && _30 !== void 0 ? _30 : 0),
151
+ importPetrolInSuspensiveSystem: isNil || isHolidayDeposit ? 0 : _round((_32 = (_31 = payload.untaxedOperations) === null || _31 === void 0 ? void 0 : _31.importPetrolInSuspensiveSystem) !== null && _32 !== void 0 ? _32 : 0),
152
+ purchaseInFranchise: isNil || isHolidayDeposit ? 0 : _round((_34 = (_33 = payload.untaxedOperations) === null || _33 === void 0 ? void 0 : _33.purchaseInFranchise) !== null && _34 !== void 0 ? _34 : 0),
153
+ saleOfServicesNotInFrance: isNil || isHolidayDeposit ? 0 : _round((_36 = (_35 = payload.untaxedOperations) === null || _35 === void 0 ? void 0 : _35.saleOfServicesNotInFrance) !== null && _36 !== void 0 ? _36 : 0),
154
+ regularizations: isNil || isHolidayDeposit ? 0 : _round((_38 = (_37 = payload.untaxedOperations) === null || _37 === void 0 ? void 0 : _37.regularizations) !== null && _38 !== void 0 ? _38 : 0),
155
+ internalUniq: isNil || isHolidayDeposit ? 0 : _round((_40 = (_39 = payload.untaxedOperations) === null || _39 === void 0 ? void 0 : _39.internalUniq) !== null && _40 !== void 0 ? _40 : 0),
156
156
  },
157
157
  vat: {
158
158
  carrieredOutInFrance: {
@@ -181,12 +181,12 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
181
181
  },
182
182
  oilProducts: {
183
183
  normalRate20: {
184
- base: isNil || isHolidayDeposit ? 0 : _round((_47 = (_46 = (_45 = (_44 = payload.vat) === null || _44 === void 0 ? void 0 : _44.oilProducts) === null || _45 === void 0 ? void 0 : _45.normalRate20) === null || _46 === void 0 ? void 0 : _46.base) !== null && _47 !== void 0 ? _47 : 0),
185
- tax: isNil || isHolidayDeposit ? 0 : (_round((_51 = (_50 = (_49 = (_48 = payload.vat) === null || _48 === void 0 ? void 0 : _48.oilProducts) === null || _49 === void 0 ? void 0 : _49.normalRate20) === null || _50 === void 0 ? void 0 : _50.base) !== null && _51 !== void 0 ? _51 : 0) * 0.02),
184
+ base: isNil || isHolidayDeposit ? 0 : _round((_44 = (_43 = (_42 = (_41 = payload.vat) === null || _41 === void 0 ? void 0 : _41.oilProducts) === null || _42 === void 0 ? void 0 : _42.normalRate20) === null || _43 === void 0 ? void 0 : _43.base) !== null && _44 !== void 0 ? _44 : 0),
185
+ tax: isNil || isHolidayDeposit ? 0 : (_round((_48 = (_47 = (_46 = (_45 = payload.vat) === null || _45 === void 0 ? void 0 : _45.oilProducts) === null || _46 === void 0 ? void 0 : _46.normalRate20) === null || _47 === void 0 ? void 0 : _47.base) !== null && _48 !== void 0 ? _48 : 0) * 0.02),
186
186
  },
187
187
  reduceRate13: {
188
- base: isNil || isHolidayDeposit ? 0 : _round((_55 = (_54 = (_53 = (_52 = payload.vat) === null || _52 === void 0 ? void 0 : _52.oilProducts) === null || _53 === void 0 ? void 0 : _53.reduceRate13) === null || _54 === void 0 ? void 0 : _54.base) !== null && _55 !== void 0 ? _55 : 0),
189
- tax: isNil || isHolidayDeposit ? 0 : (_round((_59 = (_58 = (_57 = (_56 = payload.vat) === null || _56 === void 0 ? void 0 : _56.oilProducts) === null || _57 === void 0 ? void 0 : _57.reduceRate13) === null || _58 === void 0 ? void 0 : _58.base) !== null && _59 !== void 0 ? _59 : 0) * 0.013),
188
+ base: isNil || isHolidayDeposit ? 0 : _round((_52 = (_51 = (_50 = (_49 = payload.vat) === null || _49 === void 0 ? void 0 : _49.oilProducts) === null || _50 === void 0 ? void 0 : _50.reduceRate13) === null || _51 === void 0 ? void 0 : _51.base) !== null && _52 !== void 0 ? _52 : 0),
189
+ tax: isNil || isHolidayDeposit ? 0 : (_round((_56 = (_55 = (_54 = (_53 = payload.vat) === null || _53 === void 0 ? void 0 : _53.oilProducts) === null || _54 === void 0 ? void 0 : _54.reduceRate13) === null || _55 === void 0 ? void 0 : _55.base) !== null && _56 !== void 0 ? _56 : 0) * 0.013),
190
190
  },
191
191
  },
192
192
  importations: {
@@ -216,34 +216,34 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
216
216
  },
217
217
  },
218
218
  previouslyDeductedToBeReturned: {
219
- onOilProducts: isNil || isHolidayDeposit ? 0 : _round((_62 = (_61 = (_60 = payload.vat) === null || _60 === void 0 ? void 0 : _60.previouslyDeductedToBeReturned) === null || _61 === void 0 ? void 0 : _61.onOilProducts) !== null && _62 !== void 0 ? _62 : 0),
220
- otherThanOilProducts: isNil || isHolidayDeposit ? 0 : _round((_65 = (_64 = (_63 = payload.vat) === null || _63 === void 0 ? void 0 : _63.previouslyDeductedToBeReturned) === null || _64 === void 0 ? void 0 : _64.otherThanOilProducts) !== null && _65 !== void 0 ? _65 : 0),
221
- total: isNil || isHolidayDeposit ? 0 : _round((_68 = (_67 = (_66 = payload.vat) === null || _66 === void 0 ? void 0 : _66.previouslyDeductedToBeReturned) === null || _67 === void 0 ? void 0 : _67.total) !== null && _68 !== void 0 ? _68 : 0),
219
+ onOilProducts: isNil || isHolidayDeposit ? 0 : _round((_59 = (_58 = (_57 = payload.vat) === null || _57 === void 0 ? void 0 : _57.previouslyDeductedToBeReturned) === null || _58 === void 0 ? void 0 : _58.onOilProducts) !== null && _59 !== void 0 ? _59 : 0),
220
+ otherThanOilProducts: isNil || isHolidayDeposit ? 0 : _round((_62 = (_61 = (_60 = payload.vat) === null || _60 === void 0 ? void 0 : _60.previouslyDeductedToBeReturned) === null || _61 === void 0 ? void 0 : _61.otherThanOilProducts) !== null && _62 !== void 0 ? _62 : 0),
221
+ total: isNil || isHolidayDeposit ? 0 : _round((_65 = (_64 = (_63 = payload.vat) === null || _63 === void 0 ? void 0 : _63.previouslyDeductedToBeReturned) === null || _64 === void 0 ? void 0 : _64.total) !== null && _65 !== void 0 ? _65 : 0),
222
222
  },
223
223
  sumToAdd,
224
224
  grossDue: 0,
225
225
  onIntracommunityAcquisition: isNil || isHolidayDeposit ? 0 : intracommunityTax,
226
- toMonaco: isNil || isHolidayDeposit ? 0 : _round((_70 = (_69 = payload.vat) === null || _69 === void 0 ? void 0 : _69.toMonaco) !== null && _70 !== void 0 ? _70 : 0),
226
+ toMonaco: isNil || isHolidayDeposit ? 0 : _round((_67 = (_66 = payload.vat) === null || _66 === void 0 ? void 0 : _66.toMonaco) !== null && _67 !== void 0 ? _67 : 0),
227
227
  deductible: {
228
228
  immobilizations: isNil || isHolidayDeposit ? 0 : (immobilizationTax !== null && immobilizationTax !== void 0 ? immobilizationTax : 0),
229
229
  otherGoodsAndServices: isNil || isHolidayDeposit ? 0 : (otherGoodsAndServices !== null && otherGoodsAndServices !== void 0 ? otherGoodsAndServices : 0),
230
230
  other: {
231
- oil: isNil || isHolidayDeposit ? 0 : _round((_74 = (_73 = (_72 = (_71 = payload.vat) === null || _71 === void 0 ? void 0 : _71.deductible) === null || _72 === void 0 ? void 0 : _72.other) === null || _73 === void 0 ? void 0 : _73.oil) !== null && _74 !== void 0 ? _74 : 0),
231
+ oil: isNil || isHolidayDeposit ? 0 : _round((_71 = (_70 = (_69 = (_68 = payload.vat) === null || _68 === void 0 ? void 0 : _68.deductible) === null || _69 === void 0 ? void 0 : _69.other) === null || _70 === void 0 ? void 0 : _70.oil) !== null && _71 !== void 0 ? _71 : 0),
232
232
  thanOilProducts: 0,
233
233
  collected: 0,
234
234
  total: isNil || isHolidayDeposit ? 0 : otherDeductibles,
235
235
  },
236
236
  report,
237
- toImpute: isNil || isHolidayDeposit ? 0 : _round((_77 = (_76 = (_75 = payload.vat) === null || _75 === void 0 ? void 0 : _75.deductible) === null || _76 === void 0 ? void 0 : _76.toImpute) !== null && _77 !== void 0 ? _77 : 0) + _round((_79 = (_78 = payload.vat) === null || _78 === void 0 ? void 0 : _78.sumToAdd) !== null && _79 !== void 0 ? _79 : 0),
237
+ toImpute: isNil || isHolidayDeposit ? 0 : _round((_74 = (_73 = (_72 = payload.vat) === null || _72 === void 0 ? void 0 : _72.deductible) === null || _73 === void 0 ? void 0 : _73.toImpute) !== null && _74 !== void 0 ? _74 : 0),
238
238
  total: 0,
239
239
  onImportOtherThanOilProducts: isNil || isHolidayDeposit ? 0 : otherDeductibles,
240
240
  coefficient: isNil || isHolidayDeposit ? 100 : coefficient,
241
- onOilProducts: isNil || isHolidayDeposit ? 0 : _round((_82 = (_81 = (_80 = payload.vat) === null || _80 === void 0 ? void 0 : _80.deductible) === null || _81 === void 0 ? void 0 : _81.onOilProducts) !== null && _82 !== void 0 ? _82 : 0),
241
+ onOilProducts: isNil || isHolidayDeposit ? 0 : _round((_77 = (_76 = (_75 = payload.vat) === null || _75 === void 0 ? void 0 : _75.deductible) === null || _76 === void 0 ? void 0 : _76.onOilProducts) !== null && _77 !== void 0 ? _77 : 0),
242
242
  },
243
243
  otherRate: {
244
244
  oldRate: {
245
- base: isNil || isHolidayDeposit ? 0 : _round((_86 = (_85 = (_84 = (_83 = payload.vat) === null || _83 === void 0 ? void 0 : _83.otherRate) === null || _84 === void 0 ? void 0 : _84.oldRate) === null || _85 === void 0 ? void 0 : _85.base) !== null && _86 !== void 0 ? _86 : 0),
246
- tax: isNil || isHolidayDeposit ? 0 : _round((_90 = (_89 = (_88 = (_87 = payload.vat) === null || _87 === void 0 ? void 0 : _87.otherRate) === null || _88 === void 0 ? void 0 : _88.oldRate) === null || _89 === void 0 ? void 0 : _89.tax) !== null && _90 !== void 0 ? _90 : 0),
245
+ base: isNil || isHolidayDeposit ? 0 : _round((_81 = (_80 = (_79 = (_78 = payload.vat) === null || _78 === void 0 ? void 0 : _78.otherRate) === null || _79 === void 0 ? void 0 : _79.oldRate) === null || _80 === void 0 ? void 0 : _80.base) !== null && _81 !== void 0 ? _81 : 0),
246
+ tax: isNil || isHolidayDeposit ? 0 : _round((_85 = (_84 = (_83 = (_82 = payload.vat) === null || _82 === void 0 ? void 0 : _82.otherRate) === null || _83 === void 0 ? void 0 : _83.oldRate) === null || _84 === void 0 ? void 0 : _84.tax) !== null && _85 !== void 0 ? _85 : 0),
247
247
  },
248
248
  at1Dot75: {
249
249
  base: 0,
@@ -277,16 +277,16 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
277
277
  },
278
278
  credit: {
279
279
  amount: 0,
280
- refundAsked: isNil || isHolidayDeposit ? 0 : _round((_92 = (_91 = payload.credit) === null || _91 === void 0 ? void 0 : _91.refundAsked) !== null && _92 !== void 0 ? _92 : 0),
281
- transferedToSocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : _round((_94 = (_93 = payload.credit) === null || _93 === void 0 ? void 0 : _93.transferedToSocietyHeadOfGroup) !== null && _94 !== void 0 ? _94 : 0),
282
- assimiledTaxes: isNil || isHolidayDeposit ? 0 : _round((_96 = (_95 = payload.credit) === null || _95 === void 0 ? void 0 : _95.assimiledTaxes) !== null && _96 !== void 0 ? _96 : 0),
280
+ refundAsked: isNil || isHolidayDeposit ? 0 : _round((_87 = (_86 = payload.credit) === null || _86 === void 0 ? void 0 : _86.refundAsked) !== null && _87 !== void 0 ? _87 : 0),
281
+ transferedToSocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : _round((_89 = (_88 = payload.credit) === null || _88 === void 0 ? void 0 : _88.transferedToSocietyHeadOfGroup) !== null && _89 !== void 0 ? _89 : 0),
282
+ assimiledTaxes: isNil || isHolidayDeposit ? 0 : _round((_91 = (_90 = payload.credit) === null || _90 === void 0 ? void 0 : _90.assimiledTaxes) !== null && _91 !== void 0 ? _91 : 0),
283
283
  toReport: 0,
284
284
  ticRefund: 0,
285
285
  ticTransfered: 0,
286
286
  },
287
287
  toPay: {
288
288
  netDue: 0,
289
- acquittedBySocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : _round((_98 = (_97 = payload.toPay) === null || _97 === void 0 ? void 0 : _97.acquittedBySocietyHeadOfGroup) !== null && _98 !== void 0 ? _98 : 0),
289
+ acquittedBySocietyHeadOfGroup: isNil || isHolidayDeposit ? 0 : _round((_93 = (_92 = payload.toPay) === null || _92 === void 0 ? void 0 : _92.acquittedBySocietyHeadOfGroup) !== null && _93 !== void 0 ? _93 : 0),
290
290
  total: 0,
291
291
  },
292
292
  tic: {
@@ -300,7 +300,7 @@ export function getCerfa3310Century23Payload(accountingEntries, payload) {
300
300
  initialPayload.credit.amount = initialPayload.vat.grossDue - initialPayload.vat.deductible.total < 0 ? Math.abs(initialPayload.vat.grossDue - initialPayload.vat.deductible.total) : 0;
301
301
  initialPayload.toPay.netDue = initialPayload.vat.grossDue - initialPayload.vat.deductible.total > 0 ? initialPayload.vat.grossDue - initialPayload.vat.deductible.total : 0;
302
302
  initialPayload.credit.toReport = initialPayload.credit.amount - initialPayload.credit.refundAsked - initialPayload.credit.transferedToSocietyHeadOfGroup;
303
- initialPayload.toPay.total = initialPayload.toPay.netDue + initialPayload.credit.assimiledTaxes + ((_101 = (_100 = (_99 = initialPayload.tic) === null || _99 === void 0 ? void 0 : _99.total) === null || _100 === void 0 ? void 0 : _100.tax) !== null && _101 !== void 0 ? _101 : 0) - initialPayload.toPay.acquittedBySocietyHeadOfGroup;
303
+ initialPayload.toPay.total = initialPayload.toPay.netDue + initialPayload.credit.assimiledTaxes + ((_96 = (_95 = (_94 = initialPayload.tic) === null || _94 === void 0 ? void 0 : _94.total) === null || _95 === void 0 ? void 0 : _95.tax) !== null && _96 !== void 0 ? _96 : 0) - initialPayload.toPay.acquittedBySocietyHeadOfGroup;
304
304
  return initialPayload;
305
305
  }
306
306
  export function getCerfa3310Century23RegistrationFields(data) {
@@ -1374,6 +1374,7 @@ export const cerfa3310Century23Fields = [{
1374
1374
  {
1375
1375
  label: '26 - Remboursement de crédit de TVA demandé sur formulaire n° 3519',
1376
1376
  key: 'credit.refundAsked',
1377
+ visibleIf: 'credit.amount',
1377
1378
  type: 'number',
1378
1379
  },
1379
1380
  {