|
@@ -129,13 +129,13 @@ discard block |
|
|
block discarded – undo |
|
129
|
129
|
|
|
130
|
130
|
private function addInvoiceTaxes() { |
|
131
|
131
|
$Invoice = $this->invoiceDocument; |
|
132
|
|
- $currencyID = $Invoice->getCurrencyType(); // Tipo de moneda |
|
133
|
|
- $totalTaxableOperations = $Invoice->getTotalTaxableOperations(); // Total operaciones gravadas |
|
134
|
|
- $totalTaxes = $Invoice->getTotalTaxes(); // Total operaciones gravadas |
|
135
|
|
- $Igv = $Invoice->getIGV(); // Total IGV |
|
136
|
|
- $totalExemptedOperations = $Invoice->getTotalExemptedOperations(); // Total operaciones exoneradas |
|
|
132
|
+ $currencyID = $Invoice->getCurrencyType(); // Tipo de moneda |
|
|
133
|
+ $totalTaxableOperations = $Invoice->getTotalTaxableOperations(); // Total operaciones gravadas |
|
|
134
|
+ $totalTaxes = $Invoice->getTotalTaxes(); // Total operaciones gravadas |
|
|
135
|
+ $Igv = $Invoice->getIGV(); // Total IGV |
|
|
136
|
+ $totalExemptedOperations = $Invoice->getTotalExemptedOperations(); // Total operaciones exoneradas |
|
137
|
137
|
$totalUnaffectedOperations = $Invoice->getTotalUnaffectedOperations(); // Total operaciones inafectas |
|
138
|
|
- $totalFreeOpertions = $Invoice->getTotalFreeOperations(); // Total operaciones gratuitas |
|
|
138
|
+ $totalFreeOpertions = $Invoice->getTotalFreeOperations(); // Total operaciones gratuitas |
|
139
|
139
|
|
|
140
|
140
|
// XML nodes |
|
141
|
141
|
$TaxTotal = new TaxTotal(); |
|
@@ -146,7 +146,7 @@ discard block |
|
|
block discarded – undo |
|
146
|
146
|
} |
|
147
|
147
|
// Total operaciones exoneradas |
|
148
|
148
|
if ($totalExemptedOperations) { |
|
149
|
|
- UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalExemptedOperations, Catalogo::CAT5_EXO); |
|
|
149
|
+ UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalExemptedOperations, Catalogo::CAT5_EXO); |
|
150
|
150
|
} |
|
151
|
151
|
// Total operaciones inafectas |
|
152
|
152
|
if ($totalUnaffectedOperations) { |
|
@@ -154,7 +154,7 @@ discard block |
|
|
block discarded – undo |
|
154
|
154
|
} |
|
155
|
155
|
// Total operaciones gratuitas solo aplica a FACTURA |
|
156
|
156
|
if ($totalFreeOpertions && $Invoice->getInvoiceType() === Catalogo::CAT1_FACTURA) { |
|
157
|
|
- UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalFreeOpertions, Catalogo::CAT5_GRA); |
|
|
157
|
+ UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalFreeOpertions, Catalogo::CAT5_GRA); |
|
158
|
158
|
} |
|
159
|
159
|
|
|
160
|
160
|
// Total impuestos |
|
@@ -280,8 +280,8 @@ discard block |
|
|
block discarded – undo |
|
280
|
280
|
$Invoice = $this->invoiceDocument; |
|
281
|
281
|
$Items = $this->getItems(); |
|
282
|
282
|
$currencyID = $this->getDocumentCurrencyCode(); // Tipo de moneda |
|
283
|
|
- $totalAllowances = $Invoice->getTotalAllowances(); // Total descuentos |
|
284
|
|
- $payableAmount = $Invoice->getPayableAmount(); // Total a pagar |
|
|
283
|
+ $totalAllowances = $Invoice->getTotalAllowances(); // Total descuentos |
|
|
284
|
+ $payableAmount = $Invoice->getPayableAmount(); // Total a pagar |
|
285
|
285
|
$billableAmount = $Invoice->getBillableValue(); |
|
286
|
286
|
// LegalMonetaryTotal |
|
287
|
287
|
$LegalMonetaryTotal = new LegalMonetaryTotal(); |