Passed
Push — master ( fe89f3...03637d )
by Joe Nilson
04:35
created
controller/helper_ncf.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
     public function guardar_ncf($idempresa, $factura, $tipo_comprobante, $numero_ncf, $motivo = false)
50 50
     {
51 51
         if ($numero_ncf['NCF'] === 'NO_DISPONIBLE') {
52
-            $this->new_error_msg('No hay números NCF disponibles del tipo ' . $tipo_comprobante .
53
-                ', la factura ' . $factura->idfactura . ' se creo sin NCF.');
52
+            $this->new_error_msg('No hay números NCF disponibles del tipo '.$tipo_comprobante.
53
+                ', la factura '.$factura->idfactura.' se creo sin NCF.');
54 54
         } else {
55 55
             $ncf_factura = new ncf_ventas();
56 56
             $ncf_factura->idempresa = $idempresa;
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
             if (!$ncf_factura->save()) {
76 76
                 $factura->numero2 = '';
77 77
                 $factura->save();
78
-                $this->new_error_msg('Ocurrió un error al grabar la factura ' . $factura->codigo . ' con el NCF: ' .
79
-                    $numero_ncf['NCF'] . ' Ingrese a la factura y dele al botón corregir NCF.');
78
+                $this->new_error_msg('Ocurrió un error al grabar la factura '.$factura->codigo.' con el NCF: '.
79
+                    $numero_ncf['NCF'].' Ingrese a la factura y dele al botón corregir NCF.');
80 80
             } else {
81 81
                 $this->ncf_rango->update(
82 82
                     $ncf_factura->idempresa,
Please login to merge, or discard this patch.
functions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
         if ($ncf['NCF'] !== 'NO_DISPONIBLE') {
209 209
             $ncf_numero = $ncf['NCF'];
210 210
         } else {
211
-            $fs_log->new_error('Es una Persona Física pero no hay un <a href="' . FS_PATH .
212
-                'index.php?page=ncf'.'" target="_blank">Rango de NCF</a> para Proveedores Informales (Tipo NCF 11), ' .
211
+            $fs_log->new_error('Es una Persona Física pero no hay un <a href="'.FS_PATH.
212
+                'index.php?page=ncf'.'" target="_blank">Rango de NCF</a> para Proveedores Informales (Tipo NCF 11), '.
213 213
                 'debe corregir esta información.');
214 214
         }
215 215
         return $ncf_numero;
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
             ? 'generar_numero2_old'
503 503
             : 'generar_numero2';
504 504
         if (\strpos($tipo_documento, 'factura_cliente') !== false) {
505
-            $rectificativa = (bool)$documento->idfacturarect;
505
+            $rectificativa = (bool) $documento->idfacturarect;
506 506
             $numero2 = $funcion_generar_numero2(
507 507
                 $documento->codcliente,
508 508
                 $documento->codalmacen,
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
     $empresa = new empresa();
582 582
     $ncf_tipo_anulacion = new ncf_tipo_anulacion();
583 583
     $tipo_ingreso = \filter_input(INPUT_POST, 'tipo_ingreso');
584
-    $rectificativa = (bool)$documento->idfacturarect;
584
+    $rectificativa = (bool) $documento->idfacturarect;
585 585
     $funcion_generar = (\strtotime($documento->fecha) < (\strtotime('01-05-2018')))
586 586
         ? 'generar_numero2_old'
587 587
         : 'generar_numero2';
@@ -608,8 +608,8 @@  discard block
 block discarded – undo
608 608
         }
609 609
         if ($motivo) {
610 610
             $motivo_anulacion = $ncf_tipo_anulacion->get($motivo);
611
-            $documento->observaciones = ucfirst(FS_FACTURA_RECTIFICATIVA) . " por " . $motivo_anulacion->descripcion;
612
-            $motivo_doc = $motivo_anulacion->codigo . " " . $motivo_anulacion->descripcion;
611
+            $documento->observaciones = ucfirst(FS_FACTURA_RECTIFICATIVA)." por ".$motivo_anulacion->descripcion;
612
+            $motivo_doc = $motivo_anulacion->codigo." ".$motivo_anulacion->descripcion;
613 613
         }
614 614
         $funcion_guardar_ncf($empresa->id, $documento, $tipo_comprobante, $numero_ncf, $motivo_doc);
615 615
     }
Please login to merge, or discard this patch.