|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* Created by PhpStorm. |
|
4
|
|
|
* User: Giansalex |
|
5
|
|
|
* Date: 15/07/2017 |
|
6
|
|
|
* Time: 22:12 |
|
7
|
|
|
*/ |
|
8
|
|
|
|
|
9
|
|
|
namespace Greenter\Model\Summary; |
|
10
|
|
|
|
|
11
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
12
|
|
|
use Greenter\Xml\Validator\SummaryDetailValidator; |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* Class SummaryDetail |
|
16
|
|
|
* @package Greenter\Model\Summary |
|
17
|
|
|
*/ |
|
18
|
|
|
class SummaryDetail |
|
19
|
|
|
{ |
|
20
|
|
|
use SummaryDetailValidator; |
|
21
|
|
|
|
|
22
|
|
|
/** |
|
23
|
|
|
* @Assert\NotBlank() |
|
24
|
|
|
* @Assert\Length(min="2", max="2") |
|
25
|
|
|
* @var string |
|
26
|
|
|
*/ |
|
27
|
|
|
private $tipoDoc; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @Assert\NotBlank() |
|
31
|
|
|
* @Assert\Length(min="4", max="4") |
|
32
|
|
|
* @var string |
|
33
|
|
|
*/ |
|
34
|
|
|
private $serie; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @Assert\NotBlank() |
|
38
|
|
|
* @Assert\Length(max="8") |
|
39
|
|
|
* @var string |
|
40
|
|
|
*/ |
|
41
|
|
|
private $docInicio; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @Assert\NotBlank() |
|
45
|
|
|
* @Assert\Length(max="8") |
|
46
|
|
|
* @var string |
|
47
|
|
|
*/ |
|
48
|
|
|
private $docFin; |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @Assert\NotBlank() |
|
52
|
|
|
* @var float |
|
53
|
|
|
*/ |
|
54
|
|
|
private $total; |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* @Assert\NotBlank() |
|
58
|
|
|
* @var float |
|
59
|
|
|
*/ |
|
60
|
|
|
private $mtoOperGravadas; |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* @Assert\NotBlank() |
|
64
|
|
|
* @var float |
|
65
|
|
|
*/ |
|
66
|
|
|
private $mtoOperInafectas; |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @Assert\NotBlank() |
|
70
|
|
|
* @var float |
|
71
|
|
|
*/ |
|
72
|
|
|
private $mtoOperExoneradas; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @var float |
|
76
|
|
|
*/ |
|
77
|
|
|
private $mtoDescuentos; |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @Assert\NotBlank() |
|
81
|
|
|
* @var float |
|
82
|
|
|
*/ |
|
83
|
|
|
private $mtoIGV; |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* @var float |
|
87
|
|
|
*/ |
|
88
|
|
|
private $mtoISC; |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @var float |
|
92
|
|
|
*/ |
|
93
|
|
|
private $mtoOtrosTributos; |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* @return string |
|
97
|
|
|
*/ |
|
98
|
6 |
|
public function getTipoDoc() |
|
99
|
|
|
{ |
|
100
|
6 |
|
return $this->tipoDoc; |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
/** |
|
104
|
|
|
* @param string $tipoDoc |
|
105
|
|
|
* @return SummaryDetail |
|
106
|
|
|
*/ |
|
107
|
16 |
|
public function setTipoDoc($tipoDoc) |
|
108
|
|
|
{ |
|
109
|
16 |
|
$this->tipoDoc = $tipoDoc; |
|
110
|
16 |
|
return $this; |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
/** |
|
114
|
|
|
* @return string |
|
115
|
|
|
*/ |
|
116
|
6 |
|
public function getSerie() |
|
117
|
|
|
{ |
|
118
|
6 |
|
return $this->serie; |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
/** |
|
122
|
|
|
* @param string $serie |
|
123
|
|
|
* @return SummaryDetail |
|
124
|
|
|
*/ |
|
125
|
16 |
|
public function setSerie($serie) |
|
126
|
|
|
{ |
|
127
|
16 |
|
$this->serie = $serie; |
|
128
|
16 |
|
return $this; |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* @return string |
|
133
|
|
|
*/ |
|
134
|
6 |
|
public function getDocInicio() |
|
135
|
|
|
{ |
|
136
|
6 |
|
return $this->docInicio; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @param string $docInicio |
|
141
|
|
|
* @return SummaryDetail |
|
142
|
|
|
*/ |
|
143
|
16 |
|
public function setDocInicio($docInicio) |
|
144
|
|
|
{ |
|
145
|
16 |
|
$this->docInicio = $docInicio; |
|
146
|
16 |
|
return $this; |
|
147
|
|
|
} |
|
148
|
|
|
|
|
149
|
|
|
/** |
|
150
|
|
|
* @return string |
|
151
|
|
|
*/ |
|
152
|
6 |
|
public function getDocFin() |
|
153
|
|
|
{ |
|
154
|
6 |
|
return $this->docFin; |
|
155
|
|
|
} |
|
156
|
|
|
|
|
157
|
|
|
/** |
|
158
|
|
|
* @param string $docFin |
|
159
|
|
|
* @return SummaryDetail |
|
160
|
|
|
*/ |
|
161
|
16 |
|
public function setDocFin($docFin) |
|
162
|
|
|
{ |
|
163
|
16 |
|
$this->docFin = $docFin; |
|
164
|
16 |
|
return $this; |
|
165
|
|
|
} |
|
166
|
|
|
|
|
167
|
|
|
/** |
|
168
|
|
|
* @return float |
|
169
|
|
|
*/ |
|
170
|
6 |
|
public function getTotal() |
|
171
|
|
|
{ |
|
172
|
6 |
|
return $this->total; |
|
173
|
|
|
} |
|
174
|
|
|
|
|
175
|
|
|
/** |
|
176
|
|
|
* @param float $total |
|
177
|
|
|
* @return SummaryDetail |
|
178
|
|
|
*/ |
|
179
|
16 |
|
public function setTotal($total) |
|
180
|
|
|
{ |
|
181
|
16 |
|
$this->total = $total; |
|
182
|
16 |
|
return $this; |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
/** |
|
186
|
|
|
* @return float |
|
187
|
|
|
*/ |
|
188
|
6 |
|
public function getMtoOperGravadas() |
|
189
|
|
|
{ |
|
190
|
6 |
|
return $this->mtoOperGravadas; |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* @param float $mtoOperGravadas |
|
195
|
|
|
* @return SummaryDetail |
|
196
|
|
|
*/ |
|
197
|
16 |
|
public function setMtoOperGravadas($mtoOperGravadas) |
|
198
|
|
|
{ |
|
199
|
16 |
|
$this->mtoOperGravadas = $mtoOperGravadas; |
|
200
|
16 |
|
return $this; |
|
201
|
|
|
} |
|
202
|
|
|
|
|
203
|
|
|
/** |
|
204
|
|
|
* @return float |
|
205
|
|
|
*/ |
|
206
|
6 |
|
public function getMtoOperInafectas() |
|
207
|
|
|
{ |
|
208
|
6 |
|
return $this->mtoOperInafectas; |
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
/** |
|
212
|
|
|
* @param float $mtoOperInafectas |
|
213
|
|
|
* @return SummaryDetail |
|
214
|
|
|
*/ |
|
215
|
16 |
|
public function setMtoOperInafectas($mtoOperInafectas) |
|
216
|
|
|
{ |
|
217
|
16 |
|
$this->mtoOperInafectas = $mtoOperInafectas; |
|
218
|
16 |
|
return $this; |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
/** |
|
222
|
|
|
* @return mixed |
|
223
|
|
|
*/ |
|
224
|
6 |
|
public function getMtoOperExoneradas() |
|
225
|
|
|
{ |
|
226
|
6 |
|
return $this->mtoOperExoneradas; |
|
227
|
|
|
} |
|
228
|
|
|
|
|
229
|
|
|
/** |
|
230
|
|
|
* @param mixed $mtoOperExoneradas |
|
231
|
|
|
* @return SummaryDetail |
|
232
|
|
|
*/ |
|
233
|
16 |
|
public function setMtoOperExoneradas($mtoOperExoneradas) |
|
234
|
|
|
{ |
|
235
|
16 |
|
$this->mtoOperExoneradas = $mtoOperExoneradas; |
|
236
|
16 |
|
return $this; |
|
237
|
|
|
} |
|
238
|
|
|
|
|
239
|
|
|
/** |
|
240
|
|
|
* @return float |
|
241
|
|
|
*/ |
|
242
|
6 |
|
public function getMtoDescuentos() |
|
243
|
|
|
{ |
|
244
|
6 |
|
return $this->mtoDescuentos; |
|
245
|
|
|
} |
|
246
|
|
|
|
|
247
|
|
|
/** |
|
248
|
|
|
* @param float $mtoDescuentos |
|
249
|
|
|
* @return SummaryDetail |
|
250
|
|
|
*/ |
|
251
|
10 |
|
public function setMtoDescuentos($mtoDescuentos) |
|
252
|
|
|
{ |
|
253
|
10 |
|
$this->mtoDescuentos = $mtoDescuentos; |
|
254
|
10 |
|
return $this; |
|
255
|
|
|
} |
|
256
|
|
|
|
|
257
|
|
|
/** |
|
258
|
|
|
* @return float |
|
259
|
|
|
*/ |
|
260
|
6 |
|
public function getMtoIGV() |
|
261
|
|
|
{ |
|
262
|
6 |
|
return $this->mtoIGV; |
|
263
|
|
|
} |
|
264
|
|
|
|
|
265
|
|
|
/** |
|
266
|
|
|
* @param float $mtoIGV |
|
267
|
|
|
* @return SummaryDetail |
|
268
|
|
|
*/ |
|
269
|
16 |
|
public function setMtoIGV($mtoIGV) |
|
270
|
|
|
{ |
|
271
|
16 |
|
$this->mtoIGV = $mtoIGV; |
|
272
|
16 |
|
return $this; |
|
273
|
|
|
} |
|
274
|
|
|
|
|
275
|
|
|
/** |
|
276
|
|
|
* @return mixed |
|
277
|
|
|
*/ |
|
278
|
6 |
|
public function getMtoISC() |
|
279
|
|
|
{ |
|
280
|
6 |
|
return $this->mtoISC; |
|
281
|
|
|
} |
|
282
|
|
|
|
|
283
|
|
|
/** |
|
284
|
|
|
* @param mixed $mtoISC |
|
285
|
|
|
* @return SummaryDetail |
|
286
|
|
|
*/ |
|
287
|
16 |
|
public function setMtoISC($mtoISC) |
|
288
|
|
|
{ |
|
289
|
16 |
|
$this->mtoISC = $mtoISC; |
|
290
|
16 |
|
return $this; |
|
291
|
|
|
} |
|
292
|
|
|
|
|
293
|
|
|
/** |
|
294
|
|
|
* @return float |
|
295
|
|
|
*/ |
|
296
|
6 |
|
public function getMtoOtrosTributos() |
|
297
|
|
|
{ |
|
298
|
6 |
|
return $this->mtoOtrosTributos; |
|
299
|
|
|
} |
|
300
|
|
|
|
|
301
|
|
|
/** |
|
302
|
|
|
* @param float $mtoOtrosTributos |
|
303
|
|
|
* @return SummaryDetail |
|
304
|
|
|
*/ |
|
305
|
10 |
|
public function setMtoOtrosTributos($mtoOtrosTributos) |
|
306
|
|
|
{ |
|
307
|
10 |
|
$this->mtoOtrosTributos = $mtoOtrosTributos; |
|
308
|
10 |
|
return $this; |
|
309
|
|
|
} |
|
310
|
|
|
} |