From 7c249b564fa890b1d8c4c6582d403393e5e06676 Mon Sep 17 00:00:00 2001 From: Andre Belafronte Date: Tue, 31 May 2022 17:04:15 -0300 Subject: [PATCH] fix: corrige erro de SQLSTATE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrige erro de SQLSTATE apresentado quando é acessada a página de configuração de códigos de serviços personalizados. refs: #122 --- CHANGELOG.md | 6 ++++++ modules/addons/NFEioServiceInvoices/lib/Configuration.php | 2 +- .../lib/Models/ProductCode/Repository.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f97270..6235dac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/modules/addons/NFEioServiceInvoices/lib/Configuration.php b/modules/addons/NFEioServiceInvoices/lib/Configuration.php index 0d1352e..0fa21db 100644 --- a/modules/addons/NFEioServiceInvoices/lib/Configuration.php +++ b/modules/addons/NFEioServiceInvoices/lib/Configuration.php @@ -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_'; diff --git a/modules/addons/NFEioServiceInvoices/lib/Models/ProductCode/Repository.php b/modules/addons/NFEioServiceInvoices/lib/Models/ProductCode/Repository.php index 1b8bf8c..17202c9 100644 --- a/modules/addons/NFEioServiceInvoices/lib/Models/ProductCode/Repository.php +++ b/modules/addons/NFEioServiceInvoices/lib/Models/ProductCode/Repository.php @@ -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(); }