Test Setup Failed
Push — master ( 30368a...04cb8f )
by JAIME ELMER
02:43
created
src/Tools/PdfGenerator.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
         $dueDate = $inv->getDueDate();
88 88
         $formOfPayment = $inv->getFormOfPayment();
89 89
         $formOfPaymentSrt = "";
90
-        if($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CONTADO) {
90
+        if ($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CONTADO) {
91 91
             $formOfPaymentSrt = "CONTADO";
92
-        }elseif($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CREDITO) {
92
+        }elseif ($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CREDITO) {
93 93
             $formOfPaymentSrt = "CRÉDITO";
94 94
         }
95 95
         $data = [
@@ -111,18 +111,18 @@  discard block
 block discarded – undo
111 111
             'igvPercent'           => SunatVars::IGV_PERCENT,
112 112
             'logo'                 => LogoMgr::getLogoString(),
113 113
             'qr'                   => QrGenerator::getQrString($inv), // QR Code
114
-            'taxableOperations'    => $inv->getTotalTaxableOperations(),    // Total operaciones gravadas
115
-            'freeOperations'       => $inv->getTotalFreeOperations(),       // Total operaciones gratuitas
114
+            'taxableOperations'    => $inv->getTotalTaxableOperations(), // Total operaciones gravadas
115
+            'freeOperations'       => $inv->getTotalFreeOperations(), // Total operaciones gratuitas
116 116
             'unaffectedOperations' => $inv->getTotalUnaffectedOperations(), // Total operaciones inafectas
117
-            'exemptedOperations'   => $inv->getTotalExemptedOperations(),   // Total operaciones exoneradas
118
-            'totalAllowances'      => $inv->getTotalAllowances(),           // Total operaciones exoneradas
119
-            'igvAmount'            => $inv->getIGV(),                       // IGV
120
-            'payableAmount'        => $payableAmount,                       // Total a pagar
121
-            'formOfPaymentStr'     => $formOfPaymentSrt,             // Forma de pago
122
-            'pendingAmount'        => $inv->getPendingAmount(),             // Forma de pago
123
-            'payableInWords'       => $payableInWords,                      // Monto en palabras
124
-            'items'                => self::getDocumentDataItems($inv),     // Items
125
-            'installments'         => self::getDocumentInstallments($inv),              // Cuotas
117
+            'exemptedOperations'   => $inv->getTotalExemptedOperations(), // Total operaciones exoneradas
118
+            'totalAllowances'      => $inv->getTotalAllowances(), // Total operaciones exoneradas
119
+            'igvAmount'            => $inv->getIGV(), // IGV
120
+            'payableAmount'        => $payableAmount, // Total a pagar
121
+            'formOfPaymentStr'     => $formOfPaymentSrt, // Forma de pago
122
+            'pendingAmount'        => $inv->getPendingAmount(), // Forma de pago
123
+            'payableInWords'       => $payableInWords, // Monto en palabras
124
+            'items'                => self::getDocumentDataItems($inv), // Items
125
+            'installments'         => self::getDocumentInstallments($inv), // Cuotas
126 126
         ];
127 127
         // For credit and debit notes
128 128
         if (in_array($inv->getDocumentType(), [Catalogo::DOCTYPE_NOTA_CREDITO, Catalogo::DOCTYPE_NOTA_DEBITO])) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $ln = $Items->getCount();
145 145
         $items2 = [];
146 146
         for ($i = 0; $i < $ln; $i++) {
147
-            $items2[]= [
147
+            $items2[] = [
148 148
                 'productCode'       => $Items->getProductCode($i),
149 149
                 'quantity'          => $Items->getQunatity($i),
150 150
                 'unitName'          => Catalogo::getUnitName($Items->getUnitCode($i)),
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         $formOfPaymentSrt = "";
90 90
         if($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CONTADO) {
91 91
             $formOfPaymentSrt = "CONTADO";
92
-        }elseif($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CREDITO) {
92
+        } elseif($formOfPayment == Catalogo::FAC_FORM_OF_PAYMENT_CREDITO) {
93 93
             $formOfPaymentSrt = "CRÉDITO";
94 94
         }
95 95
         $data = [
Please login to merge, or discard this patch.