1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Created by PhpStorm. |
4
|
|
|
* User: Giansalex |
5
|
|
|
* Date: 15/07/2017 |
6
|
|
|
* Time: 21:51 |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
namespace Greenter\Xml\Model\Sale; |
10
|
|
|
|
11
|
|
|
use Greenter\Xml\Validator\NoteValidator; |
12
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Class Note |
16
|
|
|
* @package Greenter\Xml\Model\Sale |
17
|
|
|
*/ |
18
|
|
|
class Note extends BaseSale |
19
|
|
|
{ |
20
|
|
|
use NoteValidator; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @Assert\NotBlank() |
24
|
|
|
* @Assert\Length(min="2", max="2") |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
private $codMotivo; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @Assert\NotBlank() |
31
|
|
|
* @Assert\Length(max="250") |
32
|
|
|
* @var string |
33
|
|
|
*/ |
34
|
|
|
private $desMotivo; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @Assert\NotBlank() |
38
|
|
|
* @Assert\Length(min="2", max="2") |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
private $tipDocAfectado; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @Assert\NotBlank() |
45
|
|
|
* @Assert\Length(max="13") |
46
|
|
|
* @var string |
47
|
|
|
*/ |
48
|
|
|
private $numDocfectado; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var float |
52
|
|
|
*/ |
53
|
|
|
private $mtoOperGratuitas; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
private $codRegPercepcion; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var float |
62
|
|
|
*/ |
63
|
|
|
private $mtoBasePercepcion; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var float |
67
|
|
|
*/ |
68
|
|
|
private $mtoPercepcion; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var float |
72
|
|
|
*/ |
73
|
|
|
private $mtoTotalPercepcion; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @return string |
77
|
|
|
*/ |
78
|
|
|
public function getCodMotivo() |
79
|
|
|
{ |
80
|
|
|
return $this->codMotivo; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @param string $codMotivo |
85
|
|
|
* @return Note |
86
|
|
|
*/ |
87
|
|
|
public function setCodMotivo($codMotivo) |
88
|
|
|
{ |
89
|
|
|
$this->codMotivo = $codMotivo; |
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @return string |
95
|
|
|
*/ |
96
|
|
|
public function getDesMotivo() |
97
|
|
|
{ |
98
|
|
|
return $this->desMotivo; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @param string $desMotivo |
103
|
|
|
* @return Note |
104
|
|
|
*/ |
105
|
|
|
public function setDesMotivo($desMotivo) |
106
|
|
|
{ |
107
|
|
|
$this->desMotivo = $desMotivo; |
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return mixed |
113
|
|
|
*/ |
114
|
|
|
public function getTipDocAfectado() |
115
|
|
|
{ |
116
|
|
|
return $this->tipDocAfectado; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param mixed $tipDocAfectado |
121
|
|
|
* @return Note |
122
|
|
|
*/ |
123
|
|
|
public function setTipDocAfectado($tipDocAfectado) |
124
|
|
|
{ |
125
|
|
|
$this->tipDocAfectado = $tipDocAfectado; |
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @return string |
131
|
|
|
*/ |
132
|
|
|
public function getNumDocfectado() |
133
|
|
|
{ |
134
|
|
|
return $this->numDocfectado; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @param string $numDocfectado |
139
|
|
|
* @return Note |
140
|
|
|
*/ |
141
|
|
|
public function setNumDocfectado($numDocfectado) |
142
|
|
|
{ |
143
|
|
|
$this->numDocfectado = $numDocfectado; |
144
|
|
|
return $this; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @return float |
149
|
|
|
*/ |
150
|
|
|
public function getMtoOperGratuitas() |
151
|
|
|
{ |
152
|
|
|
return $this->mtoOperGratuitas; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @param float $mtoOperGratuitas |
157
|
|
|
* @return Note |
158
|
|
|
*/ |
159
|
|
|
public function setMtoOperGratuitas($mtoOperGratuitas) |
160
|
|
|
{ |
161
|
|
|
$this->mtoOperGratuitas = $mtoOperGratuitas; |
162
|
|
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @return string |
167
|
|
|
*/ |
168
|
|
|
public function getCodRegPercepcion() |
169
|
|
|
{ |
170
|
|
|
return $this->codRegPercepcion; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @param string $codRegPercepcion |
175
|
|
|
* @return Note |
176
|
|
|
*/ |
177
|
|
|
public function setCodRegPercepcion($codRegPercepcion) |
178
|
|
|
{ |
179
|
|
|
$this->codRegPercepcion = $codRegPercepcion; |
180
|
|
|
return $this; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @return float |
185
|
|
|
*/ |
186
|
|
|
public function getMtoBasePercepcion() |
187
|
|
|
{ |
188
|
|
|
return $this->mtoBasePercepcion; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param float $mtoBasePercepcion |
193
|
|
|
* @return Note |
194
|
|
|
*/ |
195
|
|
|
public function setMtoBasePercepcion($mtoBasePercepcion) |
196
|
|
|
{ |
197
|
|
|
$this->mtoBasePercepcion = $mtoBasePercepcion; |
198
|
|
|
return $this; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @return float |
203
|
|
|
*/ |
204
|
|
|
public function getMtoPercepcion() |
205
|
|
|
{ |
206
|
|
|
return $this->mtoPercepcion; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param float $mtoPercepcion |
211
|
|
|
* @return Note |
212
|
|
|
*/ |
213
|
|
|
public function setMtoPercepcion($mtoPercepcion) |
214
|
|
|
{ |
215
|
|
|
$this->mtoPercepcion = $mtoPercepcion; |
216
|
|
|
return $this; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @return float |
221
|
|
|
*/ |
222
|
|
|
public function getMtoTotalPercepcion() |
223
|
|
|
{ |
224
|
|
|
return $this->mtoTotalPercepcion; |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @param float $mtoTotalPercepcion |
229
|
|
|
* @return Note |
230
|
|
|
*/ |
231
|
|
|
public function setMtoTotalPercepcion($mtoTotalPercepcion) |
232
|
|
|
{ |
233
|
|
|
$this->mtoTotalPercepcion = $mtoTotalPercepcion; |
234
|
|
|
return $this; |
235
|
|
|
} |
236
|
|
|
} |