Skip to content

Commit

Permalink
Merge pull request #2508 from juliolobo/Corrigindo-permissão-de-zapnu…
Browse files Browse the repository at this point in the history
…mber

Mudando permissão para visualizarOs para gerar o zapnumber
  • Loading branch information
willph authored Jul 25, 2024
2 parents d4434ce + 5ef4d04 commit 1b70e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/os/visualizarOs.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
</div>

<?php if ($this->permission->checkPermission($this->session->userdata('permissao'), 'eOs')) {
<?php if ($this->permission->checkPermission($this->session->userdata('permissao'), 'vOs')) {
$this->load->model('os_model');
$zapnumber = preg_replace("/[^0-9]/", "", $result->celular_cliente);
$troca = [$result->nomeCliente, $result->idOs, $result->status, 'R$ ' . ($result->desconto != 0 && $result->valor_desconto != 0 ? number_format($result->valor_desconto, 2, ',', '.') : number_format($totalProdutos + $totalServico, 2, ',', '.')), strip_tags($result->descricaoProduto), ($emitente ? $emitente->nome : ''), ($emitente ? $emitente->telefone : ''), strip_tags($result->observacoes), strip_tags($result->defeito), strip_tags($result->laudoTecnico), date('d/m/Y', strtotime($result->dataFinal)), date('d/m/Y', strtotime($result->dataInicial)), $result->garantia . ' dias'];
Expand Down

0 comments on commit 1b70e62

Please sign in to comment.