|
@@ -116,13 +116,13 @@ discard block |
|
|
block discarded – undo |
|
116
|
116
|
private function addDocumentTaxes()
|
|
117
|
117
|
{
|
|
118
|
118
|
$Invoice = $this->dataMap;
|
|
119
|
|
- $currencyID = $Invoice->getCurrencyCode(); // Tipo de moneda
|
|
120
|
|
- $totalTaxableOperations = $Invoice->getTotalTaxableOperations(); // Total operaciones gravadas
|
|
121
|
|
- $totalTaxes = $Invoice->getTotalTaxes(); // Total operaciones gravadas
|
|
122
|
|
- $Igv = $Invoice->getIGV(); // Total IGV
|
|
123
|
|
- $totalExemptedOperations = $Invoice->getTotalExemptedOperations(); // Total operaciones exoneradas
|
|
|
119
|
+ $currencyID = $Invoice->getCurrencyCode(); // Tipo de moneda
|
|
|
120
|
+ $totalTaxableOperations = $Invoice->getTotalTaxableOperations(); // Total operaciones gravadas
|
|
|
121
|
+ $totalTaxes = $Invoice->getTotalTaxes(); // Total operaciones gravadas
|
|
|
122
|
+ $Igv = $Invoice->getIGV(); // Total IGV
|
|
|
123
|
+ $totalExemptedOperations = $Invoice->getTotalExemptedOperations(); // Total operaciones exoneradas
|
|
124
|
124
|
$totalUnaffectedOperations = $Invoice->getTotalUnaffectedOperations(); // Total operaciones inafectas
|
|
125
|
|
- $totalFreeOpertions = $Invoice->getTotalFreeOperations(); // Total operaciones gratuitas
|
|
|
125
|
+ $totalFreeOpertions = $Invoice->getTotalFreeOperations(); // Total operaciones gratuitas
|
|
126
|
126
|
|
|
127
|
127
|
// XML nodes
|
|
128
|
128
|
$TaxTotal = new TaxTotal();
|
|
@@ -133,7 +133,7 @@ discard block |
|
|
block discarded – undo |
|
133
|
133
|
}
|
|
134
|
134
|
// Total operaciones exoneradas
|
|
135
|
135
|
if ($totalExemptedOperations) {
|
|
136
|
|
- UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalExemptedOperations, Catalogo::CAT5_EXO);
|
|
|
136
|
+ UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalExemptedOperations, Catalogo::CAT5_EXO);
|
|
137
|
137
|
}
|
|
138
|
138
|
// Total operaciones inafectas
|
|
139
|
139
|
if ($totalUnaffectedOperations) {
|
|
@@ -141,7 +141,7 @@ discard block |
|
|
block discarded – undo |
|
141
|
141
|
}
|
|
142
|
142
|
// Total operaciones gratuitas
|
|
143
|
143
|
if ($totalFreeOpertions) {
|
|
144
|
|
- UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalFreeOpertions, Catalogo::CAT5_GRA);
|
|
|
144
|
+ UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalFreeOpertions, Catalogo::CAT5_GRA);
|
|
145
|
145
|
}
|
|
146
|
146
|
|
|
147
|
147
|
// Total impuestos
|
|
@@ -311,8 +311,8 @@ discard block |
|
|
block discarded – undo |
|
311
|
311
|
{
|
|
312
|
312
|
$Invoice = $this->dataMap;
|
|
313
|
313
|
$currencyID = $this->getDocumentCurrencyCode(); // Tipo de moneda
|
|
314
|
|
- $totalAllowances = $Invoice->getTotalAllowances(); // Total descuentos
|
|
315
|
|
- $payableAmount = $Invoice->getPayableAmount(); // Total a pagar
|
|
|
314
|
+ $totalAllowances = $Invoice->getTotalAllowances(); // Total descuentos
|
|
|
315
|
+ $payableAmount = $Invoice->getPayableAmount(); // Total a pagar
|
|
316
|
316
|
$billableAmount = $Invoice->getBillableValue();
|
|
317
|
317
|
// LegalMonetaryTotal
|
|
318
|
318
|
$LegalMonetaryTotal = new LegalMonetaryTotal();
|