1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Created by PhpStorm. |
4
|
|
|
* User: Giansalex |
5
|
|
|
* Date: 15/07/2017 |
6
|
|
|
* Time: 21:05 |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
namespace Greenter\Xml\Model\Sale; |
10
|
|
|
|
11
|
|
|
use Greenter\Xml\Validator\InvoiceValidator; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* Class Invoice |
15
|
|
|
* @package Greenter\Xml\Model\Sale |
16
|
|
|
*/ |
17
|
|
|
class Invoice extends BaseSale |
18
|
|
|
{ |
19
|
|
|
use InvoiceValidator; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* Tipo operacion (Catálogo 17). |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
private $tipoOperacion; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var float |
29
|
|
|
*/ |
30
|
|
|
private $sumDsctoGlobal; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var float |
34
|
|
|
*/ |
35
|
|
|
private $mtoDescuentos; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
private $codRegPercepcion; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var float |
44
|
|
|
*/ |
45
|
|
|
private $mtoBaseImponiblePercepcion; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var float |
49
|
|
|
*/ |
50
|
|
|
private $mtoPercepcion; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var float |
54
|
|
|
*/ |
55
|
|
|
private $mtoTotalIncPercepcion; |
56
|
|
|
|
57
|
|
|
private $TipoDocGuia; |
58
|
|
|
|
59
|
|
|
private $NumDocGuia; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @return string |
63
|
|
|
*/ |
64
|
2 |
|
public function getTipoOperacion() |
65
|
|
|
{ |
66
|
2 |
|
return $this->tipoOperacion; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @param string $tipoOperacion |
71
|
|
|
* @return Invoice |
72
|
|
|
*/ |
73
|
|
|
public function setTipoOperacion($tipoOperacion) |
74
|
|
|
{ |
75
|
|
|
$this->tipoOperacion = $tipoOperacion; |
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return float |
81
|
|
|
*/ |
82
|
2 |
|
public function getSumDsctoGlobal() |
83
|
|
|
{ |
84
|
2 |
|
return $this->sumDsctoGlobal; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param float $sumDsctoGlobal |
89
|
|
|
* @return Invoice |
90
|
|
|
*/ |
91
|
|
|
public function setSumDsctoGlobal($sumDsctoGlobal) |
92
|
|
|
{ |
93
|
|
|
$this->sumDsctoGlobal = $sumDsctoGlobal; |
94
|
|
|
return $this; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @return float |
99
|
|
|
*/ |
100
|
2 |
|
public function getMtoDescuentos() |
101
|
|
|
{ |
102
|
2 |
|
return $this->mtoDescuentos; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @param float $mtoDescuentos |
107
|
|
|
* @return Invoice |
108
|
|
|
*/ |
109
|
|
|
public function setMtoDescuentos($mtoDescuentos) |
110
|
|
|
{ |
111
|
|
|
$this->mtoDescuentos = $mtoDescuentos; |
112
|
|
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @return string |
117
|
|
|
*/ |
118
|
|
|
public function getCodRegPercepcion() |
119
|
|
|
{ |
120
|
|
|
return $this->codRegPercepcion; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @param string $codRegPercepcion |
125
|
|
|
* @return Invoice |
126
|
|
|
*/ |
127
|
|
|
public function setCodRegPercepcion($codRegPercepcion) |
128
|
|
|
{ |
129
|
|
|
$this->codRegPercepcion = $codRegPercepcion; |
130
|
|
|
return $this; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @return float |
135
|
|
|
*/ |
136
|
2 |
|
public function getMtoBaseImponiblePercepcion() |
137
|
|
|
{ |
138
|
2 |
|
return $this->mtoBaseImponiblePercepcion; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @param float $mtoBaseImponiblePercepcion |
143
|
|
|
* @return Invoice |
144
|
|
|
*/ |
145
|
|
|
public function setMtoBaseImponiblePercepcion($mtoBaseImponiblePercepcion) |
146
|
|
|
{ |
147
|
|
|
$this->mtoBaseImponiblePercepcion = $mtoBaseImponiblePercepcion; |
148
|
|
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @return float |
153
|
|
|
*/ |
154
|
|
|
public function getMtoPercepcion() |
155
|
|
|
{ |
156
|
|
|
return $this->mtoPercepcion; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param float $mtoPercepcion |
161
|
|
|
* @return Invoice |
162
|
|
|
*/ |
163
|
|
|
public function setMtoPercepcion($mtoPercepcion) |
164
|
|
|
{ |
165
|
|
|
$this->mtoPercepcion = $mtoPercepcion; |
166
|
|
|
return $this; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return float |
171
|
|
|
*/ |
172
|
|
|
public function getMtoTotalIncPercepcion() |
173
|
|
|
{ |
174
|
|
|
return $this->mtoTotalIncPercepcion; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param float $mtoTotalIncPercepcion |
179
|
|
|
* @return Invoice |
180
|
|
|
*/ |
181
|
|
|
public function setMtoTotalIncPercepcion($mtoTotalIncPercepcion) |
182
|
|
|
{ |
183
|
|
|
$this->mtoTotalIncPercepcion = $mtoTotalIncPercepcion; |
184
|
|
|
return $this; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* @return mixed |
189
|
|
|
*/ |
190
|
|
|
public function getTipoDocGuia() |
191
|
|
|
{ |
192
|
|
|
return $this->TipoDocGuia; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @param mixed $TipoDocGuia |
197
|
|
|
* @return Invoice |
198
|
|
|
*/ |
199
|
|
|
public function setTipoDocGuia($TipoDocGuia) |
200
|
|
|
{ |
201
|
|
|
$this->TipoDocGuia = $TipoDocGuia; |
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @return mixed |
207
|
|
|
*/ |
208
|
|
|
public function getNumDocGuia() |
209
|
|
|
{ |
210
|
|
|
return $this->NumDocGuia; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @param mixed $NumDocGuia |
215
|
|
|
* @return Invoice |
216
|
|
|
*/ |
217
|
|
|
public function setNumDocGuia($NumDocGuia) |
218
|
|
|
{ |
219
|
|
|
$this->NumDocGuia = $NumDocGuia; |
220
|
|
|
return $this; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
} |