ngx-sp-infra 6.7.5 → 6.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9508,10 +9508,10 @@ class PessoaAbasComponent {
|
|
|
9508
9508
|
VerifyList() {
|
|
9509
9509
|
this.UrisList = [];
|
|
9510
9510
|
if (window.location.host.includes("localhost")) {
|
|
9511
|
-
this.UrisList.push({ nome: 'Dados básicos', uri: `http://${window.location.host}/pessoas/editar/${this.Id}`, isTargetSelf: true }, { nome: 'Dados comerciais', uri: `http://${window.location.host}/pessoas-comercial/${this.Id}`, isTargetSelf: false }, { nome: 'Dados financeiros', uri: `http://${window.location.host}/
|
|
9511
|
+
this.UrisList.push({ nome: 'Dados básicos', uri: `http://${window.location.host}/pessoas/editar/${this.Id}`, isTargetSelf: true }, { nome: 'Dados comerciais', uri: `http://${window.location.host}/pessoas-comercial/${this.Id}`, isTargetSelf: false }, { nome: 'Dados financeiros', uri: `http://${window.location.host}/clientes-fornecedores/${this.Id}`, isTargetSelf: false }, { nome: 'Compras - Dados da pessoa para suprimentos', uri: `http://${window.location.host}/pessoas-dados-suprimentos/editar/${this.Id}`, isTargetSelf: false }, { nome: 'Compras - Dados do fornecedor', uri: `http://${window.location.host}/pessoas-dados-fornecedor/editar/${this.Id}`, isTargetSelf: false }, { nome: 'Dados auxiliares', uri: `http://${window.location.host}/pessoas/dadosAuxiliares/${this.Id}`, isTargetSelf: false }, { nome: 'Tipo', uri: `http://siscandesv10.sispro.com.br/SpMnt3Manutencao/TipoPessoa.aspx?IsCorp=True&CrpPessoaId=${this.Id}`, isTargetSelf: false }, { nome: 'Fiscal', uri: `http://${window.location.host}/pessoas/pessoaFiscal/${this.Id}`, isTargetSelf: false }, { nome: 'Contabilidade', uri: `http://${window.location.host}/Participantes?CrpPessoaId=${this.Id}`, isTargetSelf: false });
|
|
9512
9512
|
}
|
|
9513
9513
|
else {
|
|
9514
|
-
this.UrisList.push({ nome: 'Dados básicos', uri: `https://${window.location.host}/SisproErpCloud/Corporativo/pessoas/editar/${this.Id}`, isTargetSelf: true }, { nome: 'Dados comerciais', uri: `https://${window.location.host}/SisproErpCloud/Vendas/pessoas-comercial/${this.Id}`, isTargetSelf: false }, { nome: 'Dados financeiros', uri: `https://${window.location.host}/SisproErpCloud/Financeiro/
|
|
9514
|
+
this.UrisList.push({ nome: 'Dados básicos', uri: `https://${window.location.host}/SisproErpCloud/Corporativo/pessoas/editar/${this.Id}`, isTargetSelf: true }, { nome: 'Dados comerciais', uri: `https://${window.location.host}/SisproErpCloud/Vendas/pessoas-comercial/${this.Id}`, isTargetSelf: false }, { nome: 'Dados financeiros', uri: `https://${window.location.host}/SisproErpCloud/Financeiro/clientes-fornecedores/${this.Id}`, isTargetSelf: false }, { nome: 'Compras - Dados da pessoa para suprimentos', uri: `https://${window.location.host}/SisproErpCloud/Compras/pessoas-dados-suprimentos/editar/${this.Id}`, isTargetSelf: false }, { nome: 'Compras - Dados do fornecedor', uri: `https://${window.location.host}/SisproErpCloud/Compras/pessoas-dados-fornecedor/editar/${this.Id}`, isTargetSelf: false }, { nome: 'Dados auxiliares', uri: `https://${window.location.host}/SisproErpCloud/Corporativo/pessoas/dadosAuxiliares/${this.Id}`, isTargetSelf: false }, { nome: 'Tipo', uri: `https://siscandesv10.sispro.com.br/SpMnt3Manutencao/TipoPessoa.aspx?IsCorp=True&CrpPessoaId=${this.Id}`, isTargetSelf: false }, { nome: 'Fiscal', uri: `https://${window.location.host}/SisproErpCloud/Corporativo/pessoas/pessoaFiscal/${this.Id}`, isTargetSelf: false }, { nome: 'Contabilidade', uri: `https://${window.location.host}/SisproErpCloud/Contabilidade/Participantes?CrpPessoaId=${this.Id}`, isTargetSelf: false });
|
|
9515
9515
|
}
|
|
9516
9516
|
if (this.hasPapel && this.tipoPessoa === 2 && this.isFornecedor) {
|
|
9517
9517
|
}
|
|
@@ -12218,7 +12218,7 @@ class CpfCnpjValidator {
|
|
|
12218
12218
|
}
|
|
12219
12219
|
// CPF ===========================================
|
|
12220
12220
|
if (isCPF) {
|
|
12221
|
-
if (/^(\d)\1+$/.test(valor))
|
|
12221
|
+
if (/^(\d)\1+$/.test(valor) && valor !== '00000000000')
|
|
12222
12222
|
return { cpcnpjInvalid: true };
|
|
12223
12223
|
const calcDV = (base) => {
|
|
12224
12224
|
let soma = 0;
|
|
@@ -12237,7 +12237,7 @@ class CpfCnpjValidator {
|
|
|
12237
12237
|
}
|
|
12238
12238
|
// CNPJ ALFANUMÉRICO ===========================================
|
|
12239
12239
|
// Rejeita todos iguais
|
|
12240
|
-
if (/^([A-Z0-9])\1*$/.test(valor)) {
|
|
12240
|
+
if (/^([A-Z0-9])\1*$/.test(valor) && valor !== '00000000000000') {
|
|
12241
12241
|
return { cpcnpjInvalid: true };
|
|
12242
12242
|
}
|
|
12243
12243
|
// Converte as letras para numeros
|