@silexpert/core 1.2.9 → 1.2.10
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/api/resources/TimeRecorder.d.ts +2 -2
- package/dist/cjs/api/resources/TimeRecorder.d.ts.map +1 -1
- package/dist/cjs/api/resources/TimeRecorder.js +4 -4
- package/dist/cjs/api/resources/TimeRecorder.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts +1 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.js +1 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +5 -1
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.js +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/cjs/utils/checklist.js +1 -1
- package/dist/cjs/utils/checklist.js.map +1 -1
- package/dist/mjs/api/resources/TimeRecorder.d.ts +2 -2
- package/dist/mjs/api/resources/TimeRecorder.d.ts.map +1 -1
- package/dist/mjs/api/resources/TimeRecorder.js +4 -4
- package/dist/mjs/api/resources/TimeRecorder.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts +1 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.js +1 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +5 -1
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.js +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/mjs/utils/checklist.js +1 -1
- package/dist/mjs/utils/checklist.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/TimeRecorder.ts +4 -4
- package/ts/types/Enum/BalanceSheetQuestion.ts +1 -0
- package/ts/types/Enum/BrandClementine.ts +5 -1
- package/ts/types/Enum/BrandLegalstart.ts +1 -1
- package/ts/types/Enum/IncomeStatement.ts +1 -1
- package/ts/utils/checklist.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncomeStatement.js","sourceRoot":"","sources":["../../../../ts/types/Enum/IncomeStatement.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,qBAAqB,GAAsB;IACtD;QACE,IAAI,EAAE,oCAAoC;QAC1C,GAAG,EAAE,sBAAsB;QAC3B,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,IAAI;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,wBAAwB;wBAC9B,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;oBACD;wBACE,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;qBACrD;oBACD;wBACE,IAAI,EAAE,gCAAgC;wBACtC,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;oBACD;wBACE,IAAI,EAAE,wDAAwD;wBAC9D,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,C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EAAE,iEAAiE;wBACvE,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;iBACA;aACF;YACD;gBACE,IAAI,EAAE,2DAA2D;gBACjE,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;wBAClC,KAAK,EAAE,CAAC;qBACT;oBACD;wBACE,IAAI,EAAE,kEAAkE;wBACxE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;wBAClC,KAAK,EAAE,CAAC;qBACT;iBACF;aACF;SACF;KACF;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,CAAC,0BAA0B,CAAC;QAC5C,mBAAmB,EAAE,CAAC,0BAA0B,CAAC;QACjD,GAAG,EAAE,mBAAmB;KACzB;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,CAAC,sBAAsB,EAAE,wBAAwB,EAAE,0BAA0B,CAAC;QAC9F,mBAAmB,EAAE,CAAC,wBAAwB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,WAAW,CAAC;QAClH,GAAG,EAAE,kBAAkB;KACxB;CACF,CAAC","sourcesContent":["type IncomeStatementField = {\n name: string;\n fields?: IncomeStatementField[];\n accounts?: string[];\n total: number;\n excludeAccounts?: string[];\n};\n\nexport type IncomeStatement = {\n name: string;\n fields?: IncomeStatementField[],\n total: number;\n accounts?: string[];\n excludeAccounts?: string[];\n key: string;\n calculation?: boolean; // Doit être calculé avec calculationAdd & calculationSubtract\n calculationAdd?: string[]; // Tableau des keys à additionner pour obtenir le total\n calculationSubtract?: string[]; // Tableau des keys à soustraire pour obtenir le total\n isProduct?: boolean; // Si c'est un produit, on fait x -1\n};\n\nexport const INCOME_STATEMENT_LIST: IncomeStatement[] = [\n {\n name: 'Total des produits d\\'exploitation',\n key: 'totalOperatingIncome',\n total: 0,\n isProduct: true,\n fields: [\n {\n name: 'Chiffre d\\'Affaires',\n total: 0,\n fields: [\n {\n name: 'Ventes de marchandises',\n total: 0,\n accounts: ['707'],\n },\n {\n name: 'Production vendue',\n total: 0,\n accounts: ['701', '702', '703', '704', '705', '706'],\n },\n {\n name: 'Produits des activités annexes',\n total: 0,\n accounts: ['708'],\n },\n {\n name: 'Rabais, remises, ristournes accordés par l\\'entreprise',\n total: 0,\n accounts: ['709'],\n },\n ],\n },\n {\n name: 'Production stockée',\n total: 0,\n accounts: ['71'],\n },\n {\n name: 'Production immobilisée',\n total: 0,\n accounts: ['72'],\n },\n {\n name: 'Subventions d\\'exploitation',\n total: 0,\n accounts: ['74'],\n },\n {\n name: 'Reprises sur provisions, dépréciations et amortissements, transferts de charges',\n total: 0,\n accounts: ['781', '791'],\n },\n {\n name: 'Autres produits de gestion courante',\n total: 0,\n accounts: ['75'],\n },\n ],\n },\n {\n name: 'Total des charges d\\'exploitation',\n key: 'totalOperatingExpenses',\n total: 0,\n fields: [\n {\n name: 'Achats de marchandises',\n total: 0,\n accounts: ['607'],\n },\n {\n name: 'Variation des stocks de marchandises',\n total: 0,\n accounts: ['6037'],\n },\n {\n name: 'Achats de matières premieres et autres approvisionnements',\n total: 0,\n accounts: ['60'],\n excludeAccounts: ['607', '603', '606', '604'],\n },\n {\n name: 'Variation des stocks de matières premieres et autres approvisionnements',\n total: 0,\n accounts: ['603'],\n excludeAccounts: ['6037'],\n },\n {\n name: 'Autres achats et charges externes',\n total: 0,\n accounts: ['61', '62', '606', '604'],\n },\n {\n name: 'Impôts, taxes et versements assimilés',\n total: 0,\n accounts: ['63'],\n },\n {\n name: 'Salaires et traitements',\n total: 0,\n accounts: ['641', '642', '643', '644'],\n },\n {\n name: 'Charges sociales',\n total: 0,\n accounts: ['645', '646', '647', '648', '649'],\n },\n {\n name: 'Dotations aux amortissements et provisions',\n total: 0,\n accounts: ['681', '682', '683', '684', '685'],\n },\n {\n name: 'Autres charges de gestion courante',\n total: 0,\n accounts: ['65'],\n },\n ],\n },\n {\n name: 'Résultat d\\'exploitation',\n key: 'operatingResult',\n total: 0,\n calculation: true,\n calculationAdd: ['totalOperatingIncome'],\n calculationSubtract: ['totalOperatingExpenses'],\n },\n {\n name: 'Total des produits financiers',\n key: 'totalFinancialProducts',\n total: 0,\n isProduct: true,\n fields: [\n {\n name: 'De participations',\n total: 0,\n accounts: ['761'],\n },\n {\n name: 'D\\'autres valeurs mobilières et créances de l\\'actif immobilisé',\n total: 0,\n accounts: ['762'],\n },\n {\n name: 'Autres intérêts et produits assimilés',\n total: 0,\n accounts: ['763', '764', '765', '768'],\n },\n {\n name: 'Reprises sur dépréciations, provisions et transferts de charges financières',\n total: 0,\n accounts: ['786', '796'],\n }, {\n name: 'Différences positives de change',\n total: 0,\n accounts: ['766'],\n },\n {\n name: 'Produits nets sur cessions de valeurs mobilières de placement',\n total: 0,\n accounts: ['767'],\n },\n ],\n },\n {\n name: 'Total des charges financières',\n total: 0,\n key: 'totalFinancialExpenses',\n fields: [\n {\n name: 'Dotations aux amortissements, dépréciations et provisions',\n total: 0,\n accounts: ['686'],\n },\n {\n name: 'Intérêts et charges assimilés',\n total: 0,\n accounts: ['661', '664', '665', '668'],\n },\n {\n name: 'Différences négatives de change',\n total: 0,\n accounts: ['666'],\n },\n {\n name: 'Charges nettes sur cessions de valeurs mobilières de placement',\n total: 0,\n accounts: ['667'],\n },\n ],\n },\n {\n name: 'Résultat financier',\n total: 0,\n calculation: true,\n calculationAdd: ['totalFinancialProducts'],\n calculationSubtract: ['totalFinancialExpenses'],\n key: 'financialResult',\n },\n {\n name: 'Résultat courant avant impôt',\n total: 0,\n calculation: true,\n calculationAdd: ['totalOperatingIncome', 'totalFinancialProducts'],\n calculationSubtract: ['totalOperatingExpenses', 'totalFinancialExpenses'],\n key: 'profitBeforeTax',\n },\n {\n name: 'Total des produits exceptionnels',\n total: 0,\n key: 'totalExceptionalProducts',\n isProduct: true,\n fields: [\n {\n name: 'Sur opérations de gestion',\n total: 0,\n accounts: ['771', '772'],\n },\n {\n name: 'Sur opérations en capital',\n total: 0,\n fields: [{\n name: 'Produits des cessions d\\'éléments d\\'actifs',\n total: 0,\n accounts: ['775'],\n },\n {\n name: 'Subventions d\\'investissement virées aux résultats de l\\'exercice',\n total: 0,\n accounts: ['777'],\n },\n {\n name: 'Autre',\n total: 0,\n accounts: ['778'],\n },\n ],\n },\n {\n name: 'Reprises sur dépréciations, provisions et transferts de charges exceptionnelles',\n total: 0,\n accounts: ['787', '797'],\n },\n ],\n },\n {\n name: 'Total des charges exceptionnelles',\n total: 0,\n key: 'totalExceptionalExpenses',\n fields: [\n {\n name: 'Sur opérations de gestion',\n total: 0,\n accounts: ['671', '672'],\n },\n {\n name: 'Sur opérations en capital',\n total: 0,\n fields: [{\n name: 'Valeurs comptables des éléments immobilisés et financiers cédés',\n total: 0,\n accounts: ['675'],\n },\n {\n name: 'Autre',\n total: 0,\n accounts: ['678'],\n },\n ],\n },\n {\n name: 'Dotations aux amortissements, dépréciations et provisions',\n total: 0,\n fields: [\n {\n name: 'Dotations aux provisions réglementées',\n accounts: ['6872', '6873', '6874'],\n total: 0,\n },\n {\n name: 'Dotations aux amortissements, dépréciations et autres provisions',\n accounts: ['6871', '6875', '6876'],\n total: 0,\n },\n ],\n },\n ],\n },\n {\n name: 'Résultat exceptionnel',\n total: 0,\n calculation: true,\n calculationAdd: ['totalExceptionalProducts'],\n calculationSubtract: ['totalExceptionalExpenses'],\n key: 'exceptionalResult',\n },\n {\n name: 'Impôt sur les bénéfices',\n total: 0,\n key: 'incomeTax',\n accounts: ['695'],\n },\n {\n name: 'Résultat de l\\'exercice',\n total: 0,\n calculation: true,\n calculationAdd: ['totalOperatingIncome', 'totalFinancialProducts', 'totalExceptionalProducts'],\n calculationSubtract: ['totalOperatingExpenses', 'totalFinancialExpenses', 'totalExceptionalExpenses', 'incomeTax'],\n key: 'resultOfExercise',\n },\n];"]}
|
|
1
|
+
{"version":3,"file":"IncomeStatement.js","sourceRoot":"","sources":["../../../../ts/types/Enum/IncomeStatement.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,qBAAqB,GAAsB;IACtD;QACE,IAAI,EAAE,oCAAoC;QAC1C,GAAG,EAAE,sBAAsB;QAC3B,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,IAAI;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,wBAAwB;wBAC9B,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;oBACD;wBACE,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;qBACrD;oBACD;wBACE,IAAI,EAAE,gCAAgC;wBACtC,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;oBACD;wBACE,IAAI,EAAE,wDAAwD;wBAC9D,KAAK,EAAE,CAAC;wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;iBACF;aACF;YACD;gBACE,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,CAAC;gBACR,QAAQ,EAAE,CAAC,IAAI,CAAC;aACjB;YACD;gBACE,IAAI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wBACR,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;iBACA;aACF;YACD;gBACE,IAAI,EAAE,2DAA2D;gBACjE,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;wBAClC,KAAK,EAAE,CAAC;qBACT;oBACD;wBACE,IAAI,EAAE,kEAAkE;wBACxE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;wBAClC,KAAK,EAAE,CAAC;qBACT;iBACF;aACF;SACF;KACF;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,CAAC,0BAA0B,CAAC;QAC5C,mBAAmB,EAAE,CAAC,0BAA0B,CAAC;QACjD,GAAG,EAAE,mBAAmB;KACzB;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,CAAC,sBAAsB,EAAE,wBAAwB,EAAE,0BAA0B,CAAC;QAC9F,mBAAmB,EAAE,CAAC,wBAAwB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,WAAW,CAAC;QAClH,GAAG,EAAE,kBAAkB;KACxB;CACF,CAAC","sourcesContent":["type IncomeStatementField = {\n name: string;\n fields?: IncomeStatementField[];\n accounts?: string[];\n total: number;\n excludeAccounts?: string[];\n};\n\nexport type IncomeStatement = {\n name: string;\n fields?: IncomeStatementField[],\n total: number;\n accounts?: string[];\n excludeAccounts?: string[];\n key: string;\n calculation?: boolean; // Doit être calculé avec calculationAdd & calculationSubtract\n calculationAdd?: string[]; // Tableau des keys à additionner pour obtenir le total\n calculationSubtract?: string[]; // Tableau des keys à soustraire pour obtenir le total\n isProduct?: boolean; // Si c'est un produit, on fait x -1\n};\n\nexport const INCOME_STATEMENT_LIST: IncomeStatement[] = [\n {\n name: 'Total des produits d\\'exploitation',\n key: 'totalOperatingIncome',\n total: 0,\n isProduct: true,\n fields: [\n {\n name: 'Chiffre d\\'Affaires',\n total: 0,\n fields: [\n {\n name: 'Ventes de marchandises',\n total: 0,\n accounts: ['707'],\n },\n {\n name: 'Production vendue',\n total: 0,\n accounts: ['701', '702', '703', '704', '705', '706'],\n },\n {\n name: 'Produits des activités annexes',\n total: 0,\n accounts: ['708'],\n },\n {\n name: 'Rabais, remises, ristournes accordés par l\\'entreprise',\n total: 0,\n accounts: ['709'],\n },\n ],\n },\n {\n name: 'Production stockée',\n total: 0,\n accounts: ['71'],\n },\n {\n name: 'Production immobilisée',\n total: 0,\n accounts: ['72'],\n },\n {\n name: 'Subventions d\\'exploitation',\n total: 0,\n accounts: ['74'],\n },\n {\n name: 'Reprises sur provisions, dépréciations et amortissements, transferts de charges',\n total: 0,\n accounts: ['781', '791'],\n },\n {\n name: 'Autres produits de gestion courante',\n total: 0,\n accounts: ['75'],\n },\n ],\n },\n {\n name: 'Total des charges d\\'exploitation',\n key: 'totalOperatingExpenses',\n total: 0,\n fields: [\n {\n name: 'Achats de marchandises',\n total: 0,\n accounts: ['607'],\n },\n {\n name: 'Variation des stocks de marchandises',\n total: 0,\n accounts: ['6037'],\n },\n {\n name: 'Achats de matières premieres et autres approvisionnements',\n total: 0,\n accounts: ['60'],\n excludeAccounts: ['607', '603', '606', '604'],\n },\n {\n name: 'Variation des stocks de matières premieres et autres approvisionnements',\n total: 0,\n accounts: ['603'],\n excludeAccounts: ['6037'],\n },\n {\n name: 'Autres achats et charges externes',\n total: 0,\n accounts: ['61', '62', '606', '604'],\n },\n {\n name: 'Impôts, taxes et versements assimilés',\n total: 0,\n accounts: ['63'],\n },\n {\n name: 'Salaires et traitements',\n total: 0,\n accounts: ['641', '642', '643', '644'],\n },\n {\n name: 'Charges sociales',\n total: 0,\n accounts: ['645', '646', '647', '648', '649'],\n },\n {\n name: 'Dotations aux amortissements et provisions',\n total: 0,\n accounts: ['681', '682', '683', '684', '685'],\n },\n {\n name: 'Autres charges de gestion courante',\n total: 0,\n accounts: ['65'],\n },\n ],\n },\n {\n name: 'Résultat d\\'exploitation',\n key: 'operatingResult',\n total: 0,\n calculation: true,\n calculationAdd: ['totalOperatingIncome'],\n calculationSubtract: ['totalOperatingExpenses'],\n },\n {\n name: 'Total des produits financiers',\n key: 'totalFinancialProducts',\n total: 0,\n isProduct: true,\n fields: [\n {\n name: 'De participations',\n total: 0,\n accounts: ['761'],\n },\n {\n name: 'D\\'autres valeurs mobilières et créances de l\\'actif immobilisé',\n total: 0,\n accounts: ['762'],\n },\n {\n name: 'Autres intérêts et produits assimilés',\n total: 0,\n accounts: ['760', '763', '764', '765', '768'],\n },\n {\n name: 'Reprises sur dépréciations, provisions et transferts de charges financières',\n total: 0,\n accounts: ['786', '796'],\n }, {\n name: 'Différences positives de change',\n total: 0,\n accounts: ['766'],\n },\n {\n name: 'Produits nets sur cessions de valeurs mobilières de placement',\n total: 0,\n accounts: ['767'],\n },\n ],\n },\n {\n name: 'Total des charges financières',\n total: 0,\n key: 'totalFinancialExpenses',\n fields: [\n {\n name: 'Dotations aux amortissements, dépréciations et provisions',\n total: 0,\n accounts: ['686'],\n },\n {\n name: 'Intérêts et charges assimilés',\n total: 0,\n accounts: ['661', '664', '665', '668'],\n },\n {\n name: 'Différences négatives de change',\n total: 0,\n accounts: ['666'],\n },\n {\n name: 'Charges nettes sur cessions de valeurs mobilières de placement',\n total: 0,\n accounts: ['667'],\n },\n ],\n },\n {\n name: 'Résultat financier',\n total: 0,\n calculation: true,\n calculationAdd: ['totalFinancialProducts'],\n calculationSubtract: ['totalFinancialExpenses'],\n key: 'financialResult',\n },\n {\n name: 'Résultat courant avant impôt',\n total: 0,\n calculation: true,\n calculationAdd: ['totalOperatingIncome', 'totalFinancialProducts'],\n calculationSubtract: ['totalOperatingExpenses', 'totalFinancialExpenses'],\n key: 'profitBeforeTax',\n },\n {\n name: 'Total des produits exceptionnels',\n total: 0,\n key: 'totalExceptionalProducts',\n isProduct: true,\n fields: [\n {\n name: 'Sur opérations de gestion',\n total: 0,\n accounts: ['771', '772'],\n },\n {\n name: 'Sur opérations en capital',\n total: 0,\n fields: [{\n name: 'Produits des cessions d\\'éléments d\\'actifs',\n total: 0,\n accounts: ['775'],\n },\n {\n name: 'Subventions d\\'investissement virées aux résultats de l\\'exercice',\n total: 0,\n accounts: ['777'],\n },\n {\n name: 'Autre',\n total: 0,\n accounts: ['778'],\n },\n ],\n },\n {\n name: 'Reprises sur dépréciations, provisions et transferts de charges exceptionnelles',\n total: 0,\n accounts: ['787', '797'],\n },\n ],\n },\n {\n name: 'Total des charges exceptionnelles',\n total: 0,\n key: 'totalExceptionalExpenses',\n fields: [\n {\n name: 'Sur opérations de gestion',\n total: 0,\n accounts: ['671', '672'],\n },\n {\n name: 'Sur opérations en capital',\n total: 0,\n fields: [{\n name: 'Valeurs comptables des éléments immobilisés et financiers cédés',\n total: 0,\n accounts: ['675'],\n },\n {\n name: 'Autre',\n total: 0,\n accounts: ['678'],\n },\n ],\n },\n {\n name: 'Dotations aux amortissements, dépréciations et provisions',\n total: 0,\n fields: [\n {\n name: 'Dotations aux provisions réglementées',\n accounts: ['6872', '6873', '6874'],\n total: 0,\n },\n {\n name: 'Dotations aux amortissements, dépréciations et autres provisions',\n accounts: ['6871', '6875', '6876'],\n total: 0,\n },\n ],\n },\n ],\n },\n {\n name: 'Résultat exceptionnel',\n total: 0,\n calculation: true,\n calculationAdd: ['totalExceptionalProducts'],\n calculationSubtract: ['totalExceptionalExpenses'],\n key: 'exceptionalResult',\n },\n {\n name: 'Impôt sur les bénéfices',\n total: 0,\n key: 'incomeTax',\n accounts: ['695'],\n },\n {\n name: 'Résultat de l\\'exercice',\n total: 0,\n calculation: true,\n calculationAdd: ['totalOperatingIncome', 'totalFinancialProducts', 'totalExceptionalProducts'],\n calculationSubtract: ['totalOperatingExpenses', 'totalFinancialExpenses', 'totalExceptionalExpenses', 'incomeTax'],\n key: 'resultOfExercise',\n },\n];"]}
|
|
@@ -27,7 +27,7 @@ export function getAllBlockingIssues(checklist, meta) {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
else if ([ChecklistDetailType.SELECT, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {
|
|
30
|
-
if (!answer.value || answer.value === '0') {
|
|
30
|
+
if ((!answer.value && !(question.name === ChecklistDetailName.IS_WAITING_ACCOUNT_RESET || question.name === ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER)) || answer.value === '0') {
|
|
31
31
|
blockingIssues.push(question);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../../ts/utils/checklist.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAAE,mBAAmB,EAAE,iBAAiB,GAC5D,MAAM,UAAU,CAAC;AAElB,MAAM,UAAU,oBAAoB,CAAC,SAAqB,EAAE,IAA+B;IACzF,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAExC,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9M,MAAM,cAAc,GAAqB,EAAE,CAAC;IAE5C,iBAAiB,CAAC,OAAO,CAA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AAC,KAAK,IAAI,MAAM,CAAC,KAAK,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;gBAClH,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;aAAM,IAAI,CAAC,mBAAmB,CAAC,MAAgB,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,UAAU,EAAE,CAAC;YAC1J,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,wBAAwB,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,6BAA6B,CAAC,CAAE,IAAI,MAAM,CAAC,KAAK,KAAK,GAAG,EAAE,CAAC;gBACzL,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC;AACxB,CAAC","sourcesContent":["import {\n ChecklistDetailName, ChecklistDetailType, ChecklistTypeEnum, IChecklist, IChecklistType, QueryGetAllBlockingIssues,\n} from '../types';\n\nexport function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlockingIssues): IChecklistType[] {\n const { questionsList, answers } = meta;\n\n const blockingQuestions = questionsList.filter((q) => (checklist.type === ChecklistTypeEnum.REINFORCED ? q.isBlockingReinforced : checklist.type === ChecklistTypeEnum.DEFAULT ? q.isBlockingSimple : false));\n const blockingIssues: IChecklistType[] = [];\n\n blockingQuestions.forEach((question) => {\n const answer = answers.find((a) => a.idTypeChecklist === question.id);\n\n if (!answer) {\n blockingIssues.push(question);\n } else if (question.name === ChecklistDetailName.ACTION_TAKEN) {\n // Comptes bancaires actifs synchronisés ?\n const questionForAreAllBankAccountsSynchronized = questionsList.find((q) => q.name === ChecklistDetailName.ARE_ALL_BANK_ACCOUNTS_SYNCHRONIZED);\n const answerForAreAllBankAccountsSynchronized = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAreAllBankAccountsSynchronized?.id);\n\n // Applicatin annotée à 80/100% ?\n const questionForAnnoted = questionsList.find((q) => q.name === (checklist.type === ChecklistTypeEnum.REINFORCED ? ChecklistDetailName.FULLY_ANNOTED : ChecklistDetailName.ALMOST_ANNOTED));\n const answerForAnnoted = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAnnoted?.id);\n\n if ((!answerForAnnoted?.value || answerForAnnoted.value === '0' || !answerForAreAllBankAccountsSynchronized?.value || answerForAreAllBankAccountsSynchronized.value === '0') && (answer.value === '2' || answer.value === '0' || !answer.value || answer.value === '')) {\n blockingIssues.push(question);\n }\n } else if (question.name === ChecklistDetailName.HAS_JUSTIFIED_CONTRIBUTIONS) {\n const questionForComment = questionsList.find((q) => q.name === ChecklistDetailName.COMMENTS);\n const comment = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForComment?.id);\n\n if (!answer.value || answer.value === '0' || (answer.value === '1' && (!comment?.value || comment?.value === ''))) {\n blockingIssues.push(question);\n }\n } else if ([ChecklistDetailType.SELECT as string, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {\n if ((!answer.value && !(question.name === ChecklistDetailName.IS_WAITING_ACCOUNT_RESET || question.name === ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER) ) || answer.value === '0') {\n blockingIssues.push(question);\n }\n }\n });\n\n return blockingIssues;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
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,12 +21,12 @@ export class TimeRecorder extends Resource {
|
|
|
21
21
|
getAllUsersNotYetConnected(date?: string): Promise<ReadUsersNotConnected[]> {
|
|
22
22
|
return this.axios.$get('/users/not-connected', { params: date });
|
|
23
23
|
}
|
|
24
|
-
getPaginatedDelays(params: QueryPaginatedDelays): Promise<BasePaginate<ReadPaginatedDelays>> {
|
|
24
|
+
getPaginatedDelays(params: QueryPaginatedDelays, signal?: AbortSignal): Promise<BasePaginate<ReadPaginatedDelays>> {
|
|
25
25
|
return this.axios.$get('paginated-delays',
|
|
26
|
-
{ params });
|
|
26
|
+
{ params, ...(signal ? { signal } : {}) });
|
|
27
27
|
}
|
|
28
|
-
getStats(params: QueryTimeRecorderGetStats): Promise<ReadPlaceToWork> {
|
|
29
|
-
return this.axios.$get('/stats', { params });
|
|
28
|
+
getStats(params: QueryTimeRecorderGetStats, signal?: AbortSignal): Promise<ReadPlaceToWork> {
|
|
29
|
+
return this.axios.$get('/stats', { params, ...(signal ? { signal } : {}) });
|
|
30
30
|
}
|
|
31
31
|
getUsersAbsent(): Promise<ReadUsersAbsent[]> {
|
|
32
32
|
return this.axios.$get('/users/absent');
|
|
@@ -188,6 +188,7 @@ export enum Question {
|
|
|
188
188
|
TAKEOVER_OF_AILING_FIRMS = 'TAKEOVER_OF_AILING_FIRMS',
|
|
189
189
|
EMPLOYMENT_AREA_TO_BE_REVITALIZED = 'EMPLOYMENT_AREA_TO_BE_REVITALIZED',
|
|
190
190
|
OVERSEAS_INVESTMENTS = 'OVERSEAS_INVESTMENTS',
|
|
191
|
+
OVERSEAS_INVESTMENTS_2024 = 'OVERSEAS_INVESTMENTS_2024',
|
|
191
192
|
|
|
192
193
|
OTHER_IMMOBILIZATIONS_ENDOWMENT = 'OTHER_IMMOBILIZATIONS_ENDOWMENT',
|
|
193
194
|
OTHER_IMMOBILIZATIONS_RECOVERY = 'OTHER_IMMOBILIZATIONS_RECOVERY',
|
|
@@ -128,7 +128,8 @@ export const BrandClementine: Brand[] = [
|
|
|
128
128
|
commercialName: 'Clementine',
|
|
129
129
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
|
|
130
130
|
colors: {
|
|
131
|
-
primary: '#
|
|
131
|
+
primary: '#5363EC',
|
|
132
|
+
primary500: '#5363EC',
|
|
132
133
|
footerColor: '#f3692f',
|
|
133
134
|
},
|
|
134
135
|
listPhones: {
|
|
@@ -201,6 +202,7 @@ export const BrandClementine: Brand[] = [
|
|
|
201
202
|
},
|
|
202
203
|
colors: {
|
|
203
204
|
primary: '#D8192D',
|
|
205
|
+
primary500: '#D8192D',
|
|
204
206
|
sendContract: '#f3692f',
|
|
205
207
|
},
|
|
206
208
|
internalInvoicing: {
|
|
@@ -234,6 +236,7 @@ export const BrandClementine: Brand[] = [
|
|
|
234
236
|
},
|
|
235
237
|
colors: {
|
|
236
238
|
primary: '#f39a00',
|
|
239
|
+
primary500: '#f39a00',
|
|
237
240
|
footerColor: '#f3692f',
|
|
238
241
|
},
|
|
239
242
|
internalInvoicing: {
|
|
@@ -311,6 +314,7 @@ export const BrandClementine: Brand[] = [
|
|
|
311
314
|
},
|
|
312
315
|
colors: {
|
|
313
316
|
primary: '#38A1FF',
|
|
317
|
+
primary500: '#38A1FF',
|
|
314
318
|
footerColor: '#00A2FF',
|
|
315
319
|
},
|
|
316
320
|
internalInvoicing: {
|
|
@@ -10,7 +10,7 @@ export const BrandLegalstart: Brand[] = [
|
|
|
10
10
|
logoS3: 'config/55624137-0c29-5f16-a079-b2904a6f9e7b.svg',
|
|
11
11
|
privacyPolicy: 'https://www.legalstart.fr/corp/vie-privee/',
|
|
12
12
|
colors: {
|
|
13
|
-
primary: '#
|
|
13
|
+
primary: '#5363EC',
|
|
14
14
|
primary50: '#ECF1FF',
|
|
15
15
|
primary100: '#DFE7FF',
|
|
16
16
|
primary300: '#C0D1FA',
|
|
@@ -165,7 +165,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
|
165
165
|
{
|
|
166
166
|
name: 'Autres intérêts et produits assimilés',
|
|
167
167
|
total: 0,
|
|
168
|
-
accounts: ['763', '764', '765', '768'],
|
|
168
|
+
accounts: ['760', '763', '764', '765', '768'],
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
name: 'Reprises sur dépréciations, provisions et transferts de charges financières',
|
package/ts/utils/checklist.ts
CHANGED
|
@@ -33,7 +33,7 @@ export function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlo
|
|
|
33
33
|
blockingIssues.push(question);
|
|
34
34
|
}
|
|
35
35
|
} else if ([ChecklistDetailType.SELECT as string, ChecklistDetailType.SWITCH].includes(question.type) && question.name !== ChecklistDetailName.HAS_POLICE) {
|
|
36
|
-
if (!answer.value || answer.value === '0') {
|
|
36
|
+
if ((!answer.value && !(question.name === ChecklistDetailName.IS_WAITING_ACCOUNT_RESET || question.name === ChecklistDetailName.HAS_CLEARED_INTERNAL_TRANSFER) ) || answer.value === '0') {
|
|
37
37
|
blockingIssues.push(question);
|
|
38
38
|
}
|
|
39
39
|
}
|