@silexpert/core 1.0.44 → 1.0.50
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/es/api/resources/BudgetInsight.d.ts +0 -7
- package/es/api/resources/BudgetInsight.d.ts.map +1 -1
- package/es/api/resources/BudgetInsight.js +0 -8
- package/es/api/resources/BudgetInsight.js.map +1 -1
- package/es/api/resources/CommercialDocument.d.ts +2 -2
- package/es/api/resources/CommercialDocument.d.ts.map +1 -1
- package/es/api/resources/CommercialDocument.js.map +1 -1
- package/es/api/resources/FIle.d.ts +1 -0
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +3 -0
- package/es/api/resources/FIle.js.map +1 -1
- package/es/api/resources/Wallet.d.ts +8 -0
- package/es/api/resources/Wallet.d.ts.map +1 -0
- package/es/api/resources/Wallet.js +7 -0
- package/es/api/resources/Wallet.js.map +1 -0
- package/es/api/resources/statistic/Accountant.d.ts +53 -0
- package/es/api/resources/statistic/Accountant.d.ts.map +1 -0
- package/es/api/resources/statistic/Accountant.js +77 -0
- package/es/api/resources/statistic/Accountant.js.map +1 -0
- package/es/api/resources/statistic/Direction.d.ts +11 -0
- package/es/api/resources/statistic/Direction.d.ts.map +1 -0
- package/es/api/resources/statistic/Direction.js +14 -0
- package/es/api/resources/statistic/Direction.js.map +1 -0
- package/es/api/resources/statistic/ExpertAccountant.d.ts +29 -0
- package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -0
- package/es/api/resources/statistic/ExpertAccountant.js +41 -0
- package/es/api/resources/statistic/ExpertAccountant.js.map +1 -0
- package/es/api/resources.d.ts +8 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AdditionnalSells.d.ts +7 -0
- package/es/types/Enum/AdditionnalSells.d.ts.map +1 -0
- package/es/types/Enum/AdditionnalSells.js +8 -0
- package/es/types/Enum/AdditionnalSells.js.map +1 -0
- package/es/types/Enum/StatisticType.d.ts +15 -0
- package/es/types/Enum/StatisticType.d.ts.map +1 -0
- package/es/types/Enum/StatisticType.js +16 -0
- package/es/types/Enum/StatisticType.js.map +1 -0
- package/es/types/Enum/Vat.d.ts +17 -0
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +18 -0
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.d.ts +3 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +6 -0
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +98 -0
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/ExitRequest.js +2 -0
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts +6 -0
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryAccountant.js +31 -0
- package/es/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryDirection.d.ts +6 -0
- package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryDirection.js +31 -0
- package/es/types/Interface/api/statistic/QueryDirection.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +6 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js +31 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +5 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.js +24 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +5 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.js +24 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +5 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +24 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +6 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +1 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.js +34 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
- package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
- package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
- package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
- package/es/types/Interface/models/IStatistic.d.ts +11 -0
- package/es/types/Interface/models/IStatistic.d.ts.map +1 -0
- package/es/types/Interface/models/IStatistic.js +2 -0
- package/es/types/Interface/models/IStatistic.js.map +1 -0
- package/es/types/index.d.ts +11 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +11 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/commercialManagement/document.d.ts.map +1 -1
- package/es/utils/commercialManagement/document.js.map +1 -1
- package/es/utils/commercialManagement/templates/body.js +1 -1
- package/es/utils/commercialManagement/templates/body.js.map +1 -1
- package/es/utils/commercialManagement/templates/common.d.ts.map +1 -1
- package/es/utils/commercialManagement/templates/common.js +8 -26
- package/es/utils/commercialManagement/templates/common.js.map +1 -1
- package/js/api/resources/BudgetInsight.js +0 -10
- package/js/api/resources/BudgetInsight.js.map +1 -1
- package/js/api/resources/CommercialDocument.js.map +1 -1
- package/js/api/resources/FIle.js +4 -0
- package/js/api/resources/FIle.js.map +1 -1
- package/js/api/resources/Wallet.js +18 -0
- package/js/api/resources/Wallet.js.map +1 -0
- package/js/api/resources/statistic/Accountant.js +135 -0
- package/js/api/resources/statistic/Accountant.js.map +1 -0
- package/js/api/resources/statistic/Direction.js +30 -0
- package/js/api/resources/statistic/Direction.js.map +1 -0
- package/js/api/resources/statistic/ExpertAccountant.js +75 -0
- package/js/api/resources/statistic/ExpertAccountant.js.map +1 -0
- package/js/api/resources.js +13 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AdditionnalSells.js +14 -0
- package/js/types/Enum/AdditionnalSells.js.map +1 -0
- package/js/types/Enum/StatisticType.js +22 -0
- package/js/types/Enum/StatisticType.js.map +1 -0
- package/js/types/Enum/Vat.js +19 -0
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/product/CreateProduct.js +2 -0
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js +6 -0
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryAccountant.js +35 -0
- package/js/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryDirection.js +35 -0
- package/js/types/Interface/api/statistic/QueryDirection.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js +35 -0
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryGetAccountant.js +31 -0
- package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryGetDirection.js +31 -0
- package/js/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +31 -0
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
- package/js/types/Interface/api/wallet/UpdateAttribution.js +35 -0
- package/js/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
- package/js/types/Interface/models/IStatistic.js +6 -0
- package/js/types/Interface/models/IStatistic.js.map +1 -0
- package/js/types/index.js +132 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/commercialManagement/document.js.map +1 -1
- package/js/utils/commercialManagement/templates/body.js +1 -1
- package/js/utils/commercialManagement/templates/body.js.map +1 -1
- package/js/utils/commercialManagement/templates/common.js +8 -26
- package/js/utils/commercialManagement/templates/common.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BudgetInsight.ts +0 -13
- package/ts/api/resources/CommercialDocument.ts +2 -2
- package/ts/api/resources/FIle.ts +4 -0
- package/ts/api/resources/Wallet.ts +8 -0
- package/ts/api/resources/statistic/Accountant.ts +108 -0
- package/ts/api/resources/statistic/Direction.ts +17 -0
- package/ts/api/resources/statistic/ExpertAccountant.ts +56 -0
- package/ts/api/resources.ts +8 -0
- package/ts/types/Enum/AdditionnalSells.ts +6 -0
- package/ts/types/Enum/StatisticType.ts +14 -0
- package/ts/types/Enum/Vat.ts +19 -1
- package/ts/types/Interface/api/commercialManagement/Read.ts +2 -0
- package/ts/types/Interface/api/product/CreateProduct.ts +5 -0
- package/ts/types/Interface/api/statistic/ExitRequest.ts +108 -0
- package/ts/types/Interface/api/statistic/QueryAccountant.ts +20 -0
- package/ts/types/Interface/api/statistic/QueryDirection.ts +20 -0
- package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +20 -0
- package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +14 -0
- package/ts/types/Interface/api/statistic/QueryGetDirection.ts +14 -0
- package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +14 -0
- package/ts/types/Interface/api/wallet/UpdateAttribution.ts +23 -0
- package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
- package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
- package/ts/types/Interface/models/IStatistic.ts +13 -0
- package/ts/types/index.ts +11 -0
- package/ts/utils/commercialManagement/document.ts +0 -1
- package/ts/utils/commercialManagement/templates/body.ts +1 -1
- package/ts/utils/commercialManagement/templates/common.ts +8 -26
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ISociety } from '../../models/ISociety';
|
|
2
|
+
|
|
3
|
+
export interface CountLateToDoDone {
|
|
4
|
+
late: string[],
|
|
5
|
+
toDo: string[],
|
|
6
|
+
done: string[]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface Count {
|
|
10
|
+
count: number,
|
|
11
|
+
societiesList: string[]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CountIsIr {
|
|
15
|
+
IS: string[],
|
|
16
|
+
IR: string[],
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface CountComplementaryPrestation {
|
|
20
|
+
waitingClient: string[],
|
|
21
|
+
waitingDirection: string[],
|
|
22
|
+
acceptedDirection: string[],
|
|
23
|
+
refusedDirection: string[],
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface TotalAverage {
|
|
27
|
+
total: number,
|
|
28
|
+
average: number,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface TotalAverageProfit {
|
|
32
|
+
factured: TotalAverage,
|
|
33
|
+
payed: TotalAverage
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface StatsLabBySocieties {
|
|
37
|
+
late: string[],
|
|
38
|
+
toDo: string[],
|
|
39
|
+
done: string[]
|
|
40
|
+
}
|
|
41
|
+
export interface StatsMailsBySocieties {
|
|
42
|
+
late: string[],
|
|
43
|
+
toDo: string[],
|
|
44
|
+
done: string[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface StatsCallsBySocieties {
|
|
48
|
+
late: string[],
|
|
49
|
+
toDo: string[],
|
|
50
|
+
done: string[]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface StatsReportsBySocieties {
|
|
54
|
+
late: string[],
|
|
55
|
+
toDo: string[],
|
|
56
|
+
done: string[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ExitApplication {
|
|
60
|
+
done: {
|
|
61
|
+
count: number,
|
|
62
|
+
societies: string[],
|
|
63
|
+
},
|
|
64
|
+
undone: {
|
|
65
|
+
count: number,
|
|
66
|
+
societies: string[],
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface StatisticBalanceSheetDetail {
|
|
71
|
+
goodToAttested: string[],
|
|
72
|
+
attested: string[],
|
|
73
|
+
attestedRefused: string[],
|
|
74
|
+
attestedObserved: string[],
|
|
75
|
+
toReview: string[],
|
|
76
|
+
toRevised: string[],
|
|
77
|
+
toSupervised: string[],
|
|
78
|
+
acceptedSIE: string[],
|
|
79
|
+
ARCAttested: string[],
|
|
80
|
+
ARCNoAttested: string[],
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ReturnListType {
|
|
84
|
+
societies?: ISociety[],
|
|
85
|
+
active?: ISociety[],
|
|
86
|
+
unpayed?: string[],
|
|
87
|
+
terminated?: string[],
|
|
88
|
+
archived?: string[],
|
|
89
|
+
labDetail?: CountLateToDoDone,
|
|
90
|
+
balanceSheet?: CountLateToDoDone,
|
|
91
|
+
balanceSheetDetailed?: StatisticBalanceSheetDetail,
|
|
92
|
+
additionnalSell?: CountComplementaryPrestation,
|
|
93
|
+
tva?: CountLateToDoDone,
|
|
94
|
+
checklist?: CountLateToDoDone,
|
|
95
|
+
checklistReinforced?: CountLateToDoDone,
|
|
96
|
+
revision?: Count,
|
|
97
|
+
annotate?: string[],
|
|
98
|
+
isIr?: CountIsIr,
|
|
99
|
+
task?: StatsLabBySocieties,
|
|
100
|
+
mail?: StatsMailsBySocieties,
|
|
101
|
+
call?: StatsCallsBySocieties,
|
|
102
|
+
report?: StatsReportsBySocieties,
|
|
103
|
+
profitability?: TotalAverageProfit,
|
|
104
|
+
synchronised?: string[],
|
|
105
|
+
applicationJustified?: ExitApplication,
|
|
106
|
+
applicationAnnoted?: ExitApplication,
|
|
107
|
+
applicationSynchronised?: ExitApplication,
|
|
108
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsDate, IsIn,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty } from '../../../../utils';
|
|
5
|
+
import { StatisticType } from '../../../Enum/StatisticType';
|
|
6
|
+
|
|
7
|
+
export class QueryAccountant {
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsNumber()
|
|
10
|
+
idUser: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsIn(Object.values(StatisticType))
|
|
19
|
+
type: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsDate, IsIn, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { StatisticType } from '../../../Enum/StatisticType';
|
|
6
|
+
|
|
7
|
+
export class QueryDirection {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
idUser: number[];
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsIn(Object.values(StatisticType))
|
|
19
|
+
type: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsDate, IsIn, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { StatisticType } from '../../../Enum/StatisticType';
|
|
6
|
+
|
|
7
|
+
export class QueryExpertAccountant {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
idUser: number[];
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsIn(Object.values(StatisticType))
|
|
19
|
+
type: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDate, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryGetDirection {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
idUser: number[];
|
|
10
|
+
|
|
11
|
+
@ApiProperty()
|
|
12
|
+
@IsDate()
|
|
13
|
+
endDate: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDate, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryGetExpertAccountant {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
idUser: number[];
|
|
10
|
+
|
|
11
|
+
@ApiProperty()
|
|
12
|
+
@IsDate()
|
|
13
|
+
endDate: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsNumber, IsOptional, IsPositive,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class UpdateAttribution {
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsNumber()
|
|
10
|
+
@IsPositive()
|
|
11
|
+
idRoles: number;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
swapUserId?: number;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsBoolean()
|
|
21
|
+
@ToBoolean()
|
|
22
|
+
randomSwap?: boolean;
|
|
23
|
+
}
|
|
@@ -13,8 +13,8 @@ export interface IAttributionHistory {
|
|
|
13
13
|
updatedAt?: Date | null;
|
|
14
14
|
|
|
15
15
|
// Associations
|
|
16
|
-
userAttribute
|
|
17
|
-
userMakeAttribution
|
|
18
|
-
society
|
|
19
|
-
role
|
|
16
|
+
userAttribute?: IUser;
|
|
17
|
+
userMakeAttribution?: IUser;
|
|
18
|
+
society?: ISociety;
|
|
19
|
+
role?: IRole;
|
|
20
20
|
}
|
|
@@ -21,7 +21,7 @@ export interface IPrestationComplementary {
|
|
|
21
21
|
note: string | null;
|
|
22
22
|
forOtherMission: string | null;
|
|
23
23
|
statePrestationJuridique: number | null;
|
|
24
|
-
acceptationAdmin:
|
|
24
|
+
acceptationAdmin: number;
|
|
25
25
|
createdAt?: Date | null;
|
|
26
26
|
updatedAt?: Date | null;
|
|
27
27
|
deletedAt?: Date | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -293,6 +293,7 @@ export * from './Interface/models/IAccountingTransaction_new';
|
|
|
293
293
|
export * from './Interface/models/IExerciceNote';
|
|
294
294
|
export * from './Interface/models/IRevisionGuide';
|
|
295
295
|
export * from './Interface/models/ISponsorshipWithSponsorInfo';
|
|
296
|
+
export * from './Interface/models/IStatistic';
|
|
296
297
|
export * from './Interface/models/ILastUpdateConnection';
|
|
297
298
|
export * from './Interface/models/IAccountsSectors';
|
|
298
299
|
export * from './Interface/models/IAnswerType';
|
|
@@ -376,7 +377,9 @@ export * from './Enum/GlobalRegime';
|
|
|
376
377
|
export * from './Enum/TaxSystem';
|
|
377
378
|
export * from './Enum/FiscalRegime';
|
|
378
379
|
export * from './Enum/Activity';
|
|
380
|
+
export * from './Enum/AdditionnalSells';
|
|
379
381
|
export * from './Enum/CerfaType';
|
|
382
|
+
export * from './Enum/StatisticType';
|
|
380
383
|
export * from './Enum/StockType';
|
|
381
384
|
export * from './Enum/SaleType';
|
|
382
385
|
export * from './Enum/TypePayment';
|
|
@@ -620,6 +623,13 @@ export * from './Interface/api/pappers/ReadPappers';
|
|
|
620
623
|
export * from './Interface/api/sponsorship/SendSponsorshipLink';
|
|
621
624
|
export * from './Interface/api/sponsorship/CreateSponsorship';
|
|
622
625
|
export * from './Interface/api/sponsorship/QuerySponsorship';
|
|
626
|
+
export * from './Interface/api/statistic/ExitRequest';
|
|
627
|
+
export * from './Interface/api/statistic/QueryExpertAccountant';
|
|
628
|
+
export * from './Interface/api/statistic/QueryGetExpertAccountant';
|
|
629
|
+
export * from './Interface/api/statistic/QueryAccountant';
|
|
630
|
+
export * from './Interface/api/statistic/QueryGetAccountant';
|
|
631
|
+
export * from './Interface/api/statistic/QueryDirection';
|
|
632
|
+
export * from './Interface/api/statistic/QueryGetDirection';
|
|
623
633
|
export * from './Interface/api/pappers/CreatePappers';
|
|
624
634
|
export * from './Interface/api/bankAccount/DeleteTransaction';
|
|
625
635
|
export * from './Interface/api/stripe/QueryStripe';
|
|
@@ -788,6 +798,7 @@ export * from './Interface/api/qonto/ReadCreateConnection';
|
|
|
788
798
|
export * from './Interface/api/file/Create';
|
|
789
799
|
export * from './Interface/api/file/Read';
|
|
790
800
|
export * from './Interface/api/societyConfig/update';
|
|
801
|
+
export * from './Interface/api/wallet/UpdateAttribution';
|
|
791
802
|
|
|
792
803
|
// Enums types
|
|
793
804
|
export * from './Interface/enum/Util';
|
|
@@ -18,7 +18,6 @@ const ejs = require('ejs');
|
|
|
18
18
|
export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument): ReadCommercialDocumentTemplate {
|
|
19
19
|
const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));
|
|
20
20
|
const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value')).filter((v) => v.id !== Vat.MARGE.id);
|
|
21
|
-
|
|
22
21
|
const data: ReadDocumentEditing = {
|
|
23
22
|
...payload,
|
|
24
23
|
paymentLink: payload.paymentLink ?? '#',
|
|
@@ -108,7 +108,7 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
110
110
|
<% } %>
|
|
111
|
-
<% if (settings && settings.bonPour) { %>
|
|
111
|
+
<% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>
|
|
112
112
|
<br/>Bon pour accord : <br/><br/><br/><br/>
|
|
113
113
|
<% } %>
|
|
114
114
|
|
|
@@ -8,30 +8,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
8
8
|
<span id="header-edging" style="position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;"></span>
|
|
9
9
|
<% } %>`;
|
|
10
10
|
|
|
11
|
-
footer =
|
|
12
|
-
<% if (freeText) { %><%- freeText %><br/><br/><% } %>
|
|
13
|
-
<% if (accountingCategoryFormatted) {%>
|
|
14
|
-
<%= accountingCategoryFormatted %> |
|
|
15
|
-
<%}%>
|
|
16
|
-
<% if(marginVats.length > 0) { %>
|
|
17
|
-
Régime TVA sur marge -
|
|
18
|
-
<% marginVats.forEach(function(v, index) { %>
|
|
19
|
-
<%= v %> -
|
|
20
|
-
<% }) %>
|
|
21
|
-
ART 297-A du CGI ou directive 2006-212 CE |
|
|
22
|
-
<% } %>
|
|
23
|
-
<% if(penalties || compensation || discount) { %>
|
|
24
|
-
<%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%>
|
|
25
|
-
<%= penalties && compensation ? '|' : ''%>
|
|
26
|
-
<%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %>
|
|
27
|
-
<%= (compensation || penalties) && discount ? '| ' : '' %>
|
|
28
|
-
<%= discount %><%= shouldPayTaxAfterDebit ? "| Option pour le paiement de la taxe d'après les débits" : '' %>
|
|
29
|
-
<% if(name || legalForm || capital || siren || rcs) {%>
|
|
30
|
-
<br/><br/>
|
|
31
|
-
<% } %>
|
|
32
|
-
<% } %>
|
|
33
|
-
<%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
34
|
-
</div>`;
|
|
11
|
+
footer = '<div style="font-size: 10px; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;"><% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> |<%}%><% if(marginVats.length > 0) { %>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %>ART 297-A du CGI ou directive 2006-212 CE |<% } %><% if(penalties || compensation || discount) { %><%= penalties ? \'Pénalités en cas de retard : \' + penalties + \' \' : \'\'%><%= penalties && compensation ? \'|\' : \'\'%><%= compensation ? \'Indemnité forfaitaire en cas de retard :\' + compensation + \' \' : \'\' %><%= (compensation || penalties) && discount ? \' | \' : \'\' %><%= discount ? discount + \' \' : \'\' %><%= shouldPayTaxAfterDebit ? "| Option pour le paiement de la taxe d\'après les débits" : \'\' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? \', \' : \'\'%><%= legalForm %><%= capital ? \' au capital de \' + capitalFormatted + \' €\' : \'\' %><%= siren ? \' immatriculée sous le SIREN \' + siren : \'\'%><%= rcs ? \'| RCS \' + rcs : \'\'%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? \'N° TVA \'+vatCode : \'\'%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? \'APE \'+nafCode : \'\' %></div>';
|
|
35
12
|
|
|
36
13
|
logo = `<div class="logo-placeholder">
|
|
37
14
|
<% if (logoUrl) { %><img src="<%= logoUrl %>" alt="logo" /><% } %>
|
|
@@ -90,7 +67,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
90
67
|
<% } %>
|
|
91
68
|
</table>`;
|
|
92
69
|
|
|
93
|
-
vatRecapitulation = `<table style="width: 80%;" class="commercial-table-preview">
|
|
70
|
+
vatRecapitulation = `<table style="width: 80%; page-break-inside: avoid !important;" class="commercial-table-preview">
|
|
94
71
|
<thead>
|
|
95
72
|
<tr>
|
|
96
73
|
<td>Base</td>
|
|
@@ -107,7 +84,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
107
84
|
<% }) %>
|
|
108
85
|
</table>`;
|
|
109
86
|
|
|
110
|
-
amountRecapitulation = `<table class="summary-prices commercial-table-preview" style="width: 100%; padding-left: 20px;">
|
|
87
|
+
amountRecapitulation = `<table class="summary-prices commercial-table-preview" style="width: 100%; padding-left: 20px; page-break-inside: avoid !important;">
|
|
111
88
|
<thead>
|
|
112
89
|
<tr>
|
|
113
90
|
<td colspan="2">Récapitulatif</td>
|
|
@@ -137,6 +114,11 @@ export class CommercialDocumentCommonHTML {
|
|
|
137
114
|
<td>Total <%= disableVat !== true ? 'TTC' : ''%></td>
|
|
138
115
|
<td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
|
|
139
116
|
</tr>
|
|
117
|
+
<% } else if (disableVat === true && ![${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
|
|
118
|
+
<tr>
|
|
119
|
+
<td>Total</td>
|
|
120
|
+
<td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
|
|
121
|
+
</tr>
|
|
140
122
|
<% } %>
|
|
141
123
|
<% if (depositFormatted) { %>
|
|
142
124
|
<tr>
|