@@ -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); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | break; |
| 60 | 60 | case "verifica_documento": |
| 61 | 61 | $this->setTemplate(false); |
| 62 | - CommonFunctionsDominicanRepublic::verifyDocument($_REQUEST['ncf'],$_REQUEST['proveedor']); |
|
| 62 | + CommonFunctionsDominicanRepublic::verifyDocument($_REQUEST['ncf'], $_REQUEST['proveedor']); |
|
| 63 | 63 | break; |
| 64 | 64 | case 'busca_correlativo': |
| 65 | 65 | $this->setTemplate(false); |
@@ -95,14 +95,14 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | public function ncftipo() |
| 97 | 97 | { |
| 98 | - return function () { |
|
| 98 | + return function() { |
|
| 99 | 99 | return NCFTipo::allVentas(); |
| 100 | 100 | }; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | public function ncftipoanulacion() |
| 104 | 104 | { |
| 105 | - return function () { |
|
| 105 | + return function() { |
|
| 106 | 106 | $tiposAnulacion = new NCFTipoAnulacion(); |
| 107 | 107 | return $tiposAnulacion->all(); |
| 108 | 108 | }; |
@@ -92,10 +92,10 @@ |
||
| 92 | 92 | public function getTaxByProduct($idproducto, $rdtaxid, $use = 'venta'): ?ImpuestoProducto |
| 93 | 93 | { |
| 94 | 94 | $dataBase = new DataBase(); |
| 95 | - $sql = "SELECT * FROM impuestosproductos WHERE idproducto = " . |
|
| 96 | - self::toolBox()->utils()->intval($idproducto) . |
|
| 97 | - " AND codimpuesto = '" . self::toolBox()->utils()->normalize($rdtaxid) . "'" . |
|
| 98 | - " AND " . $use . " = true" . ";"; |
|
| 95 | + $sql = "SELECT * FROM impuestosproductos WHERE idproducto = ". |
|
| 96 | + self::toolBox()->utils()->intval($idproducto). |
|
| 97 | + " AND codimpuesto = '".self::toolBox()->utils()->normalize($rdtaxid)."'". |
|
| 98 | + " AND ".$use." = true".";"; |
|
| 99 | 99 | $data = $dataBase->select($sql); |
| 100 | 100 | if (empty($data) === true || in_array($data[0], [null, ''], true)) { |
| 101 | 101 | return null; |