Skip to content

Commit

Permalink
Removida verificação do campo rps_serial_number
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoferreiralkn committed Jun 30, 2021
1 parent e34d225 commit 90eab57
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions modules/addons/gofasnfeio/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,21 +248,6 @@ function gofasnfeio_config() {
'Type' => 'text',
'Description' => '<a style="text-decoration:underline;" href="https://nfe.io/docs/nota-fiscal-servico/conceitos-nfs-e/#o-que-e-codigo-de-servico" target="_blank">O que é Código de Serviço?</a>',
]];
$nfeSerialNumber = gnfe_get_company_info()['rpsSerialNumber'];

if (
Capsule::table('tbladdonmodules')
->where('module', '=', 'gofasnfeio')
->where('setting', '=', 'rps_serial_number')
->get(['value'])[0]->value != $nfeSerialNumber
) {
try {
Capsule::table('tbladdonmodules')
->where('module', '=', 'gofasnfeio')
->where('setting', '=', 'rps_serial_number')
->update(['value' => gnfe_get_company_info()['rpsSerialNumber']]);
} catch (\Throwable $th) {}
}

$issue_note_default_cond = ['issue_note_default_cond' => [
'FriendlyName' => 'Quando emitir NFE',
Expand Down

0 comments on commit 90eab57

Please sign in to comment.