@@ -30,16 +30,16 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | public function createViews(): Closure |
| 32 | 32 | { |
| 33 | - return function () { |
|
| 33 | + return function() { |
|
| 34 | 34 | parent::createViews(); |
| 35 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
| 36 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
| 35 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
| 36 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
| 37 | 37 | }; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | public function execPreviousAction() |
| 41 | 41 | { |
| 42 | - return function ($action) { |
|
| 42 | + return function($action) { |
|
| 43 | 43 | switch ($action) { |
| 44 | 44 | case 'busca_tipo': |
| 45 | 45 | $this->setTemplate(false); |
@@ -104,21 +104,21 @@ discard block |
||
| 104 | 104 | if (!$verificacion) { |
| 105 | 105 | echo json_encode(['success' => true], JSON_THROW_ON_ERROR); |
| 106 | 106 | } else { |
| 107 | - $message = "Factura: " . $verificacion[0]->idfactura . " Fecha: " . $verificacion[0]->fecha; |
|
| 107 | + $message = "Factura: ".$verificacion[0]->idfactura." Fecha: ".$verificacion[0]->fecha; |
|
| 108 | 108 | echo json_encode(['error' => true, 'message' => $message], JSON_THROW_ON_ERROR); |
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | public function ncftipo() |
| 113 | 113 | { |
| 114 | - return function () { |
|
| 114 | + return function() { |
|
| 115 | 115 | return NCFTipo::allVentas(); |
| 116 | 116 | }; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | public function ncftipoanulacion() |
| 120 | 120 | { |
| 121 | - return function () { |
|
| 121 | + return function() { |
|
| 122 | 122 | $tiposAnulacion = new NCFTipoAnulacion(); |
| 123 | 123 | return $tiposAnulacion->all(); |
| 124 | 124 | }; |