@silexpert/core 1.1.166 → 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/Enum/BrandPourcentage.js +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Constitution.d.ts +3 -0
- package/dist/cjs/types/Enum/Constitution.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Constitution.js +3 -0
- package/dist/cjs/types/Enum/Constitution.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +6 -6
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts +9 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +15 -0
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- 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/cjs/utils/prestation.d.ts +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +18 -14
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Constitution.d.ts +3 -0
- package/dist/mjs/types/Enum/Constitution.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Constitution.js +3 -0
- package/dist/mjs/types/Enum/Constitution.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +6 -6
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts +9 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +15 -0
- package/dist/mjs/types/Enum/PriceGridClementine.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/dist/mjs/utils/prestation.d.ts +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +8 -4
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/BrandPourcentage.ts +1 -1
- package/ts/types/Enum/Constitution.ts +3 -0
- package/ts/types/Enum/PrestationType.ts +6 -6
- package/ts/types/Enum/PriceGridClementine.ts +15 -0
- package/ts/types/Interface/models/IGedFile.ts +1 -0
- package/ts/utils/documents.ts +1 -1
- package/ts/utils/prestation.ts +14 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VatRegime } from './VatRegime';
|
|
2
2
|
import { ClosingType } from './ClosingType';
|
|
3
3
|
import { PrestationType } from './PrestationType';
|
|
4
|
+
import { TaxSystem } from './TaxSystem';
|
|
4
5
|
export declare const PriceGridClementine: {
|
|
5
6
|
idTypeBrand: number;
|
|
6
7
|
price: ({
|
|
@@ -22,6 +23,7 @@ export declare const PriceGridClementine: {
|
|
|
22
23
|
price: number;
|
|
23
24
|
}[];
|
|
24
25
|
properties?: undefined;
|
|
26
|
+
taxSystem?: undefined;
|
|
25
27
|
turnoverCreatedYear?: undefined;
|
|
26
28
|
turnoverPastYear?: undefined;
|
|
27
29
|
partner?: undefined;
|
|
@@ -44,6 +46,10 @@ export declare const PriceGridClementine: {
|
|
|
44
46
|
type: VatRegime;
|
|
45
47
|
price: number;
|
|
46
48
|
}[];
|
|
49
|
+
taxSystem: {
|
|
50
|
+
id: TaxSystem;
|
|
51
|
+
price: number;
|
|
52
|
+
}[];
|
|
47
53
|
turnoverMonthly?: undefined;
|
|
48
54
|
turnoverCreatedYear?: undefined;
|
|
49
55
|
turnoverPastYear?: undefined;
|
|
@@ -64,6 +70,7 @@ export declare const PriceGridClementine: {
|
|
|
64
70
|
turnoverMonthly?: undefined;
|
|
65
71
|
vatRegimeMonthly?: undefined;
|
|
66
72
|
properties?: undefined;
|
|
73
|
+
taxSystem?: undefined;
|
|
67
74
|
partner?: undefined;
|
|
68
75
|
employee?: undefined;
|
|
69
76
|
} | {
|
|
@@ -78,6 +85,7 @@ export declare const PriceGridClementine: {
|
|
|
78
85
|
turnoverMonthly?: undefined;
|
|
79
86
|
vatRegimeMonthly?: undefined;
|
|
80
87
|
properties?: undefined;
|
|
88
|
+
taxSystem?: undefined;
|
|
81
89
|
turnoverCreatedYear?: undefined;
|
|
82
90
|
turnoverPastYear?: undefined;
|
|
83
91
|
employee?: undefined;
|
|
@@ -93,6 +101,7 @@ export declare const PriceGridClementine: {
|
|
|
93
101
|
turnoverMonthly?: undefined;
|
|
94
102
|
vatRegimeMonthly?: undefined;
|
|
95
103
|
properties?: undefined;
|
|
104
|
+
taxSystem?: undefined;
|
|
96
105
|
turnoverCreatedYear?: undefined;
|
|
97
106
|
turnoverPastYear?: undefined;
|
|
98
107
|
partner?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceGridClementine.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/PriceGridClementine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"PriceGridClementine.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/PriceGridClementine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwV/B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VatRegime } from './VatRegime';
|
|
2
2
|
import { ClosingType } from './ClosingType';
|
|
3
3
|
import { PrestationType } from './PrestationType';
|
|
4
|
+
import { TaxSystem } from './TaxSystem';
|
|
4
5
|
export const PriceGridClementine = [
|
|
5
6
|
{
|
|
6
7
|
/* Clementine */
|
|
@@ -213,6 +214,20 @@ export const PriceGridClementine = [
|
|
|
213
214
|
price: 40,
|
|
214
215
|
},
|
|
215
216
|
],
|
|
217
|
+
taxSystem: [
|
|
218
|
+
{
|
|
219
|
+
id: TaxSystem.IR,
|
|
220
|
+
price: 0,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: TaxSystem.IS,
|
|
224
|
+
price: 15,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: TaxSystem.NA,
|
|
228
|
+
price: 0,
|
|
229
|
+
},
|
|
230
|
+
],
|
|
216
231
|
},
|
|
217
232
|
{
|
|
218
233
|
/* Prévisionnel */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceGridClementine.js","sourceRoot":"","sources":["../../../../ts/types/Enum/PriceGridClementine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,k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AAa,EAAE,CAAC;wBAChB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,CAAC;wBAChB,aAAa,EAAE,CAAC;wBAChB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,CAAC;wBAChB,aAAa,EAAE,EAAE;wBACjB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,EAAE;wBACjB,aAAa,EAAE,EAAE;wBACjB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,EAAE;wBACjB,aAAa,EAAE,OAAO;wBACtB,KAAK,EAAE,EAAE;qBACV;iBACF;aACF;SACF;KACF;IACD;QACE,gBAAgB;QAChB,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,EAAE;KACV;IACD;QACE,qBAAqB;QACrB,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,EAAE;KACV;IACD;QACE,aAAa;QACb,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,EAAE;KACV;CACF,CAAC","sourcesContent":["import { VatRegime } from './VatRegime';\nimport { ClosingType } from './ClosingType';\nimport { PrestationType } from './PrestationType';\n\nexport const PriceGridClementine = [\n {\n /* Clementine */\n idTypeBrand: 1,\n price: [\n {\n /* Compta Pro */\n idPrestationList: [PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS],\n minimumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 9,\n },\n {\n id: ClosingType.OUTDATED,\n month: 16,\n },\n ],\n maximumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 23,\n },\n {\n id: ClosingType.OUTDATED,\n month: 23,\n },\n ],\n turnoverMonthly: [\n {\n turnoverValue: 10000,\n price: 59,\n },\n {\n turnoverValue: 50000,\n price: 79,\n },\n {\n turnoverValue: 100000,\n price: 99,\n },\n {\n turnoverValue: 150000,\n price: 109,\n },\n {\n turnoverValue: 200000,\n price: 129,\n },\n {\n turnoverValue: 250000,\n price: 149,\n },\n ],\n vatRegimeMonthly: [\n {\n type: VatRegime.NOT_ATTRIBUTED,\n price: 0,\n },\n {\n type: VatRegime.SIMPLIFIED,\n price: 20,\n },\n {\n type: VatRegime.QUARTERLY,\n price: 30,\n },\n {\n type: VatRegime.MONTHLY,\n price: 40,\n },\n ],\n },\n {\n /* Compta Entreprise */\n idPrestationList: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS],\n minimumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 9,\n },\n {\n id: ClosingType.OUTDATED,\n month: 16,\n },\n ],\n maximumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 23,\n },\n {\n id: ClosingType.OUTDATED,\n month: 23,\n },\n ],\n turnoverMonthly: [\n {\n turnoverValue: 50000,\n price: 99,\n },\n {\n turnoverValue: 150000,\n price: 129,\n },\n {\n turnoverValue: 250000,\n price: 169,\n },\n {\n turnoverValue: 350000,\n price: 209,\n },\n {\n turnoverValue: 500000,\n price: 239,\n },\n {\n turnoverValue: 700000,\n price: 279,\n },\n {\n turnoverValue: 900000,\n price: 329,\n },\n ],\n vatRegimeMonthly: [\n {\n type: VatRegime.NOT_ATTRIBUTED,\n price: 0,\n },\n {\n type: VatRegime.SIMPLIFIED,\n price: 20,\n },\n {\n type: VatRegime.QUARTERLY,\n price: 30,\n },\n {\n type: VatRegime.MONTHLY,\n price: 40,\n },\n ],\n },\n {\n /* Compta SCI */\n idPrestationList: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],\n minimumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 9,\n },\n {\n id: ClosingType.OUTDATED,\n month: 16,\n },\n ],\n maximumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 23,\n },\n {\n id: ClosingType.OUTDATED,\n month: 23,\n },\n ],\n properties: [\n {\n amount: 1,\n price: 39,\n },\n {\n amount: 2,\n price: 49,\n },\n {\n amount: 3,\n price: 59,\n },\n {\n amount: 4,\n price: 69,\n },\n {\n amount: 5,\n price: 79,\n },\n {\n amount: 6,\n price: 89,\n },\n ],\n vatRegimeMonthly: [\n {\n type: VatRegime.NOT_ATTRIBUTED,\n price: 0,\n },\n {\n type: VatRegime.SIMPLIFIED,\n price: 20,\n },\n {\n type: VatRegime.QUARTERLY,\n price: 30,\n },\n {\n type: VatRegime.MONTHLY,\n price: 40,\n },\n ],\n },\n {\n /* Prévisionnel */\n idPrestationList: [PrestationType.BILAN_PREVISIONNEL],\n turnoverCreatedYear: [\n {\n turnoverValue: 75000,\n price: 199,\n },\n {\n turnoverValue: 150000,\n price: 299,\n },\n {\n turnoverValue: 400000,\n price: 399,\n },\n {\n turnoverValue: 750000,\n price: 579,\n },\n {\n turnoverValue: 1000000,\n price: 889,\n },\n ],\n turnoverPastYear: [\n {\n turnoverValue: 75000,\n price: 299,\n },\n {\n turnoverValue: 150000,\n price: 399,\n },\n {\n turnoverValue: 400000,\n price: 499,\n },\n {\n turnoverValue: 750000,\n price: 679,\n },\n {\n turnoverValue: 1000000,\n price: 989,\n },\n ],\n },\n {\n /* Gestion Juridique */\n idPrestationList: [PrestationType.GESTION_JURIDIQUE],\n partner: [\n {\n amountMinimum: 1,\n amountMaximum: 1,\n price: 249,\n },\n {\n amountMinimum: 2,\n amountMaximum: 4,\n price: 299,\n },\n {\n amountMinimum: 5,\n amountMaximum: 1000000,\n price: 399,\n },\n ],\n },\n {\n /* Social */\n idPrestationList: [PrestationType.SOCIAL],\n employee: [\n {\n amountMinimum: 1,\n amountMaximum: 1,\n price: 33,\n },\n {\n amountMinimum: 2,\n amountMaximum: 5,\n price: 30,\n },\n {\n amountMinimum: 6,\n amountMaximum: 20,\n price: 28,\n },\n {\n amountMinimum: 21,\n amountMaximum: 50,\n price: 27,\n },\n {\n amountMinimum: 50,\n amountMaximum: 1000000,\n price: 25,\n },\n ],\n },\n ],\n },\n {\n /* Leglastart */\n idTypeBrand: 2,\n price: [],\n },\n {\n /* Statuts Express */\n idTypeBrand: 4,\n price: [],\n },\n {\n /* Kandbaz */\n idTypeBrand: 5,\n price: [],\n },\n];"]}
|
|
1
|
+
{"version":3,"file":"PriceGridClementine.js","sourceRoot":"","sources":["../../../../ts/types/Enum/PriceGridClementine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;QACE,gBAAgB;QAChB,WAAW,EAAE,CAAC;QACd,KAAK,EAAE;YACL;gBACE,gBAAgB;gBAChB,gBAAgB,EAAE,CAAC,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,kBAAkB,CAAC;gBAChF,qBAAqB,EAAE;oBACrB;wBACE,EAAE,EAAE,WAAW,CAAC,WAAW;wBAC3B,KAAK,EAAE,CAAC;qBACT;oBACD;wBACE,EAAE,EAAE,WAAW,CAAC,QAAQ;wBACxB,KAAK,EAAE,EAAE;qBACV;iBACF;gBACD,qBAAqB,EAAE;oBACrB;wBACE,EAAE,EAAE,WAAW,CAAC,WAAW;wBAC3B,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,EAAE,EAAE,WAAW,CAAC,QAAQ;wBACxB,KAAK,EAAE,EAAE;qBACV;iBACF;gBACD,eAAe,EAAE;oBACf;wBACE,aAAa,EAAE,KAAK;wBACpB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,KAAK;wBACpB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,MAAM;wBACrB,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,aAAa,EAAE,MAAM;wBACrB,KAAK,EAAE,GAAG;qBACX;oBACD;wBACE,aAAa,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K,EAAE,EAAE;KACV;CACF,CAAC","sourcesContent":["import { VatRegime } from './VatRegime';\nimport { ClosingType } from './ClosingType';\nimport { PrestationType } from './PrestationType';\nimport { TaxSystem } from './TaxSystem';\n\nexport const PriceGridClementine = [\n {\n /* Clementine */\n idTypeBrand: 1,\n price: [\n {\n /* Compta Pro */\n idPrestationList: [PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS],\n minimumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 9,\n },\n {\n id: ClosingType.OUTDATED,\n month: 16,\n },\n ],\n maximumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 23,\n },\n {\n id: ClosingType.OUTDATED,\n month: 23,\n },\n ],\n turnoverMonthly: [\n {\n turnoverValue: 10000,\n price: 59,\n },\n {\n turnoverValue: 50000,\n price: 79,\n },\n {\n turnoverValue: 100000,\n price: 99,\n },\n {\n turnoverValue: 150000,\n price: 109,\n },\n {\n turnoverValue: 200000,\n price: 129,\n },\n {\n turnoverValue: 250000,\n price: 149,\n },\n ],\n vatRegimeMonthly: [\n {\n type: VatRegime.NOT_ATTRIBUTED,\n price: 0,\n },\n {\n type: VatRegime.SIMPLIFIED,\n price: 20,\n },\n {\n type: VatRegime.QUARTERLY,\n price: 30,\n },\n {\n type: VatRegime.MONTHLY,\n price: 40,\n },\n ],\n },\n {\n /* Compta Entreprise */\n idPrestationList: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS],\n minimumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 9,\n },\n {\n id: ClosingType.OUTDATED,\n month: 16,\n },\n ],\n maximumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 23,\n },\n {\n id: ClosingType.OUTDATED,\n month: 23,\n },\n ],\n turnoverMonthly: [\n {\n turnoverValue: 50000,\n price: 99,\n },\n {\n turnoverValue: 150000,\n price: 129,\n },\n {\n turnoverValue: 250000,\n price: 169,\n },\n {\n turnoverValue: 350000,\n price: 209,\n },\n {\n turnoverValue: 500000,\n price: 239,\n },\n {\n turnoverValue: 700000,\n price: 279,\n },\n {\n turnoverValue: 900000,\n price: 329,\n },\n ],\n vatRegimeMonthly: [\n {\n type: VatRegime.NOT_ATTRIBUTED,\n price: 0,\n },\n {\n type: VatRegime.SIMPLIFIED,\n price: 20,\n },\n {\n type: VatRegime.QUARTERLY,\n price: 30,\n },\n {\n type: VatRegime.MONTHLY,\n price: 40,\n },\n ],\n },\n {\n /* Compta SCI */\n idPrestationList: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],\n minimumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 9,\n },\n {\n id: ClosingType.OUTDATED,\n month: 16,\n },\n ],\n maximumMonthlyPayment: [\n {\n id: ClosingType.IN_PROGRESS,\n month: 23,\n },\n {\n id: ClosingType.OUTDATED,\n month: 23,\n },\n ],\n properties: [\n {\n amount: 1,\n price: 39,\n },\n {\n amount: 2,\n price: 49,\n },\n {\n amount: 3,\n price: 59,\n },\n {\n amount: 4,\n price: 69,\n },\n {\n amount: 5,\n price: 79,\n },\n {\n amount: 6,\n price: 89,\n },\n ],\n vatRegimeMonthly: [\n {\n type: VatRegime.NOT_ATTRIBUTED,\n price: 0,\n },\n {\n type: VatRegime.SIMPLIFIED,\n price: 20,\n },\n {\n type: VatRegime.QUARTERLY,\n price: 30,\n },\n {\n type: VatRegime.MONTHLY,\n price: 40,\n },\n ],\n taxSystem: [\n {\n id: TaxSystem.IR,\n price: 0,\n },\n {\n id: TaxSystem.IS,\n price: 15,\n },\n {\n id: TaxSystem.NA,\n price: 0,\n },\n ],\n },\n {\n /* Prévisionnel */\n idPrestationList: [PrestationType.BILAN_PREVISIONNEL],\n turnoverCreatedYear: [\n {\n turnoverValue: 75000,\n price: 199,\n },\n {\n turnoverValue: 150000,\n price: 299,\n },\n {\n turnoverValue: 400000,\n price: 399,\n },\n {\n turnoverValue: 750000,\n price: 579,\n },\n {\n turnoverValue: 1000000,\n price: 889,\n },\n ],\n turnoverPastYear: [\n {\n turnoverValue: 75000,\n price: 299,\n },\n {\n turnoverValue: 150000,\n price: 399,\n },\n {\n turnoverValue: 400000,\n price: 499,\n },\n {\n turnoverValue: 750000,\n price: 679,\n },\n {\n turnoverValue: 1000000,\n price: 989,\n },\n ],\n },\n {\n /* Gestion Juridique */\n idPrestationList: [PrestationType.GESTION_JURIDIQUE],\n partner: [\n {\n amountMinimum: 1,\n amountMaximum: 1,\n price: 249,\n },\n {\n amountMinimum: 2,\n amountMaximum: 4,\n price: 299,\n },\n {\n amountMinimum: 5,\n amountMaximum: 1000000,\n price: 399,\n },\n ],\n },\n {\n /* Social */\n idPrestationList: [PrestationType.SOCIAL],\n employee: [\n {\n amountMinimum: 1,\n amountMaximum: 1,\n price: 33,\n },\n {\n amountMinimum: 2,\n amountMaximum: 5,\n price: 30,\n },\n {\n amountMinimum: 6,\n amountMaximum: 20,\n price: 28,\n },\n {\n amountMinimum: 21,\n amountMaximum: 50,\n price: 27,\n },\n {\n amountMinimum: 50,\n amountMaximum: 1000000,\n price: 25,\n },\n ],\n },\n ],\n },\n {\n /* Leglastart */\n idTypeBrand: 2,\n price: [],\n },\n {\n /* Statuts Express */\n idTypeBrand: 4,\n price: [],\n },\n {\n /* Kandbaz */\n idTypeBrand: 5,\n price: [],\n },\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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C,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,WAA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,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;QAC3E,OAAO,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KAC7D;IACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;QAC7C,OAAO,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,MAAM,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};"]}
|
|
@@ -11,7 +11,7 @@ declare const isOnlyJuridic: (idPrestationList: number[]) => boolean;
|
|
|
11
11
|
declare const isCreation: (idPrestationList: number[]) => boolean;
|
|
12
12
|
declare const isExpress: (idPrestationList: number) => boolean;
|
|
13
13
|
declare const calculateScoringOfPrestation: (idPrestationType: PrestationType, prestations: IPrestation[]) => number;
|
|
14
|
-
declare const calculatePrestationPrice: (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, isYearly?: boolean) => {
|
|
14
|
+
declare const calculatePrestationPrice: (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly?: boolean) => {
|
|
15
15
|
totalPrestation: number;
|
|
16
16
|
reduceMonth: number;
|
|
17
17
|
canBeCreated: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAoB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAoB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gCAAgC,CAAC;AA4DxF,QAAA,MAAM,yBAAyB,qBAAsB,MAAM,KAAG,OAOC,CAAC;AAEhE,QAAA,MAAM,wBAAwB,gBAAgB,OAAO,aAAY,OAAO,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AAwB,EAAE,oBAAoB,EAAE,mBAAmB,GAClQ,CAAC"}
|
|
@@ -58,7 +58,7 @@ const getPriceGrid = (idTypeBrand, idPrestationList) => {
|
|
|
58
58
|
currentPriceGrid = currentBrandPriceGrid?.price.find((price) => price.idPrestationList.includes(idPrestationList));
|
|
59
59
|
return currentPriceGrid;
|
|
60
60
|
};
|
|
61
|
-
const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth) => {
|
|
61
|
+
const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem) => {
|
|
62
62
|
let totalPrestation = 0;
|
|
63
63
|
let reduceMonth = 0;
|
|
64
64
|
let monthNbr = NbrMonth;
|
|
@@ -71,11 +71,15 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMon
|
|
|
71
71
|
if (currentPriceGrid) {
|
|
72
72
|
let monthlyPrice;
|
|
73
73
|
let vatRegimePrice;
|
|
74
|
+
let taxSystemPrice;
|
|
74
75
|
/* Gestion du régime de TVA */
|
|
75
76
|
if (currentPriceGrid.vatRegimeMonthly && !isYearly)
|
|
76
77
|
vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;
|
|
77
78
|
else if (currentPriceGrid.vatRegimeYearly && isYearly)
|
|
78
79
|
vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;
|
|
80
|
+
/* Gestion du Régime d'imposition */
|
|
81
|
+
if (currentPriceGrid.taxSystem && idTaxSystem)
|
|
82
|
+
taxSystemPrice = currentPriceGrid.taxSystem?.find(tax => tax.id === idTaxSystem)?.price;
|
|
79
83
|
/* Gestion des montants */
|
|
80
84
|
if (currentPriceGrid.turnoverMonthly && !isYearly)
|
|
81
85
|
monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
@@ -91,7 +95,7 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList, endDate, NbrMon
|
|
|
91
95
|
yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
92
96
|
else if (currentPriceGrid.partner)
|
|
93
97
|
yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;
|
|
94
|
-
finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0);
|
|
98
|
+
finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);
|
|
95
99
|
/* Gestion des mois */
|
|
96
100
|
let cloturedPast = false;
|
|
97
101
|
if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs()))
|
|
@@ -123,7 +127,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList) => {
|
|
|
123
127
|
totalPrestation = prestationList.price || 0;
|
|
124
128
|
return totalPrestation;
|
|
125
129
|
};
|
|
126
|
-
const calculatePrestationPrice = (idPrestationList, prestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, optionsList, totalPercentage, totalAmount, totalMonth, isWithApplicationFees, isYearly = false) => {
|
|
130
|
+
const calculatePrestationPrice = (idPrestationList, prestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, optionsList, totalPercentage, totalAmount, totalMonth, isWithApplicationFees, idTaxSystem, isYearly = false) => {
|
|
127
131
|
let totalPrestation = 0;
|
|
128
132
|
let reduceMonth = 0;
|
|
129
133
|
let canBeCreated = true;
|
|
@@ -149,7 +153,7 @@ const calculatePrestationPrice = (idPrestationList, prestationList, endDate, Nbr
|
|
|
149
153
|
PrestationType.COMPTA_PRO_COMPTASTART,
|
|
150
154
|
PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,
|
|
151
155
|
].includes(idPrestationList)) {
|
|
152
|
-
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth);
|
|
156
|
+
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);
|
|
153
157
|
totalPrestation = totalWithReduce.totalPrestation;
|
|
154
158
|
reduceMonth = totalWithReduce.reduceMonth;
|
|
155
159
|
canBeCreated = totalWithReduce.canBeCreated;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAwB,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgD/B,MAAM,yBAAyB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CAAC;IACvE,cAAc,CAAC,YAAY;IAC3B,cAAc,CAAC,mBAAmB;IAClC,cAAc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CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC5N,aAAa;aACR,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;;YAChN,OAAO,KAAK,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AAEf,CAAC,CAAC;AAEF,OAAO,EACL,yBAAyB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,mBAAmB,GAClQ,CAAC","sourcesContent":["import { IPrestation, IPrestationList } from '../types';\nimport { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\n\ntype priceGridBrand = {\n idTypeBrand: number,\n price: priceGrid[]\n};\n\ntype priceGrid = {\n idPrestationList: number[],\n minimumMonthlyPayment?: monthlyPayment[],\n maximumMonthlyPayment?: monthlyPayment[],\n turnoverCreatedYear?: turnover[],\n turnoverPastYear?: turnover[],\n turnoverMonthly?: turnover[],\n turnoverYearly?: turnover[],\n employee?: employee[],\n partner?: employee[],\n properties?: propertie[],\n vatRegimeMonthly?: vatRegime[],\n vatRegimeYearly?: vatRegime[],\n};\n\ntype monthlyPayment = {\n id: number,\n month: number,\n};\n\ntype turnover = {\n turnoverValue: number,\n price: number,\n};\n\ntype employee = {\n amountMinimum: number,\n amountMaximum: number,\n price: number,\n};\n\ntype propertie = {\n amount: number,\n price: number,\n};\n\ntype vatRegime = {\n type: number,\n price: number,\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {\n const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid && prestation.signed && prestation.terminationList === null);\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n const numberPoint = prestaDetails?.point || 0;\n\n // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nconst getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile) currentBrandPriceGrid = currentPriceGridFile.find((priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand);\n if (currentBrandPriceGrid) currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) => price.idPrestationList.includes(idPrestationList));\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n let canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n \n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly) vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly) vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;\n\n /* Gestion des montants */\n if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;\n else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;\n finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n const minimumMonth: number | undefined = currentPriceGrid.minimumMonthlyPayment?.find(monthlyPayment => monthlyPayment.id === (cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS))?.month;\n const maximumMonth: number | undefined = currentPriceGrid.maximumMonthlyPayment?.find(monthlyPayment => monthlyPayment.id === (cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS))?.month;\n if (totalMonth > 0) monthNbr = monthNbr - totalMonth;\n if (minimumMonth && monthNbr < minimumMonth) {\n monthNbr = minimumMonth;\n recalculateMonthly = true;\n if (totalMonth > 0) canBeCreated = false;\n }\n if (maximumMonth && monthNbr > maximumMonth) {\n monthNbr = maximumMonth;\n recalculateMonthly = true;\n if (totalMonth > 0) canBeCreated = false;\n }\n\n reduceMonth = (monthNbr === NbrMonth - totalMonth ? totalMonth : 0);\n \n /* Prix Final */\n totalPrestation = (yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr);\n }\n return { totalPrestation, reduceMonth, canBeCreated, monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr, price: yearlyPrice ? yearlyPrice : recalculateMonthly ? (totalPrestation / NbrMonth) : (finalMonthlyPrice ? finalMonthlyPrice : 0) };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList.price || 0;\n\n return totalPrestation;\n};\n\nconst calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, price: number } => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n ].includes(idPrestationList)\n ) {\n totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth);\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n }\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));\n if (prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find((option) => option.id === optionId)?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);\n\n if (isWithApplicationFees) totalPrestation += 50;\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + price + '€' : price + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return { totalPrestation, reduceMonth, canBeCreated, calculDetail, price };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter(option => option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)));\n return PrestationOptionList.filter(option => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turnover: number, pastBalanceSheet: boolean): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n // @ts-ignore\n if ([PrestationType.COMPTA_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && !pastBalanceSheet && currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && pastBalanceSheet && currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover) return true;\n else return false;\n }\n return false;\n\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice,\n};"]}
|
|
1
|
+
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAwB,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsD/B,MAAM,yBAAyB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CAAC;IACvE,cAAc,CAAC,YAAY;IAC3B,cAAc,CAAC,mBAAmB;IAClC,cAAc,CAAC,wCAAwC;IACvD,cAAc,CAAC,uBAAuB;IACtC,c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,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC1O,aAAa;aACR,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC5N,aAAa;aACR,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;;YAChN,OAAO,KAAK,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AAEf,CAAC,CAAC;AAEF,OAAO,EACL,yBAAyB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,mBAAmB,GAClQ,CAAC","sourcesContent":["import { IPrestation, IPrestationList } from '../types';\nimport { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\n\ntype priceGridBrand = {\n idTypeBrand: number,\n price: priceGrid[]\n};\n\ntype priceGrid = {\n idPrestationList: number[],\n minimumMonthlyPayment?: monthlyPayment[],\n maximumMonthlyPayment?: monthlyPayment[],\n turnoverCreatedYear?: turnover[],\n turnoverPastYear?: turnover[],\n turnoverMonthly?: turnover[],\n turnoverYearly?: turnover[],\n employee?: employee[],\n partner?: employee[],\n properties?: propertie[],\n vatRegimeMonthly?: vatRegime[],\n vatRegimeYearly?: vatRegime[],\n taxSystem?: taxSystem[],\n};\n\ntype monthlyPayment = {\n id: number,\n month: number,\n};\n\ntype turnover = {\n turnoverValue: number,\n price: number,\n};\n\ntype employee = {\n amountMinimum: number,\n amountMaximum: number,\n price: number,\n};\n\ntype propertie = {\n amount: number,\n price: number,\n};\n\ntype vatRegime = {\n type: number,\n price: number,\n};\n\ntype taxSystem = {\n id: number,\n price: number,\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {\n const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid && prestation.signed && prestation.terminationList === null);\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n const numberPoint = prestaDetails?.point || 0;\n\n // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nconst getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile) currentBrandPriceGrid = currentPriceGridFile.find((priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand);\n if (currentBrandPriceGrid) currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) => price.idPrestationList.includes(idPrestationList));\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n let canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n \n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly) vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly) vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem) taxSystemPrice = currentPriceGrid.taxSystem?.find(tax => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;\n else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;\n finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n const minimumMonth: number | undefined = currentPriceGrid.minimumMonthlyPayment?.find(monthlyPayment => monthlyPayment.id === (cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS))?.month;\n const maximumMonth: number | undefined = currentPriceGrid.maximumMonthlyPayment?.find(monthlyPayment => monthlyPayment.id === (cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS))?.month;\n if (totalMonth > 0) monthNbr = monthNbr - totalMonth;\n if (minimumMonth && monthNbr < minimumMonth) {\n monthNbr = minimumMonth;\n recalculateMonthly = true;\n if (totalMonth > 0) canBeCreated = false;\n }\n if (maximumMonth && monthNbr > maximumMonth) {\n monthNbr = maximumMonth;\n recalculateMonthly = true;\n if (totalMonth > 0) canBeCreated = false;\n }\n\n reduceMonth = (monthNbr === NbrMonth - totalMonth ? totalMonth : 0);\n \n /* Prix Final */\n totalPrestation = (yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr);\n }\n return { totalPrestation, reduceMonth, canBeCreated, monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr, price: yearlyPrice ? yearlyPrice : recalculateMonthly ? (totalPrestation / NbrMonth) : (finalMonthlyPrice ? finalMonthlyPrice : 0) };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList.price || 0;\n\n return totalPrestation;\n};\n\nconst calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, price: number } => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n ].includes(idPrestationList)\n ) {\n totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n }\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));\n if (prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find((option) => option.id === optionId)?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);\n\n if (isWithApplicationFees) totalPrestation += 50;\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + price + '€' : price + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return { totalPrestation, reduceMonth, canBeCreated, calculDetail, price };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter(option => option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)));\n return PrestationOptionList.filter(option => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turnover: number, pastBalanceSheet: boolean): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n // @ts-ignore\n if ([PrestationType.COMPTA_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && !pastBalanceSheet && currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && pastBalanceSheet && currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover) return true;\n else return false;\n }\n return false;\n\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice,\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",
|
|
@@ -562,7 +562,7 @@ export const BrandPourcentage = [
|
|
|
562
562
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
563
563
|
logoS3: 'config/pourcentage-logo.png',
|
|
564
564
|
name: 'Pourcentage ECE', // AMEX
|
|
565
|
-
commercialName: 'Pourcentage',
|
|
565
|
+
commercialName: 'Pourcentage AMEX',
|
|
566
566
|
colors: {
|
|
567
567
|
primary: '#1e6f5c',
|
|
568
568
|
primary50: '#DFF9F1',
|
|
@@ -3252,7 +3252,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3252
3252
|
isBack: false,
|
|
3253
3253
|
minimumPrice: null,
|
|
3254
3254
|
price: null,
|
|
3255
|
-
isCatalog:
|
|
3255
|
+
isCatalog: false,
|
|
3256
3256
|
hidden: false,
|
|
3257
3257
|
isComplementary: false,
|
|
3258
3258
|
signaturePosition: '',
|
|
@@ -3270,7 +3270,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3270
3270
|
isBack: false,
|
|
3271
3271
|
minimumPrice: null,
|
|
3272
3272
|
price: null,
|
|
3273
|
-
isCatalog:
|
|
3273
|
+
isCatalog: false,
|
|
3274
3274
|
hidden: false,
|
|
3275
3275
|
isComplementary: false,
|
|
3276
3276
|
signaturePosition: '',
|
|
@@ -3288,7 +3288,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3288
3288
|
isBack: false,
|
|
3289
3289
|
minimumPrice: null,
|
|
3290
3290
|
price: null,
|
|
3291
|
-
isCatalog:
|
|
3291
|
+
isCatalog: false,
|
|
3292
3292
|
hidden: false,
|
|
3293
3293
|
isComplementary: false,
|
|
3294
3294
|
signaturePosition: '',
|
|
@@ -3306,7 +3306,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3306
3306
|
isBack: true,
|
|
3307
3307
|
minimumPrice: null,
|
|
3308
3308
|
price: null,
|
|
3309
|
-
isCatalog:
|
|
3309
|
+
isCatalog: false,
|
|
3310
3310
|
hidden: false,
|
|
3311
3311
|
isComplementary: false,
|
|
3312
3312
|
signaturePosition: '',
|
|
@@ -3324,7 +3324,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3324
3324
|
isBack: true,
|
|
3325
3325
|
minimumPrice: null,
|
|
3326
3326
|
price: null,
|
|
3327
|
-
isCatalog:
|
|
3327
|
+
isCatalog: false,
|
|
3328
3328
|
hidden: false,
|
|
3329
3329
|
isComplementary: false,
|
|
3330
3330
|
signaturePosition: '',
|
|
@@ -3342,7 +3342,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3342
3342
|
isBack: true,
|
|
3343
3343
|
minimumPrice: null,
|
|
3344
3344
|
price: null,
|
|
3345
|
-
isCatalog:
|
|
3345
|
+
isCatalog: false,
|
|
3346
3346
|
hidden: false,
|
|
3347
3347
|
isComplementary: false,
|
|
3348
3348
|
signaturePosition: '',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VatRegime } from './VatRegime';
|
|
2
2
|
import { ClosingType } from './ClosingType';
|
|
3
3
|
import { PrestationType } from './PrestationType';
|
|
4
|
+
import { TaxSystem } from './TaxSystem';
|
|
4
5
|
|
|
5
6
|
export const PriceGridClementine = [
|
|
6
7
|
{
|
|
@@ -214,6 +215,20 @@ export const PriceGridClementine = [
|
|
|
214
215
|
price: 40,
|
|
215
216
|
},
|
|
216
217
|
],
|
|
218
|
+
taxSystem: [
|
|
219
|
+
{
|
|
220
|
+
id: TaxSystem.IR,
|
|
221
|
+
price: 0,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: TaxSystem.IS,
|
|
225
|
+
price: 15,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
id: TaxSystem.NA,
|
|
229
|
+
price: 0,
|
|
230
|
+
},
|
|
231
|
+
],
|
|
217
232
|
},
|
|
218
233
|
{
|
|
219
234
|
/* Prévisionnel */
|
|
@@ -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];
|