@silexpert/core 1.1.270 → 1.1.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/resources/Transaction.d.ts +2 -2
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js.map +1 -1
- package/dist/cjs/types/Enum/AccountType.d.ts +28 -0
- package/dist/cjs/types/Enum/AccountType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/AccountType.js +28 -0
- package/dist/cjs/types/Enum/AccountType.js.map +1 -1
- package/dist/cjs/types/Interface/api/account/Create.d.ts +2 -0
- package/dist/cjs/types/Interface/api/account/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/account/Create.js +12 -0
- package/dist/cjs/types/Interface/api/account/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/account/Update.d.ts +2 -0
- package/dist/cjs/types/Interface/api/account/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/account/Update.js +12 -0
- package/dist/cjs/types/Interface/api/account/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +3 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.js +21 -11
- package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/vat.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/vat.js +3 -1
- package/dist/cjs/utils/commercialManagement/vat.js.map +1 -1
- package/dist/mjs/api/resources/Transaction.d.ts +2 -2
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js.map +1 -1
- package/dist/mjs/types/Enum/AccountType.d.ts +28 -0
- package/dist/mjs/types/Enum/AccountType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/AccountType.js +28 -0
- package/dist/mjs/types/Enum/AccountType.js.map +1 -1
- package/dist/mjs/types/Interface/api/account/Create.d.ts +2 -0
- package/dist/mjs/types/Interface/api/account/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/account/Create.js +15 -1
- package/dist/mjs/types/Interface/api/account/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/account/Update.d.ts +2 -0
- package/dist/mjs/types/Interface/api/account/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/account/Update.js +15 -1
- package/dist/mjs/types/Interface/api/account/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +3 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.js +14 -0
- package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/vat.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/vat.js +2 -0
- package/dist/mjs/utils/commercialManagement/vat.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Transaction.ts +2 -1
- package/ts/types/Enum/AccountType.ts +28 -0
- package/ts/types/Interface/api/account/Create.ts +11 -1
- package/ts/types/Interface/api/account/Update.ts +12 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +3 -1
- package/ts/types/Interface/api/commercialManagement/Read.ts +2 -0
- package/ts/utils/commercialManagement/document.ts +18 -1
- package/ts/utils/commercialManagement/vat.ts +2 -0
|
@@ -3,141 +3,169 @@ export const AccountType = {
|
|
|
3
3
|
id: 1,
|
|
4
4
|
color: '#8765D0',
|
|
5
5
|
icon: 'TravelExpenses',
|
|
6
|
+
name: 'Déplacement',
|
|
6
7
|
},
|
|
7
8
|
BANQUES: {
|
|
8
9
|
id: 2,
|
|
9
10
|
color: '#FF7E3C',
|
|
10
11
|
icon: 'BankFees',
|
|
12
|
+
name: 'Banque',
|
|
11
13
|
},
|
|
12
14
|
DEPENSES_DIVERSES: {
|
|
13
15
|
id: 3,
|
|
14
16
|
color: '#FFB13C',
|
|
15
17
|
icon: 'MiscExpenses',
|
|
18
|
+
name: 'Dépenses diverses',
|
|
16
19
|
},
|
|
17
20
|
SOUS_TRAITANCES: {
|
|
18
21
|
id: 4,
|
|
19
22
|
color: '#A35305',
|
|
20
23
|
icon: 'ServicesAndSubcontracting',
|
|
24
|
+
name: 'Sous-traitances',
|
|
21
25
|
},
|
|
22
26
|
ACHAT_MARCHANDISES: {
|
|
23
27
|
id: 5,
|
|
24
28
|
color: '#FFB13C',
|
|
25
29
|
icon: 'Buyings',
|
|
30
|
+
name: 'Achat marchandises',
|
|
26
31
|
},
|
|
27
32
|
CHARGES_SOCIALES: {
|
|
28
33
|
id: 6,
|
|
29
34
|
color: '#C72B16',
|
|
30
35
|
icon: 'SalariesAndSocialCharges',
|
|
36
|
+
name: 'charges sociales',
|
|
31
37
|
},
|
|
32
38
|
TAXES: {
|
|
33
39
|
id: 8,
|
|
34
40
|
color: '#C72B16',
|
|
35
41
|
icon: 'Taxes',
|
|
42
|
+
name: 'Taxes',
|
|
36
43
|
},
|
|
37
44
|
FONCTIONNEMENT: {
|
|
38
45
|
id: 9,
|
|
39
46
|
color: '#84908D',
|
|
40
47
|
icon: 'FixedChargesAndSubscriptions',
|
|
48
|
+
name: 'Fonctionnement',
|
|
41
49
|
},
|
|
42
50
|
RECETTES_PRODUCTION: {
|
|
43
51
|
id: 10,
|
|
44
52
|
color: '#65D09A',
|
|
45
53
|
icon: 'ProductionIncomes',
|
|
54
|
+
name: 'Recettes production',
|
|
46
55
|
},
|
|
47
56
|
RECETTES_NEGOCE: {
|
|
48
57
|
id: 11,
|
|
49
58
|
color: '#65D09A',
|
|
50
59
|
icon: 'TradingIncomes',
|
|
60
|
+
name: 'recettes négoce',
|
|
51
61
|
},
|
|
52
62
|
RECETTES_DIVERSES: {
|
|
53
63
|
id: 12,
|
|
54
64
|
color: '#65D09A',
|
|
55
65
|
icon: 'MiscIncomes',
|
|
66
|
+
name: 'Recettes diverses',
|
|
56
67
|
},
|
|
57
68
|
AUTRES: {
|
|
58
69
|
id: 13,
|
|
59
70
|
color: '#FFB13C',
|
|
60
71
|
icon: 'Others',
|
|
72
|
+
name: 'Autres',
|
|
61
73
|
},
|
|
62
74
|
ACHATS: {
|
|
63
75
|
id: 14,
|
|
64
76
|
color: '#FFB13C',
|
|
65
77
|
icon: 'Buyings',
|
|
78
|
+
name: 'Achats',
|
|
66
79
|
},
|
|
67
80
|
SALAIRES: {
|
|
68
81
|
id: 15,
|
|
69
82
|
color: '#C72B16',
|
|
70
83
|
icon: 'SalariesAndSocialCharges',
|
|
84
|
+
name: 'Salaires',
|
|
71
85
|
},
|
|
72
86
|
IMMOBILIER: {
|
|
73
87
|
id: 16,
|
|
74
88
|
color: '#088C4A',
|
|
75
89
|
icon: 'RealEstate',
|
|
90
|
+
name: 'Immobilier',
|
|
76
91
|
},
|
|
77
92
|
SERVICES: {
|
|
78
93
|
id: 17,
|
|
79
94
|
color: '#A35305',
|
|
80
95
|
icon: 'ServicesAndSubcontracting',
|
|
96
|
+
name: 'Services',
|
|
81
97
|
},
|
|
82
98
|
ABONNEMENTS: {
|
|
83
99
|
id: 18,
|
|
84
100
|
color: '#E74242',
|
|
85
101
|
icon: 'FixedChargesAndSubscriptions',
|
|
102
|
+
name: 'Abonnements',
|
|
86
103
|
},
|
|
87
104
|
DEPENSES_COURANTES: {
|
|
88
105
|
id: 19,
|
|
89
106
|
color: '#FFB13C',
|
|
90
107
|
icon: 'MiscExpenses',
|
|
108
|
+
name: 'Dépenses courantes',
|
|
91
109
|
},
|
|
92
110
|
TRANSPORTS: {
|
|
93
111
|
id: 20,
|
|
94
112
|
color: '#8765D0',
|
|
95
113
|
icon: 'FreightTransport',
|
|
114
|
+
name: 'Transports',
|
|
96
115
|
},
|
|
97
116
|
ADMINISTRATIF: {
|
|
98
117
|
id: 21,
|
|
99
118
|
color: '#5894EF',
|
|
100
119
|
icon: 'Administrative',
|
|
120
|
+
name: 'Administratif',
|
|
101
121
|
},
|
|
102
122
|
PUBLICITES_ET_MISSIONS: {
|
|
103
123
|
id: 22,
|
|
104
124
|
color: '#088C4A',
|
|
105
125
|
icon: 'AdvertisingCommunication',
|
|
126
|
+
name: 'Publicités et missions',
|
|
106
127
|
},
|
|
107
128
|
DIVERS: {
|
|
108
129
|
id: 23,
|
|
109
130
|
color: '#FFB13C',
|
|
110
131
|
icon: 'Others',
|
|
132
|
+
name: 'Divers',
|
|
111
133
|
},
|
|
112
134
|
FINANCES: {
|
|
113
135
|
id: 24,
|
|
114
136
|
color: '#FF7E3C',
|
|
115
137
|
icon: 'Finances',
|
|
138
|
+
name: 'Finances',
|
|
116
139
|
},
|
|
117
140
|
IMMOBILISATIONS: {
|
|
118
141
|
id: 25,
|
|
119
142
|
color: '#5894EF',
|
|
120
143
|
icon: 'CapitalAssets',
|
|
144
|
+
name: 'Immobilisations',
|
|
121
145
|
},
|
|
122
146
|
TIERS: {
|
|
123
147
|
id: 27,
|
|
124
148
|
color: '#26D395',
|
|
125
149
|
icon: 'Tiers',
|
|
150
|
+
name: 'Tiers',
|
|
126
151
|
},
|
|
127
152
|
STOCKS: {
|
|
128
153
|
id: 28,
|
|
129
154
|
color: '#C2C1C1',
|
|
130
155
|
icon: 'Stocks',
|
|
156
|
+
name: 'Stocks',
|
|
131
157
|
},
|
|
132
158
|
ACHATS_MATIERE_PREMIERE: {
|
|
133
159
|
id: 29,
|
|
134
160
|
color: '#FFB13C',
|
|
135
161
|
icon: 'Buyings',
|
|
162
|
+
name: 'Achats matière première',
|
|
136
163
|
},
|
|
137
164
|
ACHATS_EXTERNES: {
|
|
138
165
|
id: 30,
|
|
139
166
|
color: '#FFB13C',
|
|
140
167
|
icon: 'Buyings',
|
|
168
|
+
name: 'Achars Externes',
|
|
141
169
|
},
|
|
142
170
|
};
|
|
143
171
|
//# sourceMappingURL=AccountType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AccountType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"AccountType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AccountType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,aAAa;KACpB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;KACf;IACD,iBAAiB,EAAE;QACjB,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,mBAAmB;KAC1B;IACD,eAAe,EAAE;QACf,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,2BAA2B;QACjC,IAAI,EAAE,iBAAiB;KACxB;IACD,kBAAkB,EA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,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;KACd;IACD,MAAM,EAAE;QACN,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;KACf;IACD,uBAAuB,EAAE;QACvB,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,yBAAyB;KAChC;IACD,eAAe,EAAE;QACf,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,iBAAiB;KACxB;CACF,CAAC","sourcesContent":["export const AccountType = {\n DEPLACEMENTS: {\n id: 1,\n color: '#8765D0',\n icon: 'TravelExpenses',\n name: 'Déplacement',\n },\n BANQUES: {\n id: 2,\n color: '#FF7E3C',\n icon: 'BankFees',\n name: 'Banque',\n },\n DEPENSES_DIVERSES: {\n id: 3,\n color: '#FFB13C',\n icon: 'MiscExpenses',\n name: 'Dépenses diverses',\n },\n SOUS_TRAITANCES: {\n id: 4,\n color: '#A35305',\n icon: 'ServicesAndSubcontracting',\n name: 'Sous-traitances',\n },\n ACHAT_MARCHANDISES: {\n id: 5,\n color: '#FFB13C',\n icon: 'Buyings',\n name: 'Achat marchandises',\n },\n CHARGES_SOCIALES: {\n id: 6,\n color: '#C72B16',\n icon: 'SalariesAndSocialCharges',\n name: 'charges sociales',\n },\n TAXES: {\n id: 8,\n color: '#C72B16',\n icon: 'Taxes',\n name: 'Taxes',\n },\n FONCTIONNEMENT: {\n id: 9,\n color: '#84908D',\n icon: 'FixedChargesAndSubscriptions',\n name: 'Fonctionnement',\n },\n RECETTES_PRODUCTION: {\n id: 10,\n color: '#65D09A',\n icon: 'ProductionIncomes',\n name: 'Recettes production',\n },\n RECETTES_NEGOCE: {\n id: 11,\n color: '#65D09A',\n icon: 'TradingIncomes',\n name: 'recettes négoce',\n },\n RECETTES_DIVERSES: {\n id: 12,\n color: '#65D09A',\n icon: 'MiscIncomes',\n name: 'Recettes diverses',\n },\n AUTRES: {\n id: 13,\n color: '#FFB13C',\n icon: 'Others',\n name: 'Autres',\n },\n ACHATS: {\n id: 14,\n color: '#FFB13C',\n icon: 'Buyings',\n name: 'Achats',\n },\n SALAIRES: {\n id: 15,\n color: '#C72B16',\n icon: 'SalariesAndSocialCharges',\n name: 'Salaires',\n },\n IMMOBILIER: {\n id: 16,\n color: '#088C4A',\n icon: 'RealEstate',\n name: 'Immobilier',\n },\n SERVICES: {\n id: 17,\n color: '#A35305',\n icon: 'ServicesAndSubcontracting',\n name: 'Services',\n },\n ABONNEMENTS: {\n id: 18,\n color: '#E74242',\n icon: 'FixedChargesAndSubscriptions',\n name: 'Abonnements',\n },\n DEPENSES_COURANTES: {\n id: 19,\n color: '#FFB13C',\n icon: 'MiscExpenses',\n name: 'Dépenses courantes',\n },\n TRANSPORTS: {\n id: 20,\n color: '#8765D0',\n icon: 'FreightTransport',\n name: 'Transports',\n },\n ADMINISTRATIF: {\n id: 21,\n color: '#5894EF',\n icon: 'Administrative',\n name: 'Administratif',\n },\n PUBLICITES_ET_MISSIONS: {\n id: 22,\n color: '#088C4A',\n icon: 'AdvertisingCommunication',\n name: 'Publicités et missions',\n },\n DIVERS: {\n id: 23,\n color: '#FFB13C',\n icon: 'Others',\n name: 'Divers',\n },\n FINANCES: {\n id: 24,\n color: '#FF7E3C',\n icon: 'Finances',\n name: 'Finances',\n },\n IMMOBILISATIONS: {\n id: 25,\n color: '#5894EF',\n icon: 'CapitalAssets',\n name: 'Immobilisations',\n },\n TIERS: {\n id: 27,\n color: '#26D395',\n icon: 'Tiers',\n name: 'Tiers',\n },\n STOCKS: {\n id: 28,\n color: '#C2C1C1',\n icon: 'Stocks',\n name: 'Stocks',\n },\n ACHATS_MATIERE_PREMIERE: {\n id: 29,\n color: '#FFB13C',\n icon: 'Buyings',\n name: 'Achats matière première',\n },\n ACHATS_EXTERNES: {\n id: 30,\n color: '#FFB13C',\n icon: 'Buyings',\n name: 'Achars Externes',\n },\n};\n"]}
|
|
@@ -7,7 +7,9 @@ export declare class CreateAccountSociety {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class CreateAccount {
|
|
9
9
|
account: Partial<IAccount>;
|
|
10
|
+
idSociety?: number;
|
|
10
11
|
comment?: string | null;
|
|
11
12
|
tags?: string[];
|
|
13
|
+
idSectors?: Array<number>;
|
|
12
14
|
}
|
|
13
15
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,qBAAa,oBAAoB;IAE7B,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,qBAAa,aAAa;IAEtB,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAK3B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,qBAAa,oBAAoB;IAE7B,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,qBAAa,aAAa;IAEtB,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAK3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAKhB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B"}
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsOptional, IsString } from 'class-validator';
|
|
10
|
+
import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
export class CreateAccountSociety {
|
|
13
13
|
number;
|
|
@@ -33,13 +33,21 @@ __decorate([
|
|
|
33
33
|
], CreateAccountSociety.prototype, "idVat", void 0);
|
|
34
34
|
export class CreateAccount {
|
|
35
35
|
account;
|
|
36
|
+
idSociety;
|
|
36
37
|
comment;
|
|
37
38
|
tags;
|
|
39
|
+
idSectors;
|
|
38
40
|
}
|
|
39
41
|
__decorate([
|
|
40
42
|
ApiProperty(),
|
|
41
43
|
__metadata("design:type", Object)
|
|
42
44
|
], CreateAccount.prototype, "account", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
ApiPropertyOptional(),
|
|
47
|
+
IsNumber(),
|
|
48
|
+
IsOptional(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], CreateAccount.prototype, "idSociety", void 0);
|
|
43
51
|
__decorate([
|
|
44
52
|
ApiPropertyOptional(),
|
|
45
53
|
IsString(),
|
|
@@ -52,4 +60,10 @@ __decorate([
|
|
|
52
60
|
IsOptional(),
|
|
53
61
|
__metadata("design:type", Array)
|
|
54
62
|
], CreateAccount.prototype, "tags", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
ApiPropertyOptional(),
|
|
65
|
+
IsOptional(),
|
|
66
|
+
IsArray(),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], CreateAccount.prototype, "idSectors", void 0);
|
|
55
69
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,oBAAoB;IAE7B,MAAM,CAAS;IAGf,IAAI,CAAS;IAGb,eAAe,CAAS;IAGxB,KAAK,CAAU;CAClB;AAXC;IAAC,WAAW,EAAE;;oDACG;AAEjB;IAAC,WAAW,EAAE;;kDACC;AAEf;IAAC,WAAW,EAAE;;6DACY;AAE1B;IAAC,mBAAmB,EAAE;;mDACL;AAInB,MAAM,OAAO,aAAa;IAEtB,OAAO,CAAoB;IAK3B,SAAS,CAAU;IAKnB,OAAO,CAAiB;IAKxB,IAAI,CAAY;IAKhB,SAAS,CAAiB;CAC7B;AAtBC;IAAC,WAAW,EAAE;;8CACe;AAE7B;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;gDACQ;AAErB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACa;AAE1B;IAAC,mBAAmB,EAAE;IACrB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;2CACK;AAElB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;8BACI,KAAK;gDAAS","sourcesContent":["import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { IAccount } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateAccountSociety {\n @ApiProperty()\n number: number;\n\n @ApiProperty()\n name: string;\n\n @ApiProperty()\n idParentAccount: number;\n\n @ApiPropertyOptional()\n idVat?: number;\n}\n\n\nexport class CreateAccount {\n @ApiProperty()\n account: Partial<IAccount>;\n \n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string | null;\n\n @ApiPropertyOptional()\n @IsString({ each: true })\n @IsOptional()\n tags?: string[];\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idSectors?: Array<number>;\n}"]}
|
|
@@ -9,8 +9,10 @@ export declare class UpdateAccountSociety {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class UpdateAccount {
|
|
11
11
|
account: Partial<IAccount>;
|
|
12
|
+
idSociety?: number;
|
|
12
13
|
comment?: string | null;
|
|
13
14
|
tagsToAdd?: string[];
|
|
14
15
|
tagsToRemove?: string[];
|
|
16
|
+
idSectors?: Array<number>;
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,qBAAa,oBAAoB;IAE7B,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,qBAAa,aAAa;IAEtB,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAK3B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAKrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,qBAAa,oBAAoB;IAE7B,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,qBAAa,aAAa;IAEtB,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAK3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAKrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAE7B"}
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsOptional, IsString } from 'class-validator';
|
|
10
|
+
import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
export class UpdateAccountSociety {
|
|
13
13
|
id;
|
|
@@ -40,14 +40,22 @@ __decorate([
|
|
|
40
40
|
], UpdateAccountSociety.prototype, "idRegisterCategorie", void 0);
|
|
41
41
|
export class UpdateAccount {
|
|
42
42
|
account;
|
|
43
|
+
idSociety;
|
|
43
44
|
comment;
|
|
44
45
|
tagsToAdd;
|
|
45
46
|
tagsToRemove;
|
|
47
|
+
idSectors;
|
|
46
48
|
}
|
|
47
49
|
__decorate([
|
|
48
50
|
ApiProperty(),
|
|
49
51
|
__metadata("design:type", Object)
|
|
50
52
|
], UpdateAccount.prototype, "account", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ApiPropertyOptional(),
|
|
55
|
+
IsNumber(),
|
|
56
|
+
IsOptional(),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], UpdateAccount.prototype, "idSociety", void 0);
|
|
51
59
|
__decorate([
|
|
52
60
|
ApiPropertyOptional(),
|
|
53
61
|
IsString(),
|
|
@@ -66,4 +74,10 @@ __decorate([
|
|
|
66
74
|
IsOptional(),
|
|
67
75
|
__metadata("design:type", Array)
|
|
68
76
|
], UpdateAccount.prototype, "tagsToRemove", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
ApiPropertyOptional(),
|
|
79
|
+
IsOptional(),
|
|
80
|
+
IsArray(),
|
|
81
|
+
__metadata("design:type", Array)
|
|
82
|
+
], UpdateAccount.prototype, "idSectors", void 0);
|
|
69
83
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/account/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGrE,MAAM,OAAO,oBAAoB;IAE7B,EAAE,CAAS;IAGX,MAAM,CAAU;IAGhB,IAAI,CAAU;IAEhB,mFAAmF;IACnF,QAAQ,CAAW;IAGjB,KAAK,CAAiB;IAGtB,mBAAmB,CAAU;CAChC;AAjBC;IAAC,WAAW,EAAE;;gDACD;AAEb;IAAC,mBAAmB,EAAE;;oDACJ;AAElB;IAAC,mBAAmB,EAAE;;kDACN;AAKhB;IAAC,mBAAmB,EAAE;;mDACE;AAExB;IAAC,mBAAmB,EAAE;;iEACS;AAGjC,MAAM,OAAO,aAAa;IAEtB,OAAO,CAAoB;IAK3B,SAAS,CAAU;IAKnB,OAAO,CAAiB;IAKxB,SAAS,CAAY;IAKrB,YAAY,CAAY;IAKxB,SAAS,CAAiB;CAE7B;AA5BC;IAAC,WAAW,EAAE;;8CACe;AAE7B;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;gDACQ;AAErB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACa;AAE1B;IAAC,mBAAmB,EAAE;IACrB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;gDACU;AAEvB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,UAAU,EAAE;;mDACa;AAE1B;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;8BACI,KAAK;gDAAS","sourcesContent":["import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IAccount } from '../../..';\n\nexport class UpdateAccountSociety {\n @ApiProperty()\n id: number;\n\n @ApiPropertyOptional()\n number?: number;\n\n @ApiPropertyOptional()\n name?: string;\n\n // @ApiPropertyOptional() // value toujours à false lorsque ce décorateur est actif\n isHidden?: boolean;\n\n @ApiPropertyOptional()\n idVat?: number | null;\n\n @ApiPropertyOptional()\n idRegisterCategorie?: number;\n}\n\nexport class UpdateAccount {\n @ApiProperty()\n account: Partial<IAccount>;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string | null;\n\n @ApiPropertyOptional()\n @IsString({ each: true })\n @IsOptional()\n tagsToAdd?: string[];\n\n @ApiPropertyOptional()\n @IsString({ each: true })\n @IsOptional()\n tagsToRemove?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idSectors?: Array<number>;\n\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFile } from '../../..';
|
|
1
|
+
import { IFile, ReadProductEditing } from '../../..';
|
|
2
2
|
import { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';
|
|
3
3
|
import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';
|
|
4
4
|
import { IProductInvoice } from '../../models/IProductInvoice';
|
|
@@ -101,6 +101,7 @@ export declare class CreatePreSaleDocument extends CommercialDocumentInputs {
|
|
|
101
101
|
deposit?: undefined;
|
|
102
102
|
fromEstimateId: undefined;
|
|
103
103
|
assetMarginVatIds?: [];
|
|
104
|
+
advanceProducts?: [];
|
|
104
105
|
}
|
|
105
106
|
export declare class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
106
107
|
paymentLink?: string;
|
|
@@ -108,6 +109,7 @@ export declare class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
|
108
109
|
fromInvoiceId?: number | null;
|
|
109
110
|
fromEstimateId: number | null;
|
|
110
111
|
assetMarginVatIds?: number[];
|
|
112
|
+
advanceProducts?: ReadProductEditing[];
|
|
111
113
|
}
|
|
112
114
|
export declare class CreateCgv {
|
|
113
115
|
cgv: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3E,qBAAa,uBAAuB;IAOhC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKpB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAA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I,CAAC;CACtB;AAED,qBAAa,cAAc;IAIvB,WAAW,EAAE,OAAO,CAAC;IAKrB,OAAO,EAAE,OAAO,CAAC;IAKjB,UAAU,EAAE,OAAO,CAAC;IAKpB,UAAU,EAAE,OAAO,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,gBAAgB;IAGzB,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAKhB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,wBAAwB;IAGjC,KAAK,EAAE,MAAM,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QACrB,qBAAqB,EAAE,mBAAmB,CAAC;QAC3C,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,IAAI,CAAC,EAAE,KAAK,CAAA;KACb,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC"}
|
|
@@ -543,6 +543,7 @@ export class CreatePreSaleDocument extends CommercialDocumentInputs {
|
|
|
543
543
|
deposit;
|
|
544
544
|
fromEstimateId;
|
|
545
545
|
assetMarginVatIds;
|
|
546
|
+
advanceProducts;
|
|
546
547
|
}
|
|
547
548
|
export class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
548
549
|
paymentLink;
|
|
@@ -550,6 +551,7 @@ export class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
|
550
551
|
fromInvoiceId; // Nécessaire lors de la création d'un avoir à partir d'une facture
|
|
551
552
|
fromEstimateId; // Nécessaire lors du passage d'un devis à facture
|
|
552
553
|
assetMarginVatIds; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes
|
|
554
|
+
advanceProducts; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes
|
|
553
555
|
}
|
|
554
556
|
export class CreateCgv {
|
|
555
557
|
cgv;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GAC9E,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAA0B,MAAM,oCAAoC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9D,MAAM,OAAO,uBAAuB;IAOhC,OAAO,CAAiB;IAKxB,OAAO,CAAiB;IAKxB,GAAG,CAAiB;IAKpB,oBAAoB,CAAiB;IAKrC,IAAI,CAAiB;IAKrB,IAAI,CAAiB;IAKrB,GAAG,CAAiB;IAKpB,WAAW,CAAiB;IAK5B,YAAY,CAAiB;IAK7B,OAAO,CAAiB;IAKxB,cAAc,CAAiB;IAK/B,SAAS,CAAiB;IAK1B,QAAQ,CAAiB;IAKzB,YAAY,CAAiB;IAK7B,UAAU,CAAiB;IAM3B,WAA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,EAAE;;mDACW;AAEvB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;+CACO;AAEnB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACU;AAEtB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACU;AAEtB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACM;AAEnB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACM;AAEnB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACK;AAGlB,MAAM,OAAO,gBAAgB;IAGzB,IAAI,CAAS;IAIb,SAAS,CAAS;IAIlB,OAAO,CAAS;IAKhB,QAAQ,CAAU;CACrB;AAhBC;IAAC,WAAW,EAAE;IACb,MAAM,CAAC,cAAc,CAAC;;8CACR;AAEf;IAAC,WAAW,EAAE;IACb,YAAY,EAAE;;mDACK;AAEpB;IAAC,WAAW,EAAE;IACb,YAAY,EAAE;;iDACG;AAElB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAGtB,MAAM,OAAO,wBAAwB;IAGjC,KAAK,CAAS;IAId,SAAS,CAAS;IAIlB,KAAK,CAAS;CACjB;AAXC;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACK;AAEhB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;2DACS;AAEpB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACK","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { IFile } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideEmailHeader?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideBrandName?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional({ description: 'Moyen de paiement' })\n paymentType?: string | null;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}\n\nexport type CreateMailHeader = {\n payload: {\n reference: string,\n dueDate: Date | null,\n idEstimateInvoiceType: EstimateInvoiceType,\n totalTaxExcluded: number,\n totalTaxIncluded: number,\n file?: IFile\n },\n logoUrl: string | null,\n companyName: string,\n fileUrl: string | null,\n hostS3: string,\n hasVat: boolean\n};"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GAC9E,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAA0B,MAAM,oCAAoC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9D,MAAM,OAAO,uBAAuB;IAOhC,OAAO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E;;uDACK;AAEhB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;2DACS;AAEpB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACK","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { IFile, ReadProductEditing } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideEmailHeader?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideBrandName?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional({ description: 'Moyen de paiement' })\n paymentType?: string | null;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n advanceProducts?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n advanceProducts?: ReadProductEditing[]; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}\n\nexport type CreateMailHeader = {\n payload: {\n reference: string,\n dueDate: Date | null,\n idEstimateInvoiceType: EstimateInvoiceType,\n totalTaxExcluded: number,\n totalTaxIncluded: number,\n file?: IFile\n },\n logoUrl: string | null,\n companyName: string,\n fileUrl: string | null,\n hostS3: string,\n hasVat: boolean\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.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AAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n};\n\nexport type ReadPreview = { idFile: number; };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n },\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\nInvoiceStatus.PAID |\nInvoiceStatus.UNPAID |\nInvoiceStatus.CANCELED |\nInvoiceStatus.WAITING |\nEstimateStatus.REFUSED |\nEstimateStatus.BILLED |\nEstimateStatus.ACCEPTED |\nEstimateStatus.WAITING |\nEstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number; };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber; }\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber; }\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number; };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n },\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\nInvoiceStatus.PAID |\nInvoiceStatus.UNPAID |\nInvoiceStatus.CANCELED |\nInvoiceStatus.WAITING |\nEstimateStatus.REFUSED |\nEstimateStatus.BILLED |\nEstimateStatus.ACCEPTED |\nEstimateStatus.WAITING |\nEstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number; };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber; }\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber; }\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAuC,MAAM,qDAAqD,CAAC;AAI1I,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAOvE,OAAO,EACL,qBAAqB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,0BAA0B,EAC3F,MAAM,aAAa,CAAC;AAgBrB,wBAAgB,0BAA0B,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,8BAA8B,CA0GnP;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,0BAA0B,CAuB7J"}
|
|
@@ -16,6 +16,19 @@ export function generateCommercialDocument(idEstimateInvoiceType, payload, shoul
|
|
|
16
16
|
const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));
|
|
17
17
|
const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value')).filter((v) => v.id !== Vat.MARGE.id);
|
|
18
18
|
const thirdParty = thirdPartyToReadThirdPartyEditing(payload.thirdParty);
|
|
19
|
+
let forcedVats = undefined;
|
|
20
|
+
if (payload.advanceProducts?.length) {
|
|
21
|
+
const advanceVats = Object.values(_groupBy(payload.advanceProducts, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value').filter((v) => v.id !== Vat.MARGE.id);
|
|
22
|
+
forcedVats = vats.map(v => {
|
|
23
|
+
const base = v.base - (advanceVats.find(a => a.id === v.id)?.base ?? 0);
|
|
24
|
+
const toPay = v.toPay - (advanceVats.find(a => a.id === v.id)?.toPay ?? 0);
|
|
25
|
+
return {
|
|
26
|
+
...v,
|
|
27
|
+
baseFormatted: integerToFormattedAmountString(base),
|
|
28
|
+
amountFormatted: integerToFormattedAmountString(toPay),
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
}
|
|
19
32
|
const data = {
|
|
20
33
|
...payload,
|
|
21
34
|
thirdParty,
|
|
@@ -84,6 +97,7 @@ export function generateCommercialDocument(idEstimateInvoiceType, payload, shoul
|
|
|
84
97
|
? p.comment?.replace(/\n/g, '<br/>')
|
|
85
98
|
: null,
|
|
86
99
|
})),
|
|
100
|
+
vats: forcedVats ?? vats,
|
|
87
101
|
}),
|
|
88
102
|
footer: ejs.render(commonTemplate.footer, {
|
|
89
103
|
...data,
|