1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Created by PhpStorm. |
4
|
|
|
* User: Giansalex |
5
|
|
|
* Date: 17/07/2017 |
6
|
|
|
* Time: 23:26 |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
namespace Greenter\Xml\Model\Sale; |
10
|
|
|
|
11
|
|
|
|
12
|
|
|
class BaseSale |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @Assert\NotBlank() |
16
|
|
|
* @Assert\Length(max="2") |
17
|
|
|
* @var string |
18
|
|
|
*/ |
19
|
|
|
protected $tipoDoc; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @Assert\NotBlank() |
23
|
|
|
* @Assert\Length(max="4") |
24
|
|
|
* @var string |
25
|
|
|
*/ |
26
|
|
|
protected $serie; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @Assert\NotBlank() |
30
|
|
|
* @Assert\Length(max="8") |
31
|
|
|
* @var string |
32
|
|
|
*/ |
33
|
|
|
protected $correlativo; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @Assert\Date() |
37
|
|
|
* @var \DateTime |
38
|
|
|
*/ |
39
|
|
|
protected $fechaEmision; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @Assert\NotBlank() |
43
|
|
|
* @Assert\Length(max="1") |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
protected $tipoDocUsuario; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @Assert\NotBlank() |
50
|
|
|
* @Assert\Length(max="15") |
51
|
|
|
* @var string |
52
|
|
|
*/ |
53
|
|
|
protected $numDocUsuario; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @Assert\NotBlank() |
57
|
|
|
* @Assert\Length(max="100") |
58
|
|
|
* @var string |
59
|
|
|
*/ |
60
|
|
|
protected $rznSocialUsuario; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @Assert\NotBlank() |
64
|
|
|
* @Assert\Length(max="3") |
65
|
|
|
* @var string |
66
|
|
|
*/ |
67
|
|
|
protected $tipoMoneda; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var float |
71
|
|
|
*/ |
72
|
|
|
protected $sumOtrosCargos; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @Assert\NotBlank() |
76
|
|
|
* @var float |
77
|
|
|
*/ |
78
|
|
|
protected $mtoOperGravadas; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @Assert\NotBlank() |
82
|
|
|
* @var float |
83
|
|
|
*/ |
84
|
|
|
protected $mtoOperInafectas; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @Assert\NotBlank() |
88
|
|
|
* @var float |
89
|
|
|
*/ |
90
|
|
|
protected $mtoOperExoneradas; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var float |
94
|
|
|
*/ |
95
|
|
|
protected $mtoIGV; |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @var float |
99
|
|
|
*/ |
100
|
|
|
protected $mtoISC; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @var float |
104
|
|
|
*/ |
105
|
|
|
protected $mtoOtrosTributos; |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* Importe total de la venta, cesión en uso o del servicio prestado. |
109
|
|
|
* |
110
|
|
|
* @Assert\NotBlank() |
111
|
|
|
* @var float |
112
|
|
|
*/ |
113
|
|
|
protected $mtoImpVenta; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @Assert\Valid() |
117
|
|
|
* @var SaleDetail[] |
118
|
|
|
*/ |
119
|
|
|
protected $details; |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @Assert\Valid() |
123
|
|
|
* @var Legend[] |
124
|
|
|
*/ |
125
|
|
|
protected $legends; |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @Assert\Valid() |
129
|
|
|
* @var Document[] |
130
|
|
|
*/ |
131
|
|
|
protected $relDocs; |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @return string |
135
|
|
|
*/ |
136
|
2 |
|
public function getTipoDoc() |
137
|
|
|
{ |
138
|
2 |
|
return $this->tipoDoc; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @param string $tipoDoc |
143
|
|
|
* @return BaseSale |
144
|
|
|
*/ |
145
|
4 |
|
public function setTipoDoc($tipoDoc) |
146
|
|
|
{ |
147
|
4 |
|
$this->tipoDoc = $tipoDoc; |
148
|
4 |
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @return string |
153
|
|
|
*/ |
154
|
2 |
|
public function getSerie() |
155
|
|
|
{ |
156
|
2 |
|
return $this->serie; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param string $serie |
161
|
|
|
* @return BaseSale |
162
|
|
|
*/ |
163
|
4 |
|
public function setSerie($serie) |
164
|
|
|
{ |
165
|
4 |
|
$this->serie = $serie; |
166
|
4 |
|
return $this; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return string |
171
|
|
|
*/ |
172
|
2 |
|
public function getCorrelativo() |
173
|
|
|
{ |
174
|
2 |
|
return $this->correlativo; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param string $correlativo |
179
|
|
|
* @return BaseSale |
180
|
|
|
*/ |
181
|
4 |
|
public function setCorrelativo($correlativo) |
182
|
|
|
{ |
183
|
4 |
|
$this->correlativo = $correlativo; |
184
|
4 |
|
return $this; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* @return \DateTime |
189
|
|
|
*/ |
190
|
2 |
|
public function getFechaEmision() |
191
|
|
|
{ |
192
|
2 |
|
return $this->fechaEmision; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @param \DateTime $fechaEmision |
197
|
|
|
* @return BaseSale |
198
|
|
|
*/ |
199
|
|
|
public function setFechaEmision($fechaEmision) |
200
|
|
|
{ |
201
|
|
|
$this->fechaEmision = $fechaEmision; |
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @return string |
207
|
|
|
*/ |
208
|
2 |
|
public function getTipoDocUsuario() |
209
|
|
|
{ |
210
|
2 |
|
return $this->tipoDocUsuario; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @param string $tipoDocUsuario |
215
|
|
|
* @return BaseSale |
216
|
|
|
*/ |
217
|
4 |
|
public function setTipoDocUsuario($tipoDocUsuario) |
218
|
|
|
{ |
219
|
4 |
|
$this->tipoDocUsuario = $tipoDocUsuario; |
220
|
4 |
|
return $this; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* @return string |
225
|
|
|
*/ |
226
|
2 |
|
public function getNumDocUsuario() |
227
|
|
|
{ |
228
|
2 |
|
return $this->numDocUsuario; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @param string $numDocUsuario |
233
|
|
|
* @return BaseSale |
234
|
|
|
*/ |
235
|
4 |
|
public function setNumDocUsuario($numDocUsuario) |
236
|
|
|
{ |
237
|
4 |
|
$this->numDocUsuario = $numDocUsuario; |
238
|
4 |
|
return $this; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* @return string |
243
|
|
|
*/ |
244
|
2 |
|
public function getRznSocialUsuario() |
245
|
|
|
{ |
246
|
2 |
|
return $this->rznSocialUsuario; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @param string $rznSocialUsuario |
251
|
|
|
* @return BaseSale |
252
|
|
|
*/ |
253
|
4 |
|
public function setRznSocialUsuario($rznSocialUsuario) |
254
|
|
|
{ |
255
|
4 |
|
$this->rznSocialUsuario = $rznSocialUsuario; |
256
|
4 |
|
return $this; |
257
|
|
|
} |
258
|
|
|
|
259
|
|
|
/** |
260
|
|
|
* @return mixed |
261
|
|
|
*/ |
262
|
2 |
|
public function getTipoMoneda() |
263
|
|
|
{ |
264
|
2 |
|
return $this->tipoMoneda; |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* @param mixed $tipoMoneda |
269
|
|
|
* @return BaseSale |
270
|
|
|
*/ |
271
|
4 |
|
public function setTipoMoneda($tipoMoneda) |
272
|
|
|
{ |
273
|
4 |
|
$this->tipoMoneda = $tipoMoneda; |
274
|
4 |
|
return $this; |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
/** |
278
|
|
|
* @return mixed |
279
|
|
|
*/ |
280
|
2 |
|
public function getSumOtrosCargos() |
281
|
|
|
{ |
282
|
2 |
|
return $this->sumOtrosCargos; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @param mixed $sumOtrosCargos |
287
|
|
|
* @return BaseSale |
288
|
|
|
*/ |
289
|
|
|
public function setSumOtrosCargos($sumOtrosCargos) |
290
|
|
|
{ |
291
|
|
|
$this->sumOtrosCargos = $sumOtrosCargos; |
292
|
|
|
return $this; |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* @return mixed |
297
|
|
|
*/ |
298
|
2 |
|
public function getMtoOperGravadas() |
299
|
|
|
{ |
300
|
2 |
|
return $this->mtoOperGravadas; |
301
|
|
|
} |
302
|
|
|
|
303
|
|
|
/** |
304
|
|
|
* @param mixed $mtoOperGravadas |
305
|
|
|
* @return BaseSale |
306
|
|
|
*/ |
307
|
4 |
|
public function setMtoOperGravadas($mtoOperGravadas) |
308
|
|
|
{ |
309
|
4 |
|
$this->mtoOperGravadas = $mtoOperGravadas; |
310
|
4 |
|
return $this; |
311
|
|
|
} |
312
|
|
|
|
313
|
|
|
/** |
314
|
|
|
* @return mixed |
315
|
|
|
*/ |
316
|
2 |
|
public function getMtoOperInafectas() |
317
|
|
|
{ |
318
|
2 |
|
return $this->mtoOperInafectas; |
319
|
|
|
} |
320
|
|
|
|
321
|
|
|
/** |
322
|
|
|
* @param mixed $mtoOperInafectas |
323
|
|
|
* @return BaseSale |
324
|
|
|
*/ |
325
|
4 |
|
public function setMtoOperInafectas($mtoOperInafectas) |
326
|
|
|
{ |
327
|
4 |
|
$this->mtoOperInafectas = $mtoOperInafectas; |
328
|
4 |
|
return $this; |
329
|
|
|
} |
330
|
|
|
|
331
|
|
|
/** |
332
|
|
|
* @return float |
333
|
|
|
*/ |
334
|
2 |
|
public function getMtoOperExoneradas() |
335
|
|
|
{ |
336
|
2 |
|
return $this->mtoOperExoneradas; |
337
|
|
|
} |
338
|
|
|
|
339
|
|
|
/** |
340
|
|
|
* @param float $mtoOperExoneradas |
341
|
|
|
* @return BaseSale |
342
|
|
|
*/ |
343
|
4 |
|
public function setMtoOperExoneradas($mtoOperExoneradas) |
344
|
|
|
{ |
345
|
4 |
|
$this->mtoOperExoneradas = $mtoOperExoneradas; |
346
|
4 |
|
return $this; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @return mixed |
351
|
|
|
*/ |
352
|
2 |
|
public function getMtoIGV() |
353
|
|
|
{ |
354
|
2 |
|
return $this->mtoIGV; |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* @param mixed $mtoIGV |
359
|
|
|
* @return BaseSale |
360
|
|
|
*/ |
361
|
4 |
|
public function setMtoIGV($mtoIGV) |
362
|
|
|
{ |
363
|
4 |
|
$this->mtoIGV = $mtoIGV; |
364
|
4 |
|
return $this; |
365
|
|
|
} |
366
|
|
|
|
367
|
|
|
/** |
368
|
|
|
* @return mixed |
369
|
|
|
*/ |
370
|
2 |
|
public function getMtoISC() |
371
|
|
|
{ |
372
|
2 |
|
return $this->mtoISC; |
373
|
|
|
} |
374
|
|
|
|
375
|
|
|
/** |
376
|
|
|
* @param mixed $mtoISC |
377
|
|
|
* @return BaseSale |
378
|
|
|
*/ |
379
|
|
|
public function setMtoISC($mtoISC) |
380
|
|
|
{ |
381
|
|
|
$this->mtoISC = $mtoISC; |
382
|
|
|
return $this; |
383
|
|
|
} |
384
|
|
|
|
385
|
|
|
/** |
386
|
|
|
* @return float |
387
|
|
|
*/ |
388
|
2 |
|
public function getMtoOtrosTributos() |
389
|
|
|
{ |
390
|
2 |
|
return $this->mtoOtrosTributos; |
391
|
|
|
} |
392
|
|
|
|
393
|
|
|
/** |
394
|
|
|
* @param float $mtoOtrosTributos |
395
|
|
|
* @return BaseSale |
396
|
|
|
*/ |
397
|
|
|
public function setMtoOtrosTributos($mtoOtrosTributos) |
398
|
|
|
{ |
399
|
|
|
$this->mtoOtrosTributos = $mtoOtrosTributos; |
400
|
|
|
return $this; |
401
|
|
|
} |
402
|
|
|
|
403
|
|
|
/** |
404
|
|
|
* @return float |
405
|
|
|
*/ |
406
|
2 |
|
public function getMtoImpVenta() |
407
|
|
|
{ |
408
|
2 |
|
return $this->mtoImpVenta; |
409
|
|
|
} |
410
|
|
|
|
411
|
|
|
/** |
412
|
|
|
* @param float $mtoImpVenta |
413
|
|
|
* @return BaseSale |
414
|
|
|
*/ |
415
|
4 |
|
public function setMtoImpVenta($mtoImpVenta) |
416
|
|
|
{ |
417
|
4 |
|
$this->mtoImpVenta = $mtoImpVenta; |
418
|
4 |
|
return $this; |
419
|
|
|
} |
420
|
|
|
|
421
|
|
|
/** |
422
|
|
|
* @return SaleDetail[] |
423
|
|
|
*/ |
424
|
2 |
|
public function getDetails() |
425
|
|
|
{ |
426
|
2 |
|
return $this->details; |
427
|
|
|
} |
428
|
|
|
|
429
|
|
|
/** |
430
|
|
|
* @param SaleDetail[] $details |
431
|
|
|
* @return BaseSale |
432
|
|
|
*/ |
433
|
4 |
|
public function setDetails($details) |
434
|
|
|
{ |
435
|
4 |
|
$this->details = $details; |
436
|
4 |
|
return $this; |
437
|
|
|
} |
438
|
|
|
|
439
|
|
|
/** |
440
|
|
|
* @return Legend[] |
441
|
|
|
*/ |
442
|
|
|
public function getLegends() |
443
|
|
|
{ |
444
|
|
|
return $this->legends; |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
/** |
448
|
|
|
* @param Legend[] $legends |
449
|
|
|
* @return BaseSale |
450
|
|
|
*/ |
451
|
|
|
public function setLegends($legends) |
452
|
|
|
{ |
453
|
|
|
$this->legends = $legends; |
454
|
|
|
return $this; |
455
|
|
|
} |
456
|
|
|
|
457
|
|
|
/** |
458
|
|
|
* @return Document[] |
459
|
|
|
*/ |
460
|
|
|
public function getRelDocs() |
461
|
|
|
{ |
462
|
|
|
return $this->relDocs; |
463
|
|
|
} |
464
|
|
|
|
465
|
|
|
/** |
466
|
|
|
* @param Document[] $relDocs |
467
|
|
|
* @return BaseSale |
468
|
|
|
*/ |
469
|
|
|
public function setRelDocs($relDocs) |
470
|
|
|
{ |
471
|
|
|
$this->relDocs = $relDocs; |
472
|
|
|
return $this; |
473
|
|
|
} |
474
|
|
|
} |