Skip to content

Commit

Permalink
Remoçã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 14a9b88 commit e34d225
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions modules/addons/gofasnfeio/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,18 @@ function gofasnfeio_config() {
set_custom_field_ini_date();
}

$rps_number = gnfe_config('rps_number');
if (is_numeric($rps_number)) {
$rpsDescription = 'RPS atualizada de acordo com última nota fiscal emitida, clique no botão salvar alterações para atualizar automaticamente.';
} else {
$rpsDescription = '<a style="text-decoration:underline;" href="https://app.nfe.io/companies/edit/fiscal/' . gnfe_config('company_id') . '" target="_blank">Consultar RPS</a>';
}

$intro = ['intro' => [
'FriendlyName' => '',
'Description' => '<h4 style="padding-top: 5px;">Módulo Nota Fiscal NFE.io para WHMCS v' . $module_version . '</h4>'
]];

$intro['intro']['Description'] .= '<p>'. $available_update_message .'</p>';
$intro['intro']['Description'] .= '<p>'. $update_denied .'</p>';
$intro['intro']['Description'] .= '<p>'. $rpsDescription .'</p>';

$intro['intro']['Description'] .=
'<a style="text-decoration:underline;" href="https://app.nfe.io/companies/edit/fiscal/' . gnfe_config('company_id') . '" target="_blank">
Consultar: RPS | Série
</a>';

$api_key = ['api_key' => [
'FriendlyName' => 'API Key',
Expand Down Expand Up @@ -267,13 +264,6 @@ function gofasnfeio_config() {
} catch (\Throwable $th) {}
}

$rps_serial_number = ['rps_serial_number' => [
'FriendlyName' => 'Série do RPS',
'Type' => 'text',
'Disabled' => 'true',
'Description' => '<a style="text-decoration:underline;" href="https://nfe.io/docs/nota-fiscal-servico/conceitos-nfs-e/" target="_blank">Saiba mais</a>',
]];

$issue_note_default_cond = ['issue_note_default_cond' => [
'FriendlyName' => 'Quando emitir NFE',
'Type' => 'radio',
Expand Down Expand Up @@ -369,7 +359,7 @@ function gofasnfeio_config() {
'Description' => '&copy; ' . date('Y') . ' <a target="_blank" title="Para suporte utilize o github" href="https://github.com/nfe/whmcs-addon/issues">Suporte módulo</a>',
]];

$fields = array_merge($intro, $api_key, $company_id, $service_code, $rps_serial_number, $issue_note_default_cond, $issue_note_after, $gnfe_email_nfe_config,$development_, $cancel_invoice_cancel_nfe, $debug, $insc_municipal,$cpf,$cnpj, $tax, $invoiceDetails, $send_invoice_url,$desc_custom, $footer);
$fields = array_merge($intro, $api_key, $company_id, $service_code, $issue_note_default_cond, $issue_note_after, $gnfe_email_nfe_config,$development_, $cancel_invoice_cancel_nfe, $debug, $insc_municipal,$cpf,$cnpj, $tax, $invoiceDetails, $send_invoice_url,$desc_custom, $footer);
$configarray = [
'name' => 'NFE.io',
'description' => 'Módulo Nota Fiscal NFE.io para WHMCS',
Expand Down

0 comments on commit e34d225

Please sign in to comment.