@silexpert/core 0.4.28 → 0.4.30
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/Loan.d.ts +11 -0
- package/es/api/resources/Loan.d.ts.map +1 -0
- package/es/api/resources/Loan.js +13 -0
- package/es/api/resources/Loan.js.map +1 -0
- package/es/api/resources/SocietyPromoCode.d.ts +8 -0
- package/es/api/resources/SocietyPromoCode.d.ts.map +1 -0
- package/es/api/resources/SocietyPromoCode.js +13 -0
- package/es/api/resources/SocietyPromoCode.js.map +1 -0
- package/es/api/resources/Stocks.d.ts +11 -0
- package/es/api/resources/Stocks.d.ts.map +1 -0
- package/es/api/resources/Stocks.js +22 -0
- package/es/api/resources/Stocks.js.map +1 -0
- package/es/api/resources.d.ts +6 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +6 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/GlobalRegime.js +41 -41
- package/es/types/Enum/GlobalRegime.js.map +1 -1
- package/es/types/Enum/StockType.d.ts +15 -55
- package/es/types/Enum/StockType.d.ts.map +1 -1
- package/es/types/Enum/StockType.js +24 -0
- package/es/types/Enum/StockType.js.map +1 -1
- package/es/types/Interface/api/loan/CreateLoan.d.ts +10 -0
- package/es/types/Interface/api/loan/CreateLoan.d.ts.map +1 -0
- package/es/types/Interface/api/loan/CreateLoan.js +41 -0
- package/es/types/Interface/api/loan/CreateLoan.js.map +1 -0
- package/es/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.d.ts +5 -0
- package/es/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.d.ts.map +1 -0
- package/es/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js +21 -0
- package/es/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js.map +1 -0
- package/es/types/Interface/api/stock/StockEntries.d.ts +20 -0
- package/es/types/Interface/api/stock/StockEntries.d.ts.map +1 -0
- package/es/types/Interface/api/stock/StockEntries.js +114 -0
- package/es/types/Interface/api/stock/StockEntries.js.map +1 -0
- package/es/types/Interface/api/stock/Stocks.d.ts +14 -0
- package/es/types/Interface/api/stock/Stocks.d.ts.map +1 -0
- package/es/types/Interface/api/stock/Stocks.js +2 -0
- package/es/types/Interface/api/stock/Stocks.js.map +1 -0
- package/es/types/Interface/api/stock/StocksDepreciationInterface.d.ts +8 -0
- package/es/types/Interface/api/stock/StocksDepreciationInterface.d.ts.map +1 -0
- package/es/types/Interface/api/stock/StocksDepreciationInterface.js +2 -0
- package/es/types/Interface/api/stock/StocksDepreciationInterface.js.map +1 -0
- package/es/types/Interface/api/stock/StocksType.d.ts +7 -0
- package/es/types/Interface/api/stock/StocksType.d.ts.map +1 -0
- package/es/types/Interface/api/stock/StocksType.js +2 -0
- package/es/types/Interface/api/stock/StocksType.js.map +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts +11 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.js +2 -0
- package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -0
- package/es/types/Interface/models/ILoan.d.ts +18 -0
- package/es/types/Interface/models/ILoan.d.ts.map +1 -0
- package/es/types/Interface/models/ILoan.js +2 -0
- package/es/types/Interface/models/ILoan.js.map +1 -0
- package/es/types/Interface/models/ISocietyPromoCode.d.ts +8 -0
- package/es/types/Interface/models/ISocietyPromoCode.d.ts.map +1 -0
- package/es/types/Interface/models/ISocietyPromoCode.js +2 -0
- package/es/types/Interface/models/ISocietyPromoCode.js.map +1 -0
- package/es/types/Interface/models/IStock.d.ts +11 -0
- package/es/types/Interface/models/IStock.d.ts.map +1 -0
- package/es/types/Interface/models/IStock.js +2 -0
- package/es/types/Interface/models/IStock.js.map +1 -0
- package/es/types/index.d.ts +9 -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/js/api/resources/Loan.js +26 -0
- package/js/api/resources/Loan.js.map +1 -0
- package/js/api/resources/SocietyPromoCode.js +26 -0
- package/js/api/resources/SocietyPromoCode.js.map +1 -0
- package/js/api/resources/Stocks.js +44 -0
- package/js/api/resources/Stocks.js.map +1 -0
- package/js/api/resources.js +10 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/GlobalRegime.js +41 -41
- package/js/types/Enum/GlobalRegime.js.map +1 -1
- package/js/types/Enum/StockType.js +25 -1
- package/js/types/Enum/StockType.js.map +1 -1
- package/js/types/Interface/api/loan/CreateLoan.js +39 -0
- package/js/types/Interface/api/loan/CreateLoan.js.map +1 -0
- package/js/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js +29 -0
- package/js/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js.map +1 -0
- package/js/types/Interface/api/stock/StockEntries.js +98 -0
- package/js/types/Interface/api/stock/StockEntries.js.map +1 -0
- package/js/types/Interface/api/stock/Stocks.js +6 -0
- package/js/types/Interface/api/stock/Stocks.js.map +1 -0
- package/js/types/Interface/api/stock/StocksDepreciationInterface.js +6 -0
- package/js/types/Interface/api/stock/StocksDepreciationInterface.js.map +1 -0
- package/js/types/Interface/api/stock/StocksType.js +6 -0
- package/js/types/Interface/api/stock/StocksType.js.map +1 -0
- package/js/types/Interface/models/IBalanceSheetModule.js +6 -0
- package/js/types/Interface/models/IBalanceSheetModule.js.map +1 -0
- package/js/types/Interface/models/ILoan.js +6 -0
- package/js/types/Interface/models/ILoan.js.map +1 -0
- package/js/types/Interface/models/ISocietyPromoCode.js +6 -0
- package/js/types/Interface/models/ISocietyPromoCode.js.map +1 -0
- package/js/types/Interface/models/IStock.js +6 -0
- package/js/types/Interface/models/IStock.js.map +1 -0
- package/js/types/index.js +108 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Loan.ts +17 -0
- package/ts/api/resources/SocietyPromoCode.ts +16 -0
- package/ts/api/resources/Stocks.ts +28 -0
- package/ts/api/resources.ts +6 -0
- package/ts/types/Enum/GlobalRegime.ts +41 -41
- package/ts/types/Enum/StockType.ts +31 -2
- package/ts/types/Interface/api/loan/CreateLoan.ts +24 -0
- package/ts/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.ts +9 -0
- package/ts/types/Interface/api/stock/StockEntries.ts +115 -0
- package/ts/types/Interface/api/stock/Stocks.ts +14 -0
- package/ts/types/Interface/api/stock/StocksDepreciationInterface.ts +8 -0
- package/ts/types/Interface/api/stock/StocksType.ts +6 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +11 -0
- package/ts/types/Interface/models/ILoan.ts +20 -0
- package/ts/types/Interface/models/ISocietyPromoCode.ts +7 -0
- package/ts/types/Interface/models/IStock.ts +10 -0
- package/ts/types/index.ts +11 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { StockEntries, TFile } from '../../types';
|
|
3
|
+
|
|
4
|
+
export class Stocks extends Resource {
|
|
5
|
+
createStocks(idSociety: number, payload: StockEntries): Promise<any> {
|
|
6
|
+
return this.axios.$post(`/stocks/${idSociety}/entries`, payload);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
createFile(idSociety: number, file: TFile): Promise<any> {
|
|
10
|
+
return this.axios.$post(`/stocks/${idSociety}/files`, file, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
getStocks(idSociety: number, idExercice: number): Promise<any> {
|
|
14
|
+
return this.axios.$get(`/stocks/${idSociety}/entries/${idExercice}`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
getFiles(idSociety: number): Promise<any> {
|
|
18
|
+
return this.axios.$get(`/stocks/${idSociety}/files`);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
downloadFile(idSociety: number, token: string): Promise<any> {
|
|
22
|
+
return this.axios.$get(`/stocks/${idSociety}/files/${token}`, { responseType: 'blob' });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
deleteFile(idSociety: number, idFile: number): Promise<any> {
|
|
26
|
+
return this.axios.$delete(`/stocks/${idSociety}/files/${idFile}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -25,6 +25,9 @@ import { Search } from './resources/Search';
|
|
|
25
25
|
import { SalariesFile } from './resources/SalariesFile';
|
|
26
26
|
import { Shine } from './resources/Shine';
|
|
27
27
|
import { PromoCode } from './resources/PromoCode';
|
|
28
|
+
import { Stocks } from './resources/Stocks';
|
|
29
|
+
import { Loan } from './resources/Loan';
|
|
30
|
+
import { SocietyPromoCode } from './resources/SocietyPromoCode';
|
|
28
31
|
|
|
29
32
|
export const resources = {
|
|
30
33
|
simulation: Simulation,
|
|
@@ -54,4 +57,7 @@ export const resources = {
|
|
|
54
57
|
salariesFile: SalariesFile,
|
|
55
58
|
shine: Shine,
|
|
56
59
|
promoCode: PromoCode,
|
|
60
|
+
stocks: Stocks,
|
|
61
|
+
loan: Loan,
|
|
62
|
+
societyPromoCode: SocietyPromoCode,
|
|
57
63
|
};
|
|
@@ -40,7 +40,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
40
40
|
idLegalForms: [LegalForm.EI.id],
|
|
41
41
|
choices: [
|
|
42
42
|
{
|
|
43
|
-
name: '
|
|
43
|
+
name: 'Artisan - commerçant (BIC - IR - 2031)',
|
|
44
44
|
idActivity: Activity.COMMERCANT,
|
|
45
45
|
idTaxSystem: TaxSystem.IR,
|
|
46
46
|
profitsType: ProfitsType.BIC,
|
|
@@ -48,7 +48,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
48
48
|
declaration: CerfaType[2031],
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
name: 'Presta de services - IR -
|
|
51
|
+
name: 'Presta de services (BIC - IR - 2031)',
|
|
52
52
|
idActivity: Activity.PRESTA_SERVICE,
|
|
53
53
|
idTaxSystem: TaxSystem.IR,
|
|
54
54
|
profitsType: ProfitsType.BIC,
|
|
@@ -56,7 +56,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
56
56
|
declaration: CerfaType[2031],
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
name: '
|
|
59
|
+
name: 'Profession libérale (BNC - IR - 2035)',
|
|
60
60
|
idActivity: Activity.PROF_LIB,
|
|
61
61
|
idTaxSystem: TaxSystem.IR,
|
|
62
62
|
profitsType: ProfitsType.BNC,
|
|
@@ -71,7 +71,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
71
71
|
idLegalForms: [LegalForm.EIRL.id],
|
|
72
72
|
choices: [
|
|
73
73
|
{
|
|
74
|
-
name: '
|
|
74
|
+
name: 'Artisan - commerçant (BIC - IR - 2031)',
|
|
75
75
|
idActivity: Activity.COMMERCANT,
|
|
76
76
|
idTaxSystem: TaxSystem.IR,
|
|
77
77
|
profitsType: ProfitsType.BIC,
|
|
@@ -79,7 +79,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
79
79
|
declaration: CerfaType[2031],
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
name: '
|
|
82
|
+
name: 'Profession libérale (BNC - IR - 2035)',
|
|
83
83
|
idActivity: Activity.PROF_LIB,
|
|
84
84
|
idTaxSystem: TaxSystem.IR,
|
|
85
85
|
profitsType: ProfitsType.BNC,
|
|
@@ -87,7 +87,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
87
87
|
declaration: CerfaType[2035],
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
name: '
|
|
90
|
+
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
91
91
|
idActivity: Activity.COMMERCANT,
|
|
92
92
|
idTaxSystem: TaxSystem.IS,
|
|
93
93
|
profitsType: ProfitsType.BIC,
|
|
@@ -96,25 +96,25 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
96
96
|
annexe: CerfaType[2033],
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
name: '
|
|
99
|
+
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
100
100
|
idActivity: Activity.COMMERCANT,
|
|
101
101
|
idTaxSystem: TaxSystem.IS,
|
|
102
102
|
profitsType: ProfitsType.BIC,
|
|
103
|
-
idFiscalRegime: FiscalRegime.
|
|
103
|
+
idFiscalRegime: FiscalRegime.RN,
|
|
104
104
|
declaration: CerfaType[2065],
|
|
105
105
|
annexe: CerfaType[2050],
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
name: '
|
|
108
|
+
name: 'Profession libérale (BNC - IS - Réel simplifié - 2065 & 2033)',
|
|
109
109
|
idActivity: Activity.PROF_LIB,
|
|
110
110
|
idTaxSystem: TaxSystem.IS,
|
|
111
111
|
profitsType: ProfitsType.BNC,
|
|
112
|
-
idFiscalRegime: FiscalRegime.
|
|
112
|
+
idFiscalRegime: FiscalRegime.RS,
|
|
113
113
|
declaration: CerfaType[2065],
|
|
114
114
|
annexe: CerfaType[2033],
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
name: '
|
|
117
|
+
name: 'Profession libérale (BNC - IS - 2065 & 2050)',
|
|
118
118
|
idActivity: Activity.PROF_LIB,
|
|
119
119
|
idTaxSystem: TaxSystem.IS,
|
|
120
120
|
profitsType: ProfitsType.BNC,
|
|
@@ -130,7 +130,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
130
130
|
idLegalForms: [LegalForm.AUTO_ENTREPRENEUR.id],
|
|
131
131
|
choices: [
|
|
132
132
|
{
|
|
133
|
-
name: '
|
|
133
|
+
name: 'Activité négoce (achat/revente de marchandises) et prestation d\'hébergement (Micro-BIC - 2042-C-Pro)',
|
|
134
134
|
idActivity: Activity.COMMERCANT,
|
|
135
135
|
idTaxSystem: TaxSystem.NA,
|
|
136
136
|
profitsType: ProfitsType.BIC,
|
|
@@ -138,7 +138,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
138
138
|
declaration: CerfaType['2042_C_Pro'],
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
|
-
name: '
|
|
141
|
+
name: 'Presta de services commerciales ou artisanales (Micro-BIC - 2042-C-Pro)',
|
|
142
142
|
idActivity: Activity.PRESTA_SERVICE,
|
|
143
143
|
idTaxSystem: TaxSystem.NA,
|
|
144
144
|
profitsType: ProfitsType.BIC,
|
|
@@ -146,7 +146,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
146
146
|
declaration: CerfaType['2042_C_Pro'],
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
name: '
|
|
149
|
+
name: 'Profession libérale (Micro-BNC - 2042-C-Pro)',
|
|
150
150
|
idActivity: Activity.PROF_LIB,
|
|
151
151
|
idTaxSystem: TaxSystem.NA,
|
|
152
152
|
profitsType: ProfitsType.BNC,
|
|
@@ -161,14 +161,14 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
161
161
|
idLegalForms: [LegalForm.ASSOCIATION.id],
|
|
162
162
|
choices: [
|
|
163
163
|
{
|
|
164
|
-
name: '
|
|
164
|
+
name: 'Non fiscalisée si revenus de capitaux (2070)',
|
|
165
165
|
idActivity: Activity.AUTRES,
|
|
166
166
|
idTaxSystem: TaxSystem.IS,
|
|
167
167
|
idFiscalRegime: FiscalRegime.NA,
|
|
168
168
|
declaration: CerfaType[2070],
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
name: '
|
|
171
|
+
name: 'Fiscalisée (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
172
172
|
idActivity: Activity.AUTRES,
|
|
173
173
|
idTaxSystem: TaxSystem.IS,
|
|
174
174
|
profitsType: ProfitsType.BIC,
|
|
@@ -177,7 +177,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
177
177
|
annexe: CerfaType[2033],
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
name: '
|
|
180
|
+
name: 'Fiscalisée (BIC - IS - Réel normal - 2065 & 2050)',
|
|
181
181
|
idActivity: Activity.AUTRES,
|
|
182
182
|
idTaxSystem: TaxSystem.IS,
|
|
183
183
|
profitsType: ProfitsType.BIC,
|
|
@@ -193,7 +193,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
193
193
|
idLegalForms: [LegalForm.EURL.id, LegalForm.SARL.id],
|
|
194
194
|
choices: [
|
|
195
195
|
{
|
|
196
|
-
name: '
|
|
196
|
+
name: 'Artisan - commerçant (BIC - IR - 2031)',
|
|
197
197
|
idActivity: Activity.COMMERCANT,
|
|
198
198
|
idTaxSystem: TaxSystem.IR,
|
|
199
199
|
profitsType: ProfitsType.BIC,
|
|
@@ -201,7 +201,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
201
201
|
declaration: CerfaType[2031],
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
|
-
name: '
|
|
204
|
+
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 && 2033)',
|
|
205
205
|
idActivity: Activity.COMMERCANT,
|
|
206
206
|
idTaxSystem: TaxSystem.IS,
|
|
207
207
|
profitsType: ProfitsType.BIC,
|
|
@@ -210,7 +210,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
210
210
|
annexe: CerfaType[2033],
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
name: '
|
|
213
|
+
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
214
214
|
idActivity: Activity.COMMERCANT,
|
|
215
215
|
idTaxSystem: TaxSystem.IS,
|
|
216
216
|
profitsType: ProfitsType.BIC,
|
|
@@ -219,7 +219,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
219
219
|
annexe: CerfaType[2050],
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
name: 'Presta de services
|
|
222
|
+
name: 'Presta de services (BIC - IR - 2031)',
|
|
223
223
|
idActivity: Activity.PRESTA_SERVICE,
|
|
224
224
|
idTaxSystem: TaxSystem.IR,
|
|
225
225
|
profitsType: ProfitsType.BIC,
|
|
@@ -227,7 +227,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
227
227
|
declaration: CerfaType[2031],
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
name: 'Presta de services
|
|
230
|
+
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
231
231
|
idActivity: Activity.PRESTA_SERVICE,
|
|
232
232
|
idTaxSystem: TaxSystem.IS,
|
|
233
233
|
profitsType: ProfitsType.BIC,
|
|
@@ -236,7 +236,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
236
236
|
annexe: CerfaType[2033],
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
|
-
name: 'Presta de services
|
|
239
|
+
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
240
240
|
idActivity: Activity.PRESTA_SERVICE,
|
|
241
241
|
idTaxSystem: TaxSystem.IS,
|
|
242
242
|
profitsType: ProfitsType.BIC,
|
|
@@ -252,7 +252,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
252
252
|
idLegalForms: [LegalForm.SAS.id, LegalForm.SASU.id],
|
|
253
253
|
choices: [
|
|
254
254
|
{
|
|
255
|
-
name: '
|
|
255
|
+
name: 'Artisan - commerçant (BIC - IR - 2031)',
|
|
256
256
|
idActivity: Activity.COMMERCANT,
|
|
257
257
|
idTaxSystem: TaxSystem.IR,
|
|
258
258
|
profitsType: ProfitsType.BIC,
|
|
@@ -260,7 +260,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
260
260
|
declaration: CerfaType[2031],
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
|
-
name: '
|
|
263
|
+
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
264
264
|
idActivity: Activity.COMMERCANT,
|
|
265
265
|
idTaxSystem: TaxSystem.IS,
|
|
266
266
|
profitsType: ProfitsType.BIC,
|
|
@@ -269,7 +269,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
269
269
|
annexe: CerfaType[2033],
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
name: '
|
|
272
|
+
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
273
273
|
idActivity: Activity.COMMERCANT,
|
|
274
274
|
idTaxSystem: TaxSystem.IS,
|
|
275
275
|
profitsType: ProfitsType.BIC,
|
|
@@ -278,7 +278,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
278
278
|
annexe: CerfaType[2050],
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
name: 'Presta de services
|
|
281
|
+
name: 'Presta de services (BIC - IR - 2031)',
|
|
282
282
|
idActivity: Activity.PRESTA_SERVICE,
|
|
283
283
|
idTaxSystem: TaxSystem.IR,
|
|
284
284
|
profitsType: ProfitsType.BIC,
|
|
@@ -286,7 +286,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
286
286
|
declaration: CerfaType[2031],
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
|
-
name: 'Presta de services
|
|
289
|
+
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
290
290
|
idActivity: Activity.PRESTA_SERVICE,
|
|
291
291
|
idTaxSystem: TaxSystem.IS,
|
|
292
292
|
profitsType: ProfitsType.BIC,
|
|
@@ -295,7 +295,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
295
295
|
annexe: CerfaType[2033],
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
name: 'Presta de services
|
|
298
|
+
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
299
299
|
idActivity: Activity.PRESTA_SERVICE,
|
|
300
300
|
idTaxSystem: TaxSystem.IS,
|
|
301
301
|
profitsType: ProfitsType.BIC,
|
|
@@ -311,7 +311,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
311
311
|
idLegalForms: [LegalForm.SA.id],
|
|
312
312
|
choices: [
|
|
313
313
|
{
|
|
314
|
-
name: '
|
|
314
|
+
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
315
315
|
idActivity: Activity.COMMERCANT,
|
|
316
316
|
idTaxSystem: TaxSystem.IS,
|
|
317
317
|
profitsType: ProfitsType.BIC,
|
|
@@ -320,7 +320,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
320
320
|
annexe: CerfaType[2033],
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
|
-
name: '
|
|
323
|
+
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
324
324
|
idActivity: Activity.COMMERCANT,
|
|
325
325
|
idTaxSystem: TaxSystem.IS,
|
|
326
326
|
profitsType: ProfitsType.BIC,
|
|
@@ -329,7 +329,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
329
329
|
annexe: CerfaType[2050],
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
|
-
name: 'Presta de services
|
|
332
|
+
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
333
333
|
idActivity: Activity.PRESTA_SERVICE,
|
|
334
334
|
idTaxSystem: TaxSystem.IS,
|
|
335
335
|
profitsType: ProfitsType.BIC,
|
|
@@ -339,7 +339,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
339
339
|
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
|
-
name: 'Presta de services
|
|
342
|
+
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
343
343
|
idActivity: Activity.PRESTA_SERVICE,
|
|
344
344
|
idTaxSystem: TaxSystem.IS,
|
|
345
345
|
profitsType: ProfitsType.BIC,
|
|
@@ -355,7 +355,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
355
355
|
idLegalForms: [LegalForm.SCI.id],
|
|
356
356
|
choices: [
|
|
357
357
|
{
|
|
358
|
-
name: 'Presta de services - IR -
|
|
358
|
+
name: 'Presta de services (BNC - IR - 2044)',
|
|
359
359
|
idActivity: Activity.PRESTA_SERVICE,
|
|
360
360
|
idTaxSystem: TaxSystem.IR,
|
|
361
361
|
profitsType: ProfitsType.BNC,
|
|
@@ -363,7 +363,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
363
363
|
declaration: CerfaType[2044],
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
name: 'Presta de services - IS -
|
|
366
|
+
name: 'Presta de services (BNC - IS - 2072)',
|
|
367
367
|
idActivity: Activity.PRESTA_SERVICE,
|
|
368
368
|
idTaxSystem: TaxSystem.IS,
|
|
369
369
|
profitsType: ProfitsType.BNC,
|
|
@@ -378,7 +378,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
378
378
|
idLegalForms: [LegalForm.SCP.id],
|
|
379
379
|
choices: [
|
|
380
380
|
{
|
|
381
|
-
name: 'Presta de services - IR -
|
|
381
|
+
name: 'Presta de services (BNC - IR - 2035)',
|
|
382
382
|
idActivity: Activity.PRESTA_SERVICE,
|
|
383
383
|
idTaxSystem: TaxSystem.IR,
|
|
384
384
|
profitsType: ProfitsType.BNC,
|
|
@@ -386,7 +386,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
386
386
|
declaration: CerfaType[2035],
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
|
-
name: 'Presta de services - IS -
|
|
389
|
+
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
390
390
|
idActivity: Activity.PRESTA_SERVICE,
|
|
391
391
|
idTaxSystem: TaxSystem.IS,
|
|
392
392
|
profitsType: ProfitsType.BIC,
|
|
@@ -395,7 +395,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
395
395
|
annexe: CerfaType[2033],
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
|
-
name: 'Presta de services - IS -
|
|
398
|
+
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
399
399
|
idActivity: Activity.PRESTA_SERVICE,
|
|
400
400
|
idTaxSystem: TaxSystem.IS,
|
|
401
401
|
profitsType: ProfitsType.BIC,
|
|
@@ -411,7 +411,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
411
411
|
idLegalForms: [LegalForm.SELARL.id],
|
|
412
412
|
choices: [
|
|
413
413
|
{
|
|
414
|
-
name: 'Profession libérale - IR -
|
|
414
|
+
name: 'Profession libérale (BNC - IR - 2035)',
|
|
415
415
|
idActivity: Activity.PROF_LIB,
|
|
416
416
|
idTaxSystem: TaxSystem.IR,
|
|
417
417
|
profitsType: ProfitsType.BNC,
|
|
@@ -419,7 +419,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
419
419
|
declaration: CerfaType[2035],
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
name: 'Profession libérale - IS -
|
|
422
|
+
name: 'Profession libérale (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
423
423
|
idActivity: Activity.PROF_LIB,
|
|
424
424
|
idTaxSystem: TaxSystem.IS,
|
|
425
425
|
profitsType: ProfitsType.BIC,
|
|
@@ -428,7 +428,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
428
428
|
annexe: CerfaType[2033],
|
|
429
429
|
},
|
|
430
430
|
{
|
|
431
|
-
name: 'Profession libérale - IS -
|
|
431
|
+
name: 'Profession libérale (BIC - IS - Réel normal - 2065 & 2050)',
|
|
432
432
|
idActivity: Activity.PROF_LIB,
|
|
433
433
|
idTaxSystem: TaxSystem.IS,
|
|
434
434
|
profitsType: ProfitsType.BIC,
|
|
@@ -1,56 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
import { stockInterface } from '../Interface/api/stock/Stocks';
|
|
2
|
+
import { depreciationInterface } from '../Interface/api/stock/StocksDepreciationInterface';
|
|
3
|
+
|
|
4
|
+
export const StockType: stockInterface = {
|
|
2
5
|
STOCK_MATIERE_PREMIERE: {
|
|
6
|
+
designation: 'Stock de matière première',
|
|
3
7
|
idAccount: 35,
|
|
4
8
|
idAccountVariation: 28,
|
|
5
9
|
idAccountDepreciation: 375,
|
|
6
10
|
},
|
|
7
11
|
STOCK_MATIERE_CONSOMMABLE: {
|
|
12
|
+
designation: 'Stock de matière consommable',
|
|
8
13
|
idAccount: 182,
|
|
9
14
|
idAccountVariation: 29,
|
|
10
15
|
idAccountDepreciation: 381,
|
|
11
16
|
},
|
|
12
17
|
STOCK_FOURNITURE_CONSOMMABLE: {
|
|
18
|
+
designation: 'Stock de fourniture consommable',
|
|
13
19
|
idAccount: 338,
|
|
14
20
|
idAccountVariation: 29,
|
|
15
21
|
idAccountDepreciation: 382,
|
|
16
22
|
},
|
|
17
23
|
STOCK_EMBALLAGE: {
|
|
24
|
+
designation: 'Stock emballage',
|
|
18
25
|
idAccount: 344,
|
|
19
26
|
idAccountVariation: 29,
|
|
20
27
|
idAccountDepreciation: 383,
|
|
21
28
|
},
|
|
22
29
|
STOCK_MARCHANDISE: {
|
|
30
|
+
designation: 'Stock de marchandise',
|
|
23
31
|
idAccount: 372,
|
|
24
32
|
idAccountVariation: 36,
|
|
25
33
|
idAccountDepreciation: 393,
|
|
26
34
|
},
|
|
27
35
|
STOCK_PRODUITS_PRODUCTION_EN_COURS: {
|
|
36
|
+
designation: 'Stock de produits de production en cours',
|
|
28
37
|
idAccount: 349,
|
|
29
38
|
idAccountVariation: 421,
|
|
30
39
|
idAccountDepreciation: 385,
|
|
31
40
|
},
|
|
32
41
|
STOCK_TRAVAUX_PRODUCTION_EN_COURS: {
|
|
42
|
+
designation: 'Stock de travaux de production en cours',
|
|
33
43
|
idAccount: 352,
|
|
34
44
|
idAccountVariation: 422,
|
|
35
45
|
idAccountDepreciation: 396,
|
|
36
46
|
},
|
|
37
47
|
STOCK_PRODUITS_SERVICE_EN_COURS: {
|
|
48
|
+
designation: 'Stock de produit et service en cours',
|
|
38
49
|
idAccount: 355,
|
|
39
50
|
idAccountVariation: 424,
|
|
40
51
|
idAccountDepreciation: 388,
|
|
41
52
|
},
|
|
42
53
|
STOCK_PRESTATION_SERVICE_EN_COURS: {
|
|
54
|
+
designation: 'Stock de prestation de service en cours',
|
|
43
55
|
idAccount: 358,
|
|
44
56
|
idAccountVariation: 425,
|
|
45
57
|
idAccountDepreciation: 389,
|
|
46
58
|
},
|
|
47
59
|
STOCK_PRODUITS_FINI: {
|
|
60
|
+
designation: 'Stock de produits finis',
|
|
48
61
|
idAccount: 364,
|
|
49
62
|
idAccountVariation: 428,
|
|
50
63
|
idAccountDepreciation: 392,
|
|
51
64
|
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const StockDepreciation: depreciationInterface = {
|
|
52
68
|
DEPRECIATION_STOCK: {
|
|
53
69
|
idAccount: 928,
|
|
54
70
|
idAccountExtourne: 486,
|
|
55
71
|
},
|
|
56
|
-
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const StockMapping = {
|
|
75
|
+
STOCK_MATIERE_PREMIERE: 'rawMaterial',
|
|
76
|
+
STOCK_MATIERE_CONSOMMABLE: 'consumableMaterials',
|
|
77
|
+
STOCK_FOURNITURE_CONSOMMABLE: 'consumables',
|
|
78
|
+
STOCK_EMBALLAGE: 'packaging',
|
|
79
|
+
STOCK_MARCHANDISE: 'merchandises',
|
|
80
|
+
STOCK_PRODUITS_PRODUCTION_EN_COURS: 'semiFinishedProducts',
|
|
81
|
+
STOCK_TRAVAUX_PRODUCTION_EN_COURS: 'workInProgress',
|
|
82
|
+
STOCK_PRODUITS_SERVICE_EN_COURS: 'semiFinishedServices',
|
|
83
|
+
STOCK_PRESTATION_SERVICE_EN_COURS: 'servicesInProgress',
|
|
84
|
+
STOCK_PRODUITS_FINI: 'finishedProducts',
|
|
85
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApiProperty } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class CreateLoanForm {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
lenderDesignation: string;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
number: number;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
amount: number;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
assetBeforeExercice: number;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
assetAfterExercice: number;
|
|
21
|
+
|
|
22
|
+
@ApiProperty()
|
|
23
|
+
idExercice: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class DataStockEntries {
|
|
4
|
+
@ApiProperty(
|
|
5
|
+
{
|
|
6
|
+
description: 'Id of the defined stock',
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
)
|
|
10
|
+
idAccount: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty(
|
|
13
|
+
{
|
|
14
|
+
description: 'Value of the defined stock',
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
)
|
|
18
|
+
value: number;
|
|
19
|
+
|
|
20
|
+
@ApiProperty(
|
|
21
|
+
{
|
|
22
|
+
description: 'Value of the depreciation',
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
)
|
|
26
|
+
depreciation: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class StockEntries {
|
|
30
|
+
@ApiPropertyOptional()
|
|
31
|
+
hasInventoryStock?: boolean;
|
|
32
|
+
|
|
33
|
+
@ApiPropertyOptional()
|
|
34
|
+
hasNoStockRecorded?: boolean;
|
|
35
|
+
|
|
36
|
+
@ApiProperty(
|
|
37
|
+
{
|
|
38
|
+
description: 'Id of the exercise',
|
|
39
|
+
required: true,
|
|
40
|
+
},
|
|
41
|
+
)
|
|
42
|
+
idExercice?: number;
|
|
43
|
+
|
|
44
|
+
@ApiProperty(
|
|
45
|
+
{
|
|
46
|
+
description: 'Raw material',
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
)
|
|
50
|
+
rawMaterial: DataStockEntries;
|
|
51
|
+
|
|
52
|
+
@ApiProperty(
|
|
53
|
+
{
|
|
54
|
+
description: 'Merchandises',
|
|
55
|
+
required: true,
|
|
56
|
+
},
|
|
57
|
+
)
|
|
58
|
+
merchandises: DataStockEntries;
|
|
59
|
+
|
|
60
|
+
@ApiProperty(
|
|
61
|
+
{
|
|
62
|
+
description: 'Finished products',
|
|
63
|
+
required: true,
|
|
64
|
+
},
|
|
65
|
+
)
|
|
66
|
+
finishedProducts: DataStockEntries;
|
|
67
|
+
|
|
68
|
+
@ApiProperty(
|
|
69
|
+
{
|
|
70
|
+
description: 'Semi finished products',
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
)
|
|
74
|
+
semiFinishedProducts: DataStockEntries;
|
|
75
|
+
|
|
76
|
+
@ApiProperty(
|
|
77
|
+
{
|
|
78
|
+
description: 'Consumable materials',
|
|
79
|
+
required: true,
|
|
80
|
+
},
|
|
81
|
+
)
|
|
82
|
+
consumableMaterials: DataStockEntries;
|
|
83
|
+
|
|
84
|
+
@ApiProperty(
|
|
85
|
+
{
|
|
86
|
+
description: 'Consumables',
|
|
87
|
+
required: true,
|
|
88
|
+
},
|
|
89
|
+
)
|
|
90
|
+
consumables: DataStockEntries;
|
|
91
|
+
|
|
92
|
+
@ApiProperty(
|
|
93
|
+
{
|
|
94
|
+
description: 'Packaging',
|
|
95
|
+
required: true,
|
|
96
|
+
},
|
|
97
|
+
)
|
|
98
|
+
packaging: DataStockEntries;
|
|
99
|
+
|
|
100
|
+
@ApiProperty(
|
|
101
|
+
{
|
|
102
|
+
description: 'Work In Progress',
|
|
103
|
+
required: true,
|
|
104
|
+
},
|
|
105
|
+
)
|
|
106
|
+
workInProgress: DataStockEntries;
|
|
107
|
+
|
|
108
|
+
@ApiProperty(
|
|
109
|
+
{
|
|
110
|
+
description: 'Services In Progress',
|
|
111
|
+
required: true,
|
|
112
|
+
},
|
|
113
|
+
)
|
|
114
|
+
servicesInProgress: DataStockEntries;
|
|
115
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StockTypeInterface } from './StocksType';
|
|
2
|
+
|
|
3
|
+
export interface stockInterface {
|
|
4
|
+
STOCK_MATIERE_PREMIERE: StockTypeInterface;
|
|
5
|
+
STOCK_MATIERE_CONSOMMABLE: StockTypeInterface,
|
|
6
|
+
STOCK_FOURNITURE_CONSOMMABLE: StockTypeInterface,
|
|
7
|
+
STOCK_EMBALLAGE: StockTypeInterface,
|
|
8
|
+
STOCK_MARCHANDISE: StockTypeInterface,
|
|
9
|
+
STOCK_PRODUITS_PRODUCTION_EN_COURS: StockTypeInterface,
|
|
10
|
+
STOCK_TRAVAUX_PRODUCTION_EN_COURS: StockTypeInterface,
|
|
11
|
+
STOCK_PRODUITS_SERVICE_EN_COURS: StockTypeInterface,
|
|
12
|
+
STOCK_PRESTATION_SERVICE_EN_COURS: StockTypeInterface,
|
|
13
|
+
STOCK_PRODUITS_FINI: StockTypeInterface,
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// balanceSheetModule
|
|
2
|
+
export interface IBalanceSheetModule {
|
|
3
|
+
id?: number;
|
|
4
|
+
inventory: boolean;
|
|
5
|
+
deadlinerecoveryImmobilization: boolean;
|
|
6
|
+
salariesFile: boolean;
|
|
7
|
+
idSociety: number;
|
|
8
|
+
idExercice: number;
|
|
9
|
+
createdAt?: Date | null;
|
|
10
|
+
updatedAt?: Date | null;
|
|
11
|
+
}
|