@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | protected function saveUpdate(array $values = array()) |
175 | 175 | { |
176 | - if($this->id and isset($this->usuariomodificacion_view)) { |
|
176 | + if ($this->id and isset($this->usuariomodificacion_view)) { |
|
177 | 177 | $this->fechamodificacion = \date('d-m-Y'); |
178 | 178 | $this->usuariomodificacion = $this->usuariomodificacion_view; |
179 | 179 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | . $idempresa |
190 | 190 | . ' AND tipocomprobante = ' |
191 | 191 | . $dataBase->var2str($tipocomprobante) |
192 | - . ' AND estado = ' . $dataBase->var2str(true) |
|
192 | + . ' AND estado = '.$dataBase->var2str(true) |
|
193 | 193 | . ';'; |
194 | 194 | $data = $dataBase->select($sql); |
195 | 195 | return new NCFRango($data[0]); |
@@ -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; |
@@ -85,11 +85,11 @@ discard block |
||
85 | 85 | public function all() |
86 | 86 | { |
87 | 87 | //parent::all(); |
88 | - return function () { |
|
88 | + return function() { |
|
89 | 89 | $this->facturarectnumero2 = ''; |
90 | 90 | if ($this->idfacturarect !== '') { |
91 | 91 | $facturaRectificativa = $this->get($this->idfacturarect); |
92 | - $this->loadFromData(['facturarectnumero2' => 'SI' ]); |
|
92 | + $this->loadFromData(['facturarectnumero2' => 'SI']); |
|
93 | 93 | $this->facturarectnumero2 = 'SI'; |
94 | 94 | } else { |
95 | 95 | $this->loadFromData(['facturarectnumero2' => 'NO HAY']); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | break; |
75 | 75 | case 'busca_tipo': |
76 | 76 | $this->setTemplate(false); |
77 | - $where = [new DatabaseWhere( $_REQUEST['tipodocumento'], 'Y')]; |
|
77 | + $where = [new DatabaseWhere($_REQUEST['tipodocumento'], 'Y')]; |
|
78 | 78 | $tipocomprobantes = $this->views['ListNCFTipo']->model->all($where); |
79 | 79 | if ($tipocomprobantes) { |
80 | 80 | echo json_encode(['tipocomprobantes' => $tipocomprobantes], JSON_THROW_ON_ERROR); |
@@ -63,12 +63,12 @@ |
||
63 | 63 | |
64 | 64 | protected function getSQLFrom(): string |
65 | 65 | { |
66 | - return static::MAIN_TABLE . '' |
|
67 | - . ' LEFT JOIN '. static::CLIENTES_TABLE . ' ON ' |
|
68 | - . static::MAIN_TABLE . '.codcliente = ' . static::CLIENTES_TABLE . '.codcliente' |
|
69 | - . ' LEFT JOIN '. static::NCFTIPO_TABLE . ' ON ' |
|
70 | - . static::MAIN_TABLE . '.tipocomprobante = ' . static::NCFTIPO_TABLE . '.tipocomprobante' |
|
71 | - . ' LEFT JOIN ' . static::NCFTIPOPAGO_TABLE . ' ON ' |
|
72 | - . static::MAIN_TABLE . '.ncftipopago = ' . static::NCFTIPOPAGO_TABLE . '.tipopago'; |
|
66 | + return static::MAIN_TABLE.'' |
|
67 | + . ' LEFT JOIN '.static::CLIENTES_TABLE.' ON ' |
|
68 | + . static::MAIN_TABLE.'.codcliente = '.static::CLIENTES_TABLE.'.codcliente' |
|
69 | + . ' LEFT JOIN '.static::NCFTIPO_TABLE.' ON ' |
|
70 | + . static::MAIN_TABLE.'.tipocomprobante = '.static::NCFTIPO_TABLE.'.tipocomprobante' |
|
71 | + . ' LEFT JOIN '.static::NCFTIPOPAGO_TABLE.' ON ' |
|
72 | + . static::MAIN_TABLE.'.ncftipopago = '.static::NCFTIPOPAGO_TABLE.'.tipopago'; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | \ No newline at end of file |
@@ -16,18 +16,18 @@ |
||
16 | 16 | * along with fsRepublicaDominicana. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | */ |
18 | 18 | |
19 | - namespace FacturaScripts\Plugins\fsRepublicaDominicana\Extension\Model; |
|
19 | + namespace FacturaScripts\Plugins\fsRepublicaDominicana\Extension\Model; |
|
20 | 20 | |
21 | - class Cliente |
|
22 | - { |
|
21 | + class Cliente |
|
22 | + { |
|
23 | 23 | /** |
24 | 24 | * Payment type based on DGII table |
25 | 25 | * @var string |
26 | 26 | */ |
27 | 27 | public $ncftipopago; |
28 | - /** |
|
29 | - * Type of NCF to generate to the customer |
|
30 | - * @var string |
|
31 | - */ |
|
32 | - public $tipocomprobante; |
|
33 | - } |
|
28 | + /** |
|
29 | + * Type of NCF to generate to the customer |
|
30 | + * @var string |
|
31 | + */ |
|
32 | + public $tipocomprobante; |
|
33 | + } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $this->loadExtension(new Extension\Controller\EditProveedor()); |
46 | 46 | $this->loadExtension(new Extension\Controller\EditFacturaCliente()); |
47 | 47 | $this->loadExtension(new Extension\Controller\EditFacturaProveedor()); |
48 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
48 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | public function update() |
@@ -28,10 +28,10 @@ |
||
28 | 28 | { |
29 | 29 | public function createViews(): \Closure |
30 | 30 | { |
31 | - return function () { |
|
31 | + return function() { |
|
32 | 32 | parent::createViews(); |
33 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
34 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
33 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
34 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
35 | 35 | |
36 | 36 | $ncfTipo = new NCFTipo(); |
37 | 37 | $ncfTipos = $ncfTipo->allByType('ventas'); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | public function createViews() |
27 | 27 | { |
28 | - return function () { |
|
28 | + return function() { |
|
29 | 29 | |
30 | 30 | $ncfTipoPago = new NCFTipoPago(); |
31 | 31 | $ncfTiposPago = $ncfTipoPago->findAllByTipopago('02'); |
@@ -27,10 +27,10 @@ |
||
27 | 27 | { |
28 | 28 | public function createViews(): \Closure |
29 | 29 | { |
30 | - return function () { |
|
30 | + return function() { |
|
31 | 31 | parent::createViews(); |
32 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
33 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
32 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js'); |
|
33 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
34 | 34 | |
35 | 35 | $ncfTipo = new NCFTipo(); |
36 | 36 | $ncfTipos = $ncfTipo->allByType('compras'); |