|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* MÓDULO DE EMISIÓN ELECTRÓNICA F72X |
|
5
|
|
|
* UBL 2.1 |
|
6
|
|
|
* Version 1.0 |
|
7
|
|
|
* |
|
8
|
|
|
* Copyright 2019, Jaime Cruz |
|
9
|
|
|
*/ |
|
10
|
|
|
|
|
11
|
|
|
namespace F72X\UblComponent; |
|
12
|
|
|
|
|
13
|
|
|
use DateTime; |
|
14
|
|
|
|
|
15
|
|
|
class DebitNote extends BaseComponent { |
|
16
|
|
|
|
|
17
|
|
|
/** @var UBLExtensions */ |
|
18
|
|
|
protected $UBLExtensions; |
|
19
|
|
|
protected $UBLVersionID; |
|
20
|
|
|
protected $CustomizationID; |
|
21
|
|
|
protected $ProfileID; |
|
22
|
|
|
protected $ID; |
|
23
|
|
|
|
|
24
|
|
|
/** @var DateTime */ |
|
25
|
|
|
protected $IssueDate; |
|
26
|
|
|
|
|
27
|
|
|
/** @var Note[] */ |
|
28
|
|
|
protected $Notes = []; |
|
29
|
|
|
protected $DocumentCurrencyCode; |
|
30
|
|
|
|
|
31
|
|
|
/** @var DiscrepancyResponse */ |
|
32
|
|
|
protected $DiscrepancyResponse; |
|
33
|
|
|
|
|
34
|
|
|
/** @var BillingReference */ |
|
35
|
|
|
protected $BillingReference; |
|
36
|
|
|
|
|
37
|
|
|
/** @var Signature */ |
|
38
|
|
|
protected $Signature; |
|
39
|
|
|
|
|
40
|
|
|
/** @var AccountingSupplierParty */ |
|
41
|
|
|
protected $AccountingSupplierParty; |
|
42
|
|
|
|
|
43
|
|
|
/** @var AccountingCustomerParty */ |
|
44
|
|
|
protected $AccountingCustomerParty; |
|
45
|
|
|
|
|
46
|
|
|
/** @var DespatchDocumentReference */ |
|
47
|
|
|
protected $DespatchDocumentReference; |
|
48
|
|
|
|
|
49
|
|
|
/** @var TaxTotal */ |
|
50
|
|
|
protected $TaxTotal; |
|
51
|
|
|
|
|
52
|
|
|
/** @var RequestedMonetaryTotal */ |
|
53
|
|
|
protected $RequestedMonetaryTotal; |
|
54
|
|
|
|
|
55
|
|
|
/** @var DebitNoteLine[] */ |
|
56
|
|
|
protected $DebitNoteLines = []; |
|
57
|
|
|
|
|
58
|
|
|
public function getUBLExtensions() { |
|
59
|
|
|
return $this->UBLExtensions; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
public function setUBLExtensions($UBLExtensions) { |
|
63
|
|
|
$this->UBLExtensions = $UBLExtensions; |
|
64
|
|
|
return $this; |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
public function getProfileID() { |
|
68
|
|
|
return $this->ProfileID; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
public function setProfileID($ProfileID) { |
|
72
|
|
|
$this->ProfileID = $ProfileID; |
|
73
|
|
|
return $this; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
public function getID() { |
|
77
|
|
|
return $this->ID; |
|
78
|
|
|
} |
|
79
|
|
|
|
|
80
|
|
|
public function setID($ID) { |
|
81
|
|
|
$this->ID = $ID; |
|
82
|
|
|
return $this; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
public function getIssueDate() { |
|
86
|
|
|
return $this->IssueDate; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
public function setIssueDate(DateTime $IssueDate) { |
|
90
|
|
|
$this->IssueDate = $IssueDate; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
public function getNotes() { |
|
94
|
|
|
return $this->Notes; |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
public function setNotes($Notes) { |
|
98
|
|
|
$this->Notes = $Notes; |
|
99
|
|
|
return $this; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* |
|
104
|
|
|
* @param Note $Note |
|
105
|
|
|
* @return $this |
|
106
|
|
|
*/ |
|
107
|
|
|
public function addNote(Note $Note) { |
|
108
|
|
|
$this->Notes[] = $Note; |
|
109
|
|
|
return $this; |
|
110
|
|
|
} |
|
111
|
|
|
|
|
112
|
|
|
public function getDocumentCurrencyCode() { |
|
113
|
|
|
return $this->DocumentCurrencyCode; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
public function setDocumentCurrencyCode($DocumentCurrencyCode) { |
|
117
|
|
|
$this->DocumentCurrencyCode = $DocumentCurrencyCode; |
|
118
|
|
|
return $this; |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
public function getDiscrepancyResponse() { |
|
122
|
|
|
return $this->DiscrepancyResponse; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
public function setDiscrepancyResponse(DiscrepancyResponse $DiscrepancyResponse) { |
|
126
|
|
|
$this->DiscrepancyResponse = $DiscrepancyResponse; |
|
127
|
|
|
return $this; |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
public function getBillingReference() { |
|
131
|
|
|
return $this->BillingReference; |
|
132
|
|
|
} |
|
133
|
|
|
|
|
134
|
|
|
public function setBillingReference(BillingReference $BillingReference) { |
|
135
|
|
|
$this->BillingReference = $BillingReference; |
|
136
|
|
|
return $this; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
public function getSignature() { |
|
140
|
|
|
return $this->Signature; |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
public function setSignature(Signature $Signature) { |
|
144
|
|
|
$this->Signature = $Signature; |
|
145
|
|
|
return $this; |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
public function getAccountingSupplierParty() { |
|
149
|
|
|
return $this->AccountingSupplierParty; |
|
150
|
|
|
} |
|
151
|
|
|
|
|
152
|
|
|
public function setAccountingSupplierParty(AccountingSupplierParty $AccountingSupplierParty) { |
|
153
|
|
|
$this->AccountingSupplierParty = $AccountingSupplierParty; |
|
154
|
|
|
return $this; |
|
155
|
|
|
} |
|
156
|
|
|
|
|
157
|
|
|
public function getAccountingCustomerParty() { |
|
158
|
|
|
return $this->AccountingCustomerParty; |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
public function setAccountingCustomerParty(AccountingCustomerParty $AccountingCustomerParty) { |
|
162
|
|
|
$this->AccountingCustomerParty = $AccountingCustomerParty; |
|
163
|
|
|
return $this; |
|
164
|
|
|
} |
|
165
|
|
|
|
|
166
|
|
|
public function getDespatchDocumentReference() { |
|
167
|
|
|
return $this->DespatchDocumentReference; |
|
168
|
|
|
} |
|
169
|
|
|
|
|
170
|
|
|
public function setDespatchDocumentReference(DespatchDocumentReference $DespatchDocumentReference) { |
|
171
|
|
|
$this->DespatchDocumentReference = $DespatchDocumentReference; |
|
172
|
|
|
} |
|
173
|
|
|
|
|
174
|
|
|
public function getTaxTotal() { |
|
175
|
|
|
return $this->TaxTotal; |
|
176
|
|
|
} |
|
177
|
|
|
|
|
178
|
|
|
public function setTaxTotal(TaxTotal $TaxTotal) { |
|
179
|
|
|
$this->TaxTotal = $TaxTotal; |
|
180
|
|
|
return $this; |
|
181
|
|
|
} |
|
182
|
|
|
|
|
183
|
|
|
public function getRequestedMonetaryTotal() { |
|
184
|
|
|
return $this->RequestedMonetaryTotal; |
|
185
|
|
|
} |
|
186
|
|
|
|
|
187
|
|
|
public function setRequestedMonetaryTotal(RequestedMonetaryTotal $RequestedMonetaryTotal) { |
|
188
|
|
|
$this->RequestedMonetaryTotal = $RequestedMonetaryTotal; |
|
189
|
|
|
return $this; |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
|
|
public function getDebitNoteLines() { |
|
193
|
|
|
return $this->DebitNoteLines; |
|
194
|
|
|
} |
|
195
|
|
|
|
|
196
|
|
|
public function setDebitNoteLines($DebitNoteLines) { |
|
197
|
|
|
$this->DebitNoteLines = $DebitNoteLines; |
|
198
|
|
|
return $this; |
|
199
|
|
|
} |
|
200
|
|
|
|
|
201
|
|
|
public function addDebitNoteLine(DebitNoteLine $InvoiceLine) { |
|
202
|
|
|
$this->DebitNoteLines[] = $InvoiceLine; |
|
203
|
|
|
return $this; |
|
204
|
|
|
} |
|
205
|
|
|
|
|
206
|
|
|
} |
|
207
|
|
|
|