Skip to content

Commit

Permalink
fix: corrige erro de SQLSTATE
Browse files Browse the repository at this point in the history
Corrige erro de SQLSTATE apresentado quando é acessada a página de configuração de códigos de serviços personalizados.

refs: #122
  • Loading branch information
andrekutianski committed May 31, 2022
1 parent 1ef7690 commit 7c249b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.1.1 - 2022-05-31

### Correção

* Corrigido erro de `SQLSTATE` ao acessar página de configuração de códigos de serviços #122

## 2.1.0 - 2022-04-11

### Novo Recurso
Expand Down
2 changes: 1 addition & 1 deletion modules/addons/NFEioServiceInvoices/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class Configuration extends \WHMCSExpert\mtLibs\process\AbstractConfigurat

private $encryptHash = '';

public $version = '2.1.0';
public $version = '2.1.1';

public $tablePrefix = 'mod_nfeio_si_';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function servicesCodeDataTable()
return Capsule::table('tblproducts')
->leftJoin($this->tableName, 'tblproducts.id', '=', "{$this->tableName}.product_id")
->orderBy('tblproducts.id', 'desc')
->select('tblproducts.id', 'tblproducts.name', "{$this->tableName}.code_service", "{$this->tableName}.iss_held")
->select('tblproducts.id', 'tblproducts.name', "{$this->tableName}.code_service")
->get();
}

Expand Down

0 comments on commit 7c249b5

Please sign in to comment.