@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $this->addInvoiceItem($i); |
115 | 115 | } |
116 | 116 | } |
117 | - private function addInvoiceOrderReference(){ |
|
117 | + private function addInvoiceOrderReference() { |
|
118 | 118 | $orderNumer = $this->invoiceDocument->getPurchaseOrder(); |
119 | 119 | if ($orderNumer) { |
120 | 120 | // Xml Node |
@@ -126,13 +126,13 @@ discard block |
||
126 | 126 | } |
127 | 127 | private function addInvoiceTaxes() { |
128 | 128 | $Invoice = $this->invoiceDocument; |
129 | - $currencyID = $Invoice->getCurrencyType(); // Tipo de moneda |
|
130 | - $totalTaxableOperations = $Invoice->getTotalTaxableOperations(); // Total operaciones gravadas |
|
131 | - $totalTaxes = $Invoice->getTotalTaxes(); // Total operaciones gravadas |
|
132 | - $Igv = $Invoice->getIGV(); // Total IGV |
|
133 | - $totalExemptedOperations = $Invoice->getTotalExemptedOperations(); // Total operaciones exoneradas |
|
129 | + $currencyID = $Invoice->getCurrencyType(); // Tipo de moneda |
|
130 | + $totalTaxableOperations = $Invoice->getTotalTaxableOperations(); // Total operaciones gravadas |
|
131 | + $totalTaxes = $Invoice->getTotalTaxes(); // Total operaciones gravadas |
|
132 | + $Igv = $Invoice->getIGV(); // Total IGV |
|
133 | + $totalExemptedOperations = $Invoice->getTotalExemptedOperations(); // Total operaciones exoneradas |
|
134 | 134 | $totalUnaffectedOperations = $Invoice->getTotalUnaffectedOperations(); // Total operaciones inafectas |
135 | - $totalFreeOpertions = $Invoice->getTotalFreeOperations(); // Total operaciones gratuitas |
|
135 | + $totalFreeOpertions = $Invoice->getTotalFreeOperations(); // Total operaciones gratuitas |
|
136 | 136 | |
137 | 137 | // XML nodes |
138 | 138 | $TaxTotal = new TaxTotal(); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | } |
144 | 144 | // Total operaciones exoneradas |
145 | 145 | if ($totalExemptedOperations) { |
146 | - UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalExemptedOperations, Catalogo::CAT5_EXO); |
|
146 | + UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalExemptedOperations, Catalogo::CAT5_EXO); |
|
147 | 147 | } |
148 | 148 | // Total operaciones inafectas |
149 | 149 | if ($totalUnaffectedOperations) { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | // Total operaciones gratuitas solo aplica a FACTURA |
153 | 153 | if ($totalFreeOpertions && $Invoice->getInvoiceType() === Catalogo::CAT1_FACTURA) { |
154 | - UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalFreeOpertions, Catalogo::CAT5_GRA); |
|
154 | + UblHelper::addTaxSubtotal($TaxTotal, $currencyID, 0, $totalFreeOpertions, Catalogo::CAT5_GRA); |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | // Total impuestos |
@@ -277,8 +277,8 @@ discard block |
||
277 | 277 | $Invoice = $this->invoiceDocument; |
278 | 278 | $Items = $this->getItems(); |
279 | 279 | $currencyID = $this->getDocumentCurrencyCode(); // Tipo de moneda |
280 | - $totalAllowances = $Invoice->getTotalAllowances(); // Total descuentos |
|
281 | - $payableAmount = $Invoice->getPayableAmount(); // Total a pagar |
|
280 | + $totalAllowances = $Invoice->getTotalAllowances(); // Total descuentos |
|
281 | + $payableAmount = $Invoice->getPayableAmount(); // Total a pagar |
|
282 | 282 | $billableAmount = $Invoice->getBillableValue(); |
283 | 283 | // LegalMonetaryTotal |
284 | 284 | $LegalMonetaryTotal = new LegalMonetaryTotal(); |