@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | |
25 | 25 | class SalesHeaderMod implements SalesModInterface |
26 | 26 | { |
27 | - public function apply(SalesDocument &$model, array $formData, User $user) |
|
27 | + public function apply(SalesDocument & $model, array $formData, User $user) |
|
28 | 28 | { |
29 | 29 | // TODO: Implement apply() method. |
30 | 30 | } |
31 | 31 | |
32 | - public function applyBefore(SalesDocument &$model, array $formData, User $user) |
|
32 | + public function applyBefore(SalesDocument & $model, array $formData, User $user) |
|
33 | 33 | { |
34 | 34 | // TODO: Implement applyBefore() method. |
35 | 35 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | return empty($model->codcliente) ? '' : '<div class="col-sm">' |
64 | 64 | . '<div class="form-group">' |
65 | 65 | . $i18n->trans('number2') |
66 | - . '<input type="text" ' . $attributes . ' value="' . $model->numero2 . '" class="form-control"/>' |
|
66 | + . '<input type="text" '.$attributes.' value="'.$model->numero2.'" class="form-control"/>' |
|
67 | 67 | . '</div>' |
68 | 68 | . '</div>'; |
69 | 69 | } |
@@ -29,10 +29,10 @@ |
||
29 | 29 | { |
30 | 30 | public function createViews(): Closure |
31 | 31 | { |
32 | - return function () { |
|
32 | + return function() { |
|
33 | 33 | parent::createViews(); |
34 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
35 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
34 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
35 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
36 | 36 | }; |
37 | 37 | } |
38 | 38 | } |
39 | 39 | \ No newline at end of file |
@@ -39,14 +39,14 @@ discard block |
||
39 | 39 | 'idempresa' => static::MAIN_TABLE.'.idempresa', |
40 | 40 | 'codalmacen' => static::MAIN_TABLE.'.codalmacen', |
41 | 41 | 'ncf' => static::MAIN_TABLE.'.numero2', |
42 | - 'tipoanulacion' => 'CASE WHEN ' . |
|
43 | - static::ESTADOSDOC_TABLE . '.nombre = \'Anulada\' AND ' . |
|
44 | - static::MAIN_TABLE.'.ncftipoanulacion is null ' . |
|
45 | - 'THEN CONCAT(\'05\',\' - \',\'Corrección de la Información\') ELSE ' . |
|
46 | - 'concat(' . static::MAIN_TABLE.'.ncftipoanulacion, \' - \', ' . |
|
42 | + 'tipoanulacion' => 'CASE WHEN '. |
|
43 | + static::ESTADOSDOC_TABLE.'.nombre = \'Anulada\' AND '. |
|
44 | + static::MAIN_TABLE.'.ncftipoanulacion is null '. |
|
45 | + 'THEN CONCAT(\'05\',\' - \',\'Corrección de la Información\') ELSE '. |
|
46 | + 'concat('.static::MAIN_TABLE.'.ncftipoanulacion, \' - \', '. |
|
47 | 47 | static::NCFCANCELTYPE_TABLE.'.descripcion) END', |
48 | 48 | 'fecha' => $dateFormat.'('.static::MAIN_TABLE.'.fecha,\''.$dateFormatString.'\')', |
49 | - 'estado' => 'CASE WHEN ' . static::ESTADOSDOC_TABLE . |
|
49 | + 'estado' => 'CASE WHEN '.static::ESTADOSDOC_TABLE. |
|
50 | 50 | '.nombre = \'Emitida\' THEN \'Activo\' ELSE \'Anulado\' END', |
51 | 51 | ]; |
52 | 52 | return $data; |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | protected function getSQLFrom(): string |
60 | 60 | { |
61 | 61 | return static::MAIN_TABLE |
62 | - . ' JOIN ' . static::ESTADOSDOC_TABLE . ' ON (' |
|
63 | - . static::MAIN_TABLE . '.idestado = ' . static::ESTADOSDOC_TABLE . '.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre = \'Anulada\')' |
|
64 | - . ' LEFT JOIN ' . static::NCFCANCELTYPE_TABLE . ' ON (' |
|
65 | - . static::MAIN_TABLE . '.ncftipoanulacion = ' . static::NCFCANCELTYPE_TABLE . '.codigo)'; |
|
62 | + . ' JOIN '.static::ESTADOSDOC_TABLE.' ON (' |
|
63 | + . static::MAIN_TABLE.'.idestado = '.static::ESTADOSDOC_TABLE.'.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre = \'Anulada\')' |
|
64 | + . ' LEFT JOIN '.static::NCFCANCELTYPE_TABLE.' ON (' |
|
65 | + . static::MAIN_TABLE.'.ncftipoanulacion = '.static::NCFCANCELTYPE_TABLE.'.codigo)'; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -184,7 +184,7 @@ |
||
184 | 184 | . $idempresa |
185 | 185 | . ' AND tipocomprobante = ' |
186 | 186 | . $dataBase->var2str($tipocomprobante) |
187 | - . ' AND estado = ' . $dataBase->var2str(true) |
|
187 | + . ' AND estado = '.$dataBase->var2str(true) |
|
188 | 188 | . ';'; |
189 | 189 | $data = $dataBase->select($sql); |
190 | 190 | if (in_array($data, [null, ''], true)) { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | public function saveInsert() |
66 | 66 | { |
67 | - return function () { |
|
67 | + return function() { |
|
68 | 68 | $ncfrango = new NCFRango(); |
69 | 69 | $cliente = new Cliente(); |
70 | 70 | $appSettins = new AppSettings; |
@@ -94,11 +94,11 @@ discard block |
||
94 | 94 | public function all() |
95 | 95 | { |
96 | 96 | //parent::all(); |
97 | - return function () { |
|
97 | + return function() { |
|
98 | 98 | $this->facturarectnumero2 = ''; |
99 | 99 | if ($this->idfacturarect !== '') { |
100 | 100 | $facturaRectificativa = $this->get($this->idfacturarect); |
101 | - $this->loadFromData(['facturarectnumero2' => 'SI' ]); |
|
101 | + $this->loadFromData(['facturarectnumero2' => 'SI']); |
|
102 | 102 | $this->facturarectnumero2 = $facturaRectificativa->numero2; |
103 | 103 | } else { |
104 | 104 | $this->loadFromData(['facturarectnumero2' => 'NO HAY']); |
@@ -29,10 +29,10 @@ |
||
29 | 29 | { |
30 | 30 | public function createViews(): Closure |
31 | 31 | { |
32 | - return function () { |
|
32 | + return function() { |
|
33 | 33 | parent::createViews(); |
34 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
35 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
34 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
35 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
36 | 36 | }; |
37 | 37 | } |
38 | 38 | } |
39 | 39 | \ No newline at end of file |