@silexpert/core 1.1.167 → 1.1.168
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/dist/cjs/types/Interface/models/IGedFile.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/cjs/utils/documents.js +1 -1
- package/dist/cjs/utils/documents.js.map +1 -1
- package/dist/mjs/types/Interface/models/IGedFile.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/mjs/utils/documents.js +1 -1
- package/dist/mjs/utils/documents.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Interface/models/IGedFile.ts +1 -0
- package/ts/utils/documents.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGedFile.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IGedFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAA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AAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGedFile.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IGedFile.ts"],"names":[],"mappings":"","sourcesContent":["import { IFile } from './IFile';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IGedFileType } from './IGedFileType';\nimport { IGedFolder } from './IGedFolder';\nimport { IUser } from './IUser';\nimport { ICustomerSignature } from './ICustomerSignature';\nimport { IBalanceSheet } from './IBalanceSheet';\n\n// gedFile\nexport interface IGedFile {\n id?: number;\n emissionDate?: Date | null;\n statutFile?: number | null;\n idTypeGedFile?: number | null;\n idUser?: number | null;\n idGedFolder: number;\n idSociety: number;\n idFile: number;\n typeFile?: number | null;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale \"Documents manquants\", on stock ici l'idUser associé au BP\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n fileFromGed?: IFile;\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n typeGedFile?: IGedFileType;\n gedFolder?: IGedFolder;\n businessPartner?: IUser;\n customerSignature?: ICustomerSignature;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IGedFile.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IGedFile.ts"],"names":[],"mappings":"","sourcesContent":["import { IFile } from './IFile';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IGedFileType } from './IGedFileType';\nimport { IGedFolder } from './IGedFolder';\nimport { IUser } from './IUser';\nimport { ICustomerSignature } from './ICustomerSignature';\nimport { IBalanceSheet } from './IBalanceSheet';\n\n// gedFile\nexport interface IGedFile {\n id?: number;\n emissionDate?: Date | null;\n statutFile?: number | null;\n idTypeGedFile?: number | null;\n idUser?: number | null;\n idGedFolder: number;\n idSociety: number;\n idFile: number;\n typeFile?: number | null;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale \"Documents manquants\", on stock ici l'idUser associé au BP\n idBusinessPartner?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n fileFromGed?: IFile;\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n typeGedFile?: IGedFileType;\n gedFolder?: IGedFolder;\n businessPartner?: IUser;\n customerSignature?: ICustomerSignature;\n}\n"]}
|
|
@@ -9,7 +9,7 @@ const requiredListDocs = (params) => {
|
|
|
9
9
|
const { dontHaveOldExpert, recoveryDate } = oldExpertInfo || {};
|
|
10
10
|
const { idLegalForm, dateOfRegistration } = society || {};
|
|
11
11
|
if (!idLegalForm)
|
|
12
|
-
|
|
12
|
+
return [];
|
|
13
13
|
if (isOnlyPrevi) {
|
|
14
14
|
return [Ged_1.GedFileType.IDENTITY_CARD, Ged_1.GedFileType.PLAQUETTE];
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../ts/utils/documents.ts"],"names":[],"mappings":";;;AACA,2CAAgD;AAChD,uDAAoD;AACpD,+BAA+B;AAE/B,MAAM,gBAAgB,GAAG,CAAC,MAAwB,EAAiB,EAAE;IACnE,MAAM,EACJ,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,GACzF,GAAG,MAAM,CAAC;IACX,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,GAAG,aAAa,IAAI,EAAE,CAAC;IAChE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAE1D,IAAI,CAAC,WAAW;QAAE,
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../ts/utils/documents.ts"],"names":[],"mappings":";;;AACA,2CAAgD;AAChD,uDAAoD;AACpD,+BAA+B;AAE/B,MAAM,gBAAgB,GAAG,CAAC,MAAwB,EAAiB,EAAE;IACnE,MAAM,EACJ,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,GACzF,GAAG,MAAM,CAAC;IACX,MAAM,EAAE,iBAAiB,EAAE,Y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AG,SAAS,EAAE,iBAAW,CAAC,kBAAkB,EAAE,iBAAW,CAAC,iDAAiD,EAAE,iBAAW,CAAC,iCAAiC,CAAC,CAAC;KACrK;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAGA,4CAAgB","sourcesContent":["import { RequiredDocsType } from '../types';\nimport { GedFileType } from '../types/Enum/Ged';\nimport { LegalForm } from '../types/Enum/LegalForm';\nimport * as dayjs from 'dayjs';\n\nconst requiredListDocs = (params: RequiredDocsType): GedFileType[] => {\n const { \n society, oldExpertInfo, isOnlyPrevi, isOnlyJuridic, isOnlySocial, isCreation, goToClient,\n } = params;\n const { dontHaveOldExpert, recoveryDate } = oldExpertInfo || {};\n const { idLegalForm, dateOfRegistration } = society || {};\n\n if (!idLegalForm) return [];\n\n if (isOnlyPrevi) {\n return [GedFileType.IDENTITY_CARD, GedFileType.PLAQUETTE];\n }\n if (isCreation) {\n return [GedFileType.IDENTITY_CARD, GedFileType.PERSONNAL_RIB, GedFileType.PLAQUETTE];\n }\n if (isOnlyJuridic || isOnlySocial) {\n return [GedFileType.RIB, GedFileType.PLAQUETTE];\n }\n\n const generique = [GedFileType.IDENTITY_CARD, GedFileType.RIB, GedFileType.PLAQUETTE];\n\n // Si le client faisait sa compta lui-même\n // et que le goToClient est supérieur à la date de reprise + 4 mois\n // et que la date de reprise est après la date de création de la société\n // alors liasse fiscale N-1 obligatoire !\n if (dontHaveOldExpert && \n recoveryDate && \n dateOfRegistration && \n dayjs(recoveryDate).add(4, 'months').diff(goToClient) < 0\n && dayjs(recoveryDate).isAfter(dateOfRegistration)\n ) {\n generique.push(GedFileType.FISCAL_BUNDLE);\n }\n\n if ([LegalForm.SAS.id, LegalForm.SA.id].includes(idLegalForm)) {\n generique.push(GedFileType.DISTRIBUTION_OF_SHARE);\n }\n\n if ([LegalForm.SELARLU.id, LegalForm.EURL.id, LegalForm.SASU.id, LegalForm.SA.id, LegalForm.SAS.id, LegalForm.SARL.id, LegalForm.SCI.id, LegalForm.EARL.id].includes(idLegalForm)) {\n return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.DBE2, GedFileType.SEPA];\n }\n if ([LegalForm.SELARL.id].includes(idLegalForm)) {\n return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.SEPA];\n }\n if ([LegalForm.EI.id, LegalForm.AUTO_ENTREPRENEUR.id].includes(idLegalForm)) {\n return [...generique, GedFileType.SIRENE, GedFileType.SEPA];\n }\n if ([LegalForm.EIRL.id].includes(idLegalForm)) {\n return [...generique, GedFileType.SIRENE, GedFileType.SEPA, GedFileType.PATRIMONY];\n }\n if ([LegalForm.ASSOCIATION.id].includes(idLegalForm)) {\n return [...generique, GedFileType.RULES_OF_PROCEDURE, GedFileType.REGISTRATION_OF_THE_ASSOCIATION_AT_THE_PREFECTURE, GedFileType.REPRESENTATIVE_OF_THE_ASSOCIATION];\n }\n return generique;\n};\n\nexport {\n requiredListDocs,\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGedFile.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IGedFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,UAAU,C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E,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGedFile.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IGedFile.ts"],"names":[],"mappings":"","sourcesContent":["import { IFile } from './IFile';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IGedFileType } from './IGedFileType';\nimport { IGedFolder } from './IGedFolder';\nimport { IUser } from './IUser';\nimport { ICustomerSignature } from './ICustomerSignature';\nimport { IBalanceSheet } from './IBalanceSheet';\n\n// gedFile\nexport interface IGedFile {\n id?: number;\n emissionDate?: Date | null;\n statutFile?: number | null;\n idTypeGedFile?: number | null;\n idUser?: number | null;\n idGedFolder: number;\n idSociety: number;\n idFile: number;\n typeFile?: number | null;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale \"Documents manquants\", on stock ici l'idUser associé au BP\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n fileFromGed?: IFile;\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n typeGedFile?: IGedFileType;\n gedFolder?: IGedFolder;\n businessPartner?: IUser;\n customerSignature?: ICustomerSignature;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IGedFile.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IGedFile.ts"],"names":[],"mappings":"","sourcesContent":["import { IFile } from './IFile';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IGedFileType } from './IGedFileType';\nimport { IGedFolder } from './IGedFolder';\nimport { IUser } from './IUser';\nimport { ICustomerSignature } from './ICustomerSignature';\nimport { IBalanceSheet } from './IBalanceSheet';\n\n// gedFile\nexport interface IGedFile {\n id?: number;\n emissionDate?: Date | null;\n statutFile?: number | null;\n idTypeGedFile?: number | null;\n idUser?: number | null;\n idGedFolder: number;\n idSociety: number;\n idFile: number;\n typeFile?: number | null;\n idExercice?: number | null;\n idBalanceSheet?: number | null;\n idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale \"Documents manquants\", on stock ici l'idUser associé au BP\n idBusinessPartner?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n fileFromGed?: IFile;\n society?: ISociety;\n exercice?: IExercice;\n balanceSheet?: IBalanceSheet;\n typeGedFile?: IGedFileType;\n gedFolder?: IGedFolder;\n businessPartner?: IUser;\n customerSignature?: ICustomerSignature;\n}\n"]}
|
|
@@ -6,7 +6,7 @@ const requiredListDocs = (params) => {
|
|
|
6
6
|
const { dontHaveOldExpert, recoveryDate } = oldExpertInfo || {};
|
|
7
7
|
const { idLegalForm, dateOfRegistration } = society || {};
|
|
8
8
|
if (!idLegalForm)
|
|
9
|
-
|
|
9
|
+
return [];
|
|
10
10
|
if (isOnlyPrevi) {
|
|
11
11
|
return [GedFileType.IDENTITY_CARD, GedFileType.PLAQUETTE];
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../ts/utils/documents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,gBAAgB,GAAG,CAAC,MAAwB,EAAiB,EAAE;IACnE,MAAM,EACJ,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,GACzF,GAAG,MAAM,CAAC;IACX,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,GAAG,aAAa,IAAI,EAAE,CAAC;IAChE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAE1D,IAAI,CAAC,WAAW;QAAE,
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../ts/utils/documents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,KAAK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M,EAAE,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;KACpF;IACD,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;QACpD,OAAO,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,kBAAkB,EAAE,WAAW,CAAC,iDAAiD,EAAE,WAAW,CAAC,iCAAiC,CAAC,CAAC;KACrK;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,OAAO,EACL,gBAAgB,GACjB,CAAC","sourcesContent":["import { RequiredDocsType } from '../types';\nimport { GedFileType } from '../types/Enum/Ged';\nimport { LegalForm } from '../types/Enum/LegalForm';\nimport * as dayjs from 'dayjs';\n\nconst requiredListDocs = (params: RequiredDocsType): GedFileType[] => {\n const { \n society, oldExpertInfo, isOnlyPrevi, isOnlyJuridic, isOnlySocial, isCreation, goToClient,\n } = params;\n const { dontHaveOldExpert, recoveryDate } = oldExpertInfo || {};\n const { idLegalForm, dateOfRegistration } = society || {};\n\n if (!idLegalForm) return [];\n\n if (isOnlyPrevi) {\n return [GedFileType.IDENTITY_CARD, GedFileType.PLAQUETTE];\n }\n if (isCreation) {\n return [GedFileType.IDENTITY_CARD, GedFileType.PERSONNAL_RIB, GedFileType.PLAQUETTE];\n }\n if (isOnlyJuridic || isOnlySocial) {\n return [GedFileType.RIB, GedFileType.PLAQUETTE];\n }\n\n const generique = [GedFileType.IDENTITY_CARD, GedFileType.RIB, GedFileType.PLAQUETTE];\n\n // Si le client faisait sa compta lui-même\n // et que le goToClient est supérieur à la date de reprise + 4 mois\n // et que la date de reprise est après la date de création de la société\n // alors liasse fiscale N-1 obligatoire !\n if (dontHaveOldExpert && \n recoveryDate && \n dateOfRegistration && \n dayjs(recoveryDate).add(4, 'months').diff(goToClient) < 0\n && dayjs(recoveryDate).isAfter(dateOfRegistration)\n ) {\n generique.push(GedFileType.FISCAL_BUNDLE);\n }\n\n if ([LegalForm.SAS.id, LegalForm.SA.id].includes(idLegalForm)) {\n generique.push(GedFileType.DISTRIBUTION_OF_SHARE);\n }\n\n if ([LegalForm.SELARLU.id, LegalForm.EURL.id, LegalForm.SASU.id, LegalForm.SA.id, LegalForm.SAS.id, LegalForm.SARL.id, LegalForm.SCI.id, LegalForm.EARL.id].includes(idLegalForm)) {\n return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.DBE2, GedFileType.SEPA];\n }\n if ([LegalForm.SELARL.id].includes(idLegalForm)) {\n return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.SEPA];\n }\n if ([LegalForm.EI.id, LegalForm.AUTO_ENTREPRENEUR.id].includes(idLegalForm)) {\n return [...generique, GedFileType.SIRENE, GedFileType.SEPA];\n }\n if ([LegalForm.EIRL.id].includes(idLegalForm)) {\n return [...generique, GedFileType.SIRENE, GedFileType.SEPA, GedFileType.PATRIMONY];\n }\n if ([LegalForm.ASSOCIATION.id].includes(idLegalForm)) {\n return [...generique, GedFileType.RULES_OF_PROCEDURE, GedFileType.REGISTRATION_OF_THE_ASSOCIATION_AT_THE_PREFECTURE, GedFileType.REPRESENTATIVE_OF_THE_ASSOCIATION];\n }\n return generique;\n};\n\nexport {\n requiredListDocs,\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.168",
|
|
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": "dist/cjs/index.js",
|
|
@@ -21,6 +21,7 @@ export interface IGedFile {
|
|
|
21
21
|
idExercice?: number | null;
|
|
22
22
|
idBalanceSheet?: number | null;
|
|
23
23
|
idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale "Documents manquants", on stock ici l'idUser associé au BP
|
|
24
|
+
idBusinessPartner?: number | null;
|
|
24
25
|
createdAt?: Date | null;
|
|
25
26
|
updatedAt?: Date | null;
|
|
26
27
|
|
package/ts/utils/documents.ts
CHANGED
|
@@ -10,7 +10,7 @@ const requiredListDocs = (params: RequiredDocsType): GedFileType[] => {
|
|
|
10
10
|
const { dontHaveOldExpert, recoveryDate } = oldExpertInfo || {};
|
|
11
11
|
const { idLegalForm, dateOfRegistration } = society || {};
|
|
12
12
|
|
|
13
|
-
if (!idLegalForm)
|
|
13
|
+
if (!idLegalForm) return [];
|
|
14
14
|
|
|
15
15
|
if (isOnlyPrevi) {
|
|
16
16
|
return [GedFileType.IDENTITY_CARD, GedFileType.PLAQUETTE];
|