@senior-gestao-empresarial/erpx-components 4.25.0 → 4.26.0
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.
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js +507 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.component.d.ts +87 -0
- package/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.module.d.ts +2 -0
- package/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.service.d.ts +22 -0
- package/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.types.d.ts +123 -0
- package/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.utils.d.ts +29 -0
- package/components/credito-fornecedor-disponivel/index.d.ts +4 -0
- package/esm2015/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.component.js +262 -0
- package/esm2015/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.module.js +26 -0
- package/esm2015/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.service.js +73 -0
- package/esm2015/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.types.js +1 -0
- package/esm2015/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.utils.js +130 -0
- package/esm2015/components/credito-fornecedor-disponivel/index.js +4 -0
- package/esm2015/locale/fallback.js +19 -2
- package/esm2015/public-api.js +3 -2
- package/esm2015/senior-gestao-empresarial-erpx-components.js +2 -1
- package/esm5/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.component.js +266 -0
- package/esm5/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.module.js +29 -0
- package/esm5/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.service.js +76 -0
- package/esm5/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.types.js +1 -0
- package/esm5/components/credito-fornecedor-disponivel/erp-credito-fornecedor-disponivel.utils.js +140 -0
- package/esm5/components/credito-fornecedor-disponivel/index.js +4 -0
- package/esm5/locale/fallback.js +19 -2
- package/esm5/public-api.js +3 -2
- package/esm5/senior-gestao-empresarial-erpx-components.js +2 -1
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +483 -2
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +502 -2
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/locale/fallback.d.ts +17 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/senior-gestao-empresarial-erpx-components.d.ts +1 -0
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -40375,6 +40375,470 @@ function atualizaValoresRateioManual(rateiosContasFinanceiras, valorTotal) {
|
|
|
40375
40375
|
return distribuicaoRateioFinal;
|
|
40376
40376
|
}
|
|
40377
40377
|
|
|
40378
|
+
const ALVO_NOVA_ABA = '_blank';
|
|
40379
|
+
let ErpCreditoFornecedorDisponivelService = class ErpCreditoFornecedorDisponivelService {
|
|
40380
|
+
constructor(http, messageService, translate) {
|
|
40381
|
+
this.http = http;
|
|
40382
|
+
this.messageService = messageService;
|
|
40383
|
+
this.translate = translate;
|
|
40384
|
+
this.baseQueries = 'erpx_fin/contas_pagar/queries';
|
|
40385
|
+
this.urlGetFrontend = 'platform/frontend_updater/queries/getFrontend';
|
|
40386
|
+
}
|
|
40387
|
+
/** Crédito disponível por filial e fornecedor das filiais informadas (no máximo 10 linhas). */
|
|
40388
|
+
obterTotalCreditoFiliais(input) {
|
|
40389
|
+
return this.http
|
|
40390
|
+
.post(`${this.baseQueries}/obterTotalCreditoPagarFiliaisFornecedores`, input)
|
|
40391
|
+
.pipe(this.defaultCatch());
|
|
40392
|
+
}
|
|
40393
|
+
obterTitulosCreditoDisponivel(input) {
|
|
40394
|
+
return this.http
|
|
40395
|
+
.post(`${this.baseQueries}/obterTitulosCreditoDisponivelFornecedor`, input)
|
|
40396
|
+
.pipe(this.defaultCatch());
|
|
40397
|
+
}
|
|
40398
|
+
/**
|
|
40399
|
+
* Resolve a URL do frontend pela plataforma e abre em uma nova aba. Exibe mensagem de erro quando a
|
|
40400
|
+
* plataforma não retorna o frontend ou a requisição falha.
|
|
40401
|
+
*/
|
|
40402
|
+
abrirEmNovaAba(identifier) {
|
|
40403
|
+
return this.http
|
|
40404
|
+
.post(this.urlGetFrontend, { identifiers: [identifier] })
|
|
40405
|
+
.pipe(map((output) => {
|
|
40406
|
+
var _a, _b;
|
|
40407
|
+
const url = (_b = (_a = output === null || output === void 0 ? void 0 : output.frontends) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.embeddedURL;
|
|
40408
|
+
if (!url) {
|
|
40409
|
+
throw new Error('frontend-nao-encontrado');
|
|
40410
|
+
}
|
|
40411
|
+
window.open(url, ALVO_NOVA_ABA);
|
|
40412
|
+
}), catchError((err) => {
|
|
40413
|
+
this.messageService.add({
|
|
40414
|
+
severity: 'error',
|
|
40415
|
+
summary: this.translate.instant('erpx.credito_fornecedor_disponivel.erro_abrir_tela'),
|
|
40416
|
+
detail: this.translate.instant('erpx.credito_fornecedor_disponivel.erro_abrir_tela_descricao')
|
|
40417
|
+
});
|
|
40418
|
+
return throwError(err);
|
|
40419
|
+
}));
|
|
40420
|
+
}
|
|
40421
|
+
defaultCatch() {
|
|
40422
|
+
return catchError((err) => {
|
|
40423
|
+
var _a;
|
|
40424
|
+
if (err) {
|
|
40425
|
+
const summary = (err === null || err === void 0 ? void 0 : err.status) ? String(err.status) : 'Error';
|
|
40426
|
+
const detail = ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.message) || (err === null || err === void 0 ? void 0 : err.statusText) || (err === null || err === void 0 ? void 0 : err.message) ||
|
|
40427
|
+
'Error';
|
|
40428
|
+
this.messageService.add({ severity: 'error', summary, detail });
|
|
40429
|
+
}
|
|
40430
|
+
return throwError(err);
|
|
40431
|
+
});
|
|
40432
|
+
}
|
|
40433
|
+
};
|
|
40434
|
+
ErpCreditoFornecedorDisponivelService.ctorParameters = () => [
|
|
40435
|
+
{ type: HttpClient },
|
|
40436
|
+
{ type: MessageService$1 },
|
|
40437
|
+
{ type: TranslateService }
|
|
40438
|
+
];
|
|
40439
|
+
ErpCreditoFornecedorDisponivelService = __decorate([
|
|
40440
|
+
Injectable()
|
|
40441
|
+
], ErpCreditoFornecedorDisponivelService);
|
|
40442
|
+
|
|
40443
|
+
/** Quantidade máxima de linhas (filial e fornecedor) retornadas pela consulta de crédito do backend. */
|
|
40444
|
+
const LIMITE_CREDITOS_FORNECEDOR = 10;
|
|
40445
|
+
/** Quantidade de dias retroativos do vencimento inicial na aba Crédito da baixa. */
|
|
40446
|
+
const DIAS_RETROATIVOS_CREDITO_BAIXA = 90;
|
|
40447
|
+
/** Query param lido pela tela de baixa do contas a pagar. */
|
|
40448
|
+
const PARAM_FILTRO_BAIXA_CONTAS_PAGAR = 'filtro';
|
|
40449
|
+
const FORMATO_DATA = 'YYYY-MM-DD';
|
|
40450
|
+
const SEPARADOR_CHAVE = '|';
|
|
40451
|
+
/**
|
|
40452
|
+
* Agrupa os fornecedores por filial, sem duplicidade, no formato do input `filiais` do componente.
|
|
40453
|
+
* Itens sem filial ou fornecedor são ignorados.
|
|
40454
|
+
*/
|
|
40455
|
+
function montarFiltrosCreditoPorFilial(itens) {
|
|
40456
|
+
return agruparFornecedores(itens, (item) => item === null || item === void 0 ? void 0 : item.filialId).map(([filialId, fornecedoresId]) => ({ filialId, fornecedoresId }));
|
|
40457
|
+
}
|
|
40458
|
+
/**
|
|
40459
|
+
* Converte o retorno (uma linha por filial e fornecedor) nas linhas da listagem. O aviso das filiais já é aplicado
|
|
40460
|
+
* pelo backend. Sem o parâmetro de aviso no retorno, a filial é considerada com o aviso habilitado.
|
|
40461
|
+
*/
|
|
40462
|
+
function converterCreditos(resultados) {
|
|
40463
|
+
return (resultados !== null && resultados !== void 0 ? resultados : []).map(converterLinha);
|
|
40464
|
+
}
|
|
40465
|
+
/**
|
|
40466
|
+
* Monta o filtro da baixa do contas a pagar para a linha de crédito: os filtros base informados pela tela de
|
|
40467
|
+
* origem são mantidos (inclusive notas fiscais de entrada e de saída) e empresa, filial e fornecedor vêm da linha. Na aba Crédito o vencimento vai de hoje menos
|
|
40468
|
+
* {@link DIAS_RETROATIVOS_CREDITO_BAIXA} dias até hoje. A baixa é orientada a abrir a negociação na aba Crédito.
|
|
40469
|
+
*/
|
|
40470
|
+
function montarFiltroBaixaContasPagar(filtroBase, credito, hoje) {
|
|
40471
|
+
var _a, _b, _c;
|
|
40472
|
+
const geral = Object.assign(Object.assign({}, ((_a = filtroBase === null || filtroBase === void 0 ? void 0 : filtroBase.geral) !== null && _a !== void 0 ? _a : {})), { empresas: converterEmpresa(credito.recEmpresa), fornecedores: [converterFornecedor(credito.recFornecedor)] });
|
|
40473
|
+
if (credito.recFilial) {
|
|
40474
|
+
geral.filiais = converterFilial(credito.recFilial);
|
|
40475
|
+
}
|
|
40476
|
+
const filtroCredito = {
|
|
40477
|
+
vencimentoInicial: moment(hoje)
|
|
40478
|
+
.subtract(DIAS_RETROATIVOS_CREDITO_BAIXA, 'days')
|
|
40479
|
+
.format(FORMATO_DATA),
|
|
40480
|
+
vencimentoFinal: moment(hoje).format(FORMATO_DATA)
|
|
40481
|
+
};
|
|
40482
|
+
if ((_c = (_b = filtroBase === null || filtroBase === void 0 ? void 0 : filtroBase.credito) === null || _b === void 0 ? void 0 : _b.notasSaida) === null || _c === void 0 ? void 0 : _c.length) {
|
|
40483
|
+
filtroCredito.notasSaida = filtroBase.credito.notasSaida;
|
|
40484
|
+
}
|
|
40485
|
+
return {
|
|
40486
|
+
geral: removerVazios(geral),
|
|
40487
|
+
credito: filtroCredito,
|
|
40488
|
+
abrirCreditosNegociacao: true
|
|
40489
|
+
};
|
|
40490
|
+
}
|
|
40491
|
+
/** Serializa o filtro em JSON e codifica em base64url (UTF-8), para envio via query param. */
|
|
40492
|
+
function codificarFiltroBaixaContasPagar(filtro) {
|
|
40493
|
+
const bytes = new TextEncoder().encode(JSON.stringify(filtro));
|
|
40494
|
+
const binario = Array.from(bytes, (byte) => String.fromCharCode(byte)).join('');
|
|
40495
|
+
return btoa(binario)
|
|
40496
|
+
.replace(/\+/g, '-')
|
|
40497
|
+
.replace(/\//g, '_')
|
|
40498
|
+
.replace(/=+$/, '');
|
|
40499
|
+
}
|
|
40500
|
+
function formatarRecGenerico(rec) {
|
|
40501
|
+
var _a, _b, _c;
|
|
40502
|
+
if (!rec) {
|
|
40503
|
+
return '';
|
|
40504
|
+
}
|
|
40505
|
+
if (rec.codigo && rec.descricao) {
|
|
40506
|
+
return `${rec.codigo} - ${rec.descricao}`;
|
|
40507
|
+
}
|
|
40508
|
+
return (_c = (_b = (_a = rec.label) !== null && _a !== void 0 ? _a : rec.descricao) !== null && _b !== void 0 ? _b : rec.codigo) !== null && _c !== void 0 ? _c : '';
|
|
40509
|
+
}
|
|
40510
|
+
function agruparFornecedores(itens, obterChave) {
|
|
40511
|
+
const fornecedoresPorChave = new Map();
|
|
40512
|
+
(itens !== null && itens !== void 0 ? itens : [])
|
|
40513
|
+
.filter((item) => obterChave(item) && (item === null || item === void 0 ? void 0 : item.fornecedorId))
|
|
40514
|
+
.forEach((item) => {
|
|
40515
|
+
var _a;
|
|
40516
|
+
const chave = obterChave(item);
|
|
40517
|
+
const fornecedores = (_a = fornecedoresPorChave.get(chave)) !== null && _a !== void 0 ? _a : new Set();
|
|
40518
|
+
fornecedores.add(item.fornecedorId);
|
|
40519
|
+
fornecedoresPorChave.set(chave, fornecedores);
|
|
40520
|
+
});
|
|
40521
|
+
return Array.from(fornecedoresPorChave.entries()).map(([chave, fornecedores]) => [chave, Array.from(fornecedores)]);
|
|
40522
|
+
}
|
|
40523
|
+
function converterLinha(resultado) {
|
|
40524
|
+
var _a, _b, _c, _d, _e, _f;
|
|
40525
|
+
return {
|
|
40526
|
+
chave: `${(_a = resultado.filial) === null || _a === void 0 ? void 0 : _a.id}${SEPARADOR_CHAVE}${(_b = resultado.fornecedor) === null || _b === void 0 ? void 0 : _b.id}`,
|
|
40527
|
+
empresaId: (_c = resultado.empresa) === null || _c === void 0 ? void 0 : _c.id,
|
|
40528
|
+
filialId: (_d = resultado.filial) === null || _d === void 0 ? void 0 : _d.id,
|
|
40529
|
+
fornecedorId: (_e = resultado.fornecedor) === null || _e === void 0 ? void 0 : _e.id,
|
|
40530
|
+
empresa: formatarRecGenerico(resultado.empresa),
|
|
40531
|
+
filial: formatarRecGenerico(resultado.filial),
|
|
40532
|
+
fornecedor: formatarRecGenerico(resultado.fornecedor),
|
|
40533
|
+
totalCredito: resultado.totalCredito,
|
|
40534
|
+
quantidadeTitulos: (_f = resultado.quantidadeTitulos) !== null && _f !== void 0 ? _f : 0,
|
|
40535
|
+
avisoPgtoCreditoFornecedor: resultado.avisoPgtoCreditoFornecedor !== false,
|
|
40536
|
+
recEmpresa: resultado.empresa,
|
|
40537
|
+
recFilial: resultado.filial,
|
|
40538
|
+
recFornecedor: resultado.fornecedor
|
|
40539
|
+
};
|
|
40540
|
+
}
|
|
40541
|
+
function converterEmpresa(empresa) {
|
|
40542
|
+
return (empresa === null || empresa === void 0 ? void 0 : empresa.id) ? {
|
|
40543
|
+
id: empresa.id,
|
|
40544
|
+
codEmp: empresa.codigo,
|
|
40545
|
+
nomEmp: empresa.descricao,
|
|
40546
|
+
label: empresa.label
|
|
40547
|
+
}
|
|
40548
|
+
: undefined;
|
|
40549
|
+
}
|
|
40550
|
+
function converterFilial(filial) {
|
|
40551
|
+
return {
|
|
40552
|
+
id: filial.id,
|
|
40553
|
+
codFil: filial.codigo,
|
|
40554
|
+
nomFil: filial.descricao,
|
|
40555
|
+
label: filial.label
|
|
40556
|
+
};
|
|
40557
|
+
}
|
|
40558
|
+
function converterFornecedor(fornecedor) {
|
|
40559
|
+
return {
|
|
40560
|
+
id: fornecedor.id,
|
|
40561
|
+
codPes: fornecedor.codigo,
|
|
40562
|
+
nomPes: fornecedor.descricao,
|
|
40563
|
+
label: fornecedor.label
|
|
40564
|
+
};
|
|
40565
|
+
}
|
|
40566
|
+
function removerVazios(geral) {
|
|
40567
|
+
return Object.keys(geral)
|
|
40568
|
+
.filter((campo) => geral[campo] !== undefined && geral[campo] !== null)
|
|
40569
|
+
.reduce((resultado, campo) => (Object.assign(Object.assign({}, resultado), { [campo]: geral[campo] })), {});
|
|
40570
|
+
}
|
|
40571
|
+
|
|
40572
|
+
const TAMANHO_PAGINA_TITULOS_CREDITO = 10;
|
|
40573
|
+
const PREFIXO = 'erpx.credito_fornecedor_disponivel.';
|
|
40574
|
+
const DOMINIO_CONTAS_PAGAR = 'erpx_fin';
|
|
40575
|
+
const SERVICO_CONTAS_PAGAR = 'contas_pagar';
|
|
40576
|
+
const APP_CONTAS_PAGAR = 'erpx-fin-contas-pagar';
|
|
40577
|
+
const ROTA_BAIXA_CONTAS_PAGAR = 'baixa/total';
|
|
40578
|
+
const ESCALA_MONETARIA = 2;
|
|
40579
|
+
const FORMATO_DATA_PADRAO = 'DD/MM/YYYY';
|
|
40580
|
+
const ALINHAMENTO_DIREITA = { 'text-align': 'right' };
|
|
40581
|
+
/**
|
|
40582
|
+
* Consulta e lista o crédito disponível dos fornecedores no contas a pagar, agrupado por filial, com a sublista de
|
|
40583
|
+
* títulos de crédito e o atalho "Ir para baixa".
|
|
40584
|
+
*
|
|
40585
|
+
* O componente não define a forma de exibição (dialog, sidebar, painel): quem o utiliza decide, com base nos
|
|
40586
|
+
* eventos `onCreditoDisponivel`, `onSemCreditoDisponivel` e `onErro`. A consulta é disparada quando `filiais`
|
|
40587
|
+
* ou `somenteFiliaisComAviso` recebe um novo valor. O backend retorna no máximo
|
|
40588
|
+
* {@link LIMITE_CREDITOS_FORNECEDOR} linhas; com esse total em tela, é exibido o aviso de listagem limitada.
|
|
40589
|
+
*/
|
|
40590
|
+
let ErpCreditoFornecedorDisponivelComponent = class ErpCreditoFornecedorDisponivelComponent {
|
|
40591
|
+
constructor(service, translate) {
|
|
40592
|
+
this.service = service;
|
|
40593
|
+
this.translate = translate;
|
|
40594
|
+
/**
|
|
40595
|
+
* Considera apenas as filiais com o aviso de crédito disponível habilitado na especialização de contas a pagar.
|
|
40596
|
+
* Com `false`, considera todas as filiais.
|
|
40597
|
+
*/
|
|
40598
|
+
this.somenteFiliaisComAviso = true;
|
|
40599
|
+
/** Configuração de locale da tela (calendar e number). */
|
|
40600
|
+
this.localeConfig = {};
|
|
40601
|
+
/** Emitido quando a consulta encontra crédito disponível, com as linhas exibidas. */
|
|
40602
|
+
this.onCreditoDisponivel = new EventEmitter();
|
|
40603
|
+
/**
|
|
40604
|
+
* Emitido quando não há crédito disponível a exibir: sem crédito, sem filial com o aviso habilitado (com
|
|
40605
|
+
* `somenteFiliaisComAviso`) ou sem filiais com fornecedores a verificar.
|
|
40606
|
+
*/
|
|
40607
|
+
this.onSemCreditoDisponivel = new EventEmitter();
|
|
40608
|
+
/** Emitido quando a consulta de crédito falha. A mensagem de erro já é exibida pelo componente. */
|
|
40609
|
+
this.onErro = new EventEmitter();
|
|
40610
|
+
this.creditos = [];
|
|
40611
|
+
this.sublistas = {};
|
|
40612
|
+
this.colunasCredito = [];
|
|
40613
|
+
this.colunasTitulos = [];
|
|
40614
|
+
this.localeTabela = {};
|
|
40615
|
+
this.limiteCreditos = LIMITE_CREDITOS_FORNECEDOR;
|
|
40616
|
+
/** Com o limite de linhas do backend em tela, pode haver crédito não exibido. */
|
|
40617
|
+
this.atingiuLimiteCreditos = false;
|
|
40618
|
+
this.tamanhoPaginaTitulos = TAMANHO_PAGINA_TITULOS_CREDITO;
|
|
40619
|
+
this.consultaAtual = 0;
|
|
40620
|
+
this.ngUnsubscribe = new Subject();
|
|
40621
|
+
}
|
|
40622
|
+
ngOnChanges(changes) {
|
|
40623
|
+
var _a;
|
|
40624
|
+
if (changes.localeConfig) {
|
|
40625
|
+
// O s-table-columns formata moeda com a máscara do locale, que descarta o sinal quando
|
|
40626
|
+
// allowNegative não está habilitado.
|
|
40627
|
+
this.localeTabela = Object.assign(Object.assign({}, this.localeConfig), { number: Object.assign(Object.assign({}, (_a = this.localeConfig) === null || _a === void 0 ? void 0 : _a.number), { allowNegative: true }) });
|
|
40628
|
+
}
|
|
40629
|
+
if (changes.filiais || changes.somenteFiliaisComAviso) {
|
|
40630
|
+
this.verificarCredito();
|
|
40631
|
+
}
|
|
40632
|
+
}
|
|
40633
|
+
ngOnDestroy() {
|
|
40634
|
+
this.ngUnsubscribe.next();
|
|
40635
|
+
this.ngUnsubscribe.complete();
|
|
40636
|
+
}
|
|
40637
|
+
carregarTitulos(credito, event) {
|
|
40638
|
+
var _a;
|
|
40639
|
+
const sublista = this.obterSublista(credito);
|
|
40640
|
+
sublista.carregando = true;
|
|
40641
|
+
this.service
|
|
40642
|
+
.obterTitulosCreditoDisponivel({
|
|
40643
|
+
filialId: credito.filialId,
|
|
40644
|
+
fornecedorId: credito.fornecedorId,
|
|
40645
|
+
pageRequest: {
|
|
40646
|
+
offset: Math.floor(((_a = event === null || event === void 0 ? void 0 : event.first) !== null && _a !== void 0 ? _a : 0) / this.tamanhoPaginaTitulos),
|
|
40647
|
+
size: this.tamanhoPaginaTitulos
|
|
40648
|
+
}
|
|
40649
|
+
})
|
|
40650
|
+
.pipe(takeUntil(this.ngUnsubscribe), finalize(() => (sublista.carregando = false)))
|
|
40651
|
+
.subscribe((output) => {
|
|
40652
|
+
var _a, _b;
|
|
40653
|
+
sublista.titulos = (_a = output === null || output === void 0 ? void 0 : output.titulos) !== null && _a !== void 0 ? _a : [];
|
|
40654
|
+
sublista.totalRegistros = (_b = output === null || output === void 0 ? void 0 : output.totalElements) !== null && _b !== void 0 ? _b : 0;
|
|
40655
|
+
});
|
|
40656
|
+
}
|
|
40657
|
+
obterSublista(credito) {
|
|
40658
|
+
if (!this.sublistas[credito.chave]) {
|
|
40659
|
+
this.sublistas[credito.chave] = {
|
|
40660
|
+
titulos: [],
|
|
40661
|
+
totalRegistros: 0,
|
|
40662
|
+
carregando: false
|
|
40663
|
+
};
|
|
40664
|
+
}
|
|
40665
|
+
return this.sublistas[credito.chave];
|
|
40666
|
+
}
|
|
40667
|
+
/**
|
|
40668
|
+
* Abre a baixa do contas a pagar em uma nova aba para a linha de crédito, mantendo os filtros base
|
|
40669
|
+
* informados pela tela de origem. A baixa pesquisa e segue para a negociação na aba Crédito.
|
|
40670
|
+
*/
|
|
40671
|
+
irParaBaixa(credito) {
|
|
40672
|
+
const filtro = montarFiltroBaixaContasPagar(this.filtroBaixa, credito, new Date());
|
|
40673
|
+
const route = `${ROTA_BAIXA_CONTAS_PAGAR}?${PARAM_FILTRO_BAIXA_CONTAS_PAGAR}=${codificarFiltroBaixaContasPagar(filtro)}`;
|
|
40674
|
+
const identifier = {
|
|
40675
|
+
domainName: DOMINIO_CONTAS_PAGAR,
|
|
40676
|
+
serviceName: SERVICO_CONTAS_PAGAR,
|
|
40677
|
+
appName: APP_CONTAS_PAGAR,
|
|
40678
|
+
route
|
|
40679
|
+
};
|
|
40680
|
+
this.service
|
|
40681
|
+
.abrirEmNovaAba(identifier)
|
|
40682
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
40683
|
+
.subscribe();
|
|
40684
|
+
}
|
|
40685
|
+
trackCredito(_index, credito) {
|
|
40686
|
+
return credito.chave;
|
|
40687
|
+
}
|
|
40688
|
+
trackColuna(_index, coluna) {
|
|
40689
|
+
return coluna.field;
|
|
40690
|
+
}
|
|
40691
|
+
/**
|
|
40692
|
+
* Consulta o crédito conforme os inputs. Respostas de consultas anteriores são ignoradas. A emissão sem
|
|
40693
|
+
* consulta é adiada para não alterar o estado de quem utiliza o componente durante o seu ciclo de detecção.
|
|
40694
|
+
*/
|
|
40695
|
+
verificarCredito() {
|
|
40696
|
+
const consulta = ++this.consultaAtual;
|
|
40697
|
+
this.creditos = [];
|
|
40698
|
+
this.sublistas = {};
|
|
40699
|
+
this.atingiuLimiteCreditos = false;
|
|
40700
|
+
if (!this.filiais) {
|
|
40701
|
+
return;
|
|
40702
|
+
}
|
|
40703
|
+
if (!this.filiais.length) {
|
|
40704
|
+
Promise.resolve().then(() => {
|
|
40705
|
+
if (consulta === this.consultaAtual) {
|
|
40706
|
+
this.onSemCreditoDisponivel.emit();
|
|
40707
|
+
}
|
|
40708
|
+
});
|
|
40709
|
+
return;
|
|
40710
|
+
}
|
|
40711
|
+
this.service
|
|
40712
|
+
.obterTotalCreditoFiliais({
|
|
40713
|
+
filtros: this.filiais,
|
|
40714
|
+
somenteFiliaisComAviso: this.somenteFiliaisComAviso
|
|
40715
|
+
})
|
|
40716
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
40717
|
+
.subscribe((output) => this.exibirCreditos(consulta, converterCreditos(output === null || output === void 0 ? void 0 : output.resultados)), (erro) => {
|
|
40718
|
+
if (consulta === this.consultaAtual) {
|
|
40719
|
+
this.onErro.emit(erro);
|
|
40720
|
+
}
|
|
40721
|
+
});
|
|
40722
|
+
}
|
|
40723
|
+
exibirCreditos(consulta, creditos) {
|
|
40724
|
+
if (consulta !== this.consultaAtual) {
|
|
40725
|
+
return;
|
|
40726
|
+
}
|
|
40727
|
+
if (!creditos.length) {
|
|
40728
|
+
this.onSemCreditoDisponivel.emit();
|
|
40729
|
+
return;
|
|
40730
|
+
}
|
|
40731
|
+
this.creditos = creditos;
|
|
40732
|
+
this.atingiuLimiteCreditos = creditos.length >= this.limiteCreditos;
|
|
40733
|
+
this.colunasCredito = this.montarColunasCredito();
|
|
40734
|
+
this.colunasTitulos = this.montarColunasTitulos();
|
|
40735
|
+
this.onCreditoDisponivel.emit(creditos);
|
|
40736
|
+
}
|
|
40737
|
+
montarColunasCredito() {
|
|
40738
|
+
return [
|
|
40739
|
+
this.coluna('empresa', 'empresa', ['empresa'], EnumColumnFieldType.STRING),
|
|
40740
|
+
this.coluna('filial', 'filial', ['filial'], EnumColumnFieldType.STRING),
|
|
40741
|
+
this.coluna('fornecedor', 'fornecedor', ['fornecedor'], EnumColumnFieldType.STRING),
|
|
40742
|
+
this.colunaMoeda('totalCredito', 'total_credito'),
|
|
40743
|
+
Object.assign(Object.assign({}, this.coluna('quantidadeTitulos', 'quantidade_titulos', ['quantidadeTitulos'], EnumColumnFieldType.NUMBER)), { scale: 0, style: ALINHAMENTO_DIREITA })
|
|
40744
|
+
];
|
|
40745
|
+
}
|
|
40746
|
+
montarColunasTitulos() {
|
|
40747
|
+
const formatoData = this.obterFormatoData();
|
|
40748
|
+
return [
|
|
40749
|
+
Object.assign(Object.assign({}, this.coluna('numeroTitulo', 'titulo_tipo', ['numeroTitulo', 'tipoTitulo.codigo'], EnumColumnFieldType.STRING)), { separator: '/' }),
|
|
40750
|
+
this.coluna('transacao', 'transacao', ['transacao.codigo', 'transacao.descricao'], EnumColumnFieldType.STRING),
|
|
40751
|
+
Object.assign(Object.assign({}, this.coluna('dataEmissao', 'data_emissao', ['dataEmissao'], EnumColumnFieldType.DATE)), { dateFormat: formatoData }),
|
|
40752
|
+
Object.assign(Object.assign({}, this.coluna('vencimentoProrrogado', 'vencimento_prorrogado', ['vencimentoProrrogado'], EnumColumnFieldType.DATE)), { dateFormat: formatoData }),
|
|
40753
|
+
this.colunaMoeda('valorOriginal', 'valor_original'),
|
|
40754
|
+
this.colunaMoeda('valorLiquido', 'valor_liquido')
|
|
40755
|
+
];
|
|
40756
|
+
}
|
|
40757
|
+
/**
|
|
40758
|
+
* O s-table-columns formata datas com moment, mas o locale traz o formato do calendário PrimeNG
|
|
40759
|
+
* (ex.: dd/mm/yy). Converte para os tokens equivalentes do moment (ex.: DD/MM/YYYY).
|
|
40760
|
+
*/
|
|
40761
|
+
obterFormatoData() {
|
|
40762
|
+
var _a, _b;
|
|
40763
|
+
const formatoCalendario = (_b = (_a = this.localeConfig) === null || _a === void 0 ? void 0 : _a.calendar) === null || _b === void 0 ? void 0 : _b.dateFormat;
|
|
40764
|
+
if (!formatoCalendario) {
|
|
40765
|
+
return FORMATO_DATA_PADRAO;
|
|
40766
|
+
}
|
|
40767
|
+
return formatoCalendario
|
|
40768
|
+
.replace(/yy/g, 'YYYY')
|
|
40769
|
+
.replace(/mm/g, 'MM')
|
|
40770
|
+
.replace(/dd/g, 'DD');
|
|
40771
|
+
}
|
|
40772
|
+
/**
|
|
40773
|
+
* O s-table-columns monta o prefixo de CURRENCY como "<símbolo> " e coloca o sinal antes dele: sem símbolo de
|
|
40774
|
+
* moeda, o valor negativo ficaria "- 1.234,56". Nesse caso a coluna é NUMBER, que formata igual sem prefixo.
|
|
40775
|
+
*/
|
|
40776
|
+
colunaMoeda(field, chaveTraducao) {
|
|
40777
|
+
var _a, _b;
|
|
40778
|
+
const tipo = ((_b = (_a = this.localeTabela) === null || _a === void 0 ? void 0 : _a.number) === null || _b === void 0 ? void 0 : _b.currencySymbol) ? EnumColumnFieldType.CURRENCY
|
|
40779
|
+
: EnumColumnFieldType.NUMBER;
|
|
40780
|
+
return Object.assign(Object.assign({}, this.coluna(field, chaveTraducao, [field], tipo)), { scale: ESCALA_MONETARIA, style: ALINHAMENTO_DIREITA });
|
|
40781
|
+
}
|
|
40782
|
+
coluna(field, chaveTraducao, attributes, type) {
|
|
40783
|
+
return {
|
|
40784
|
+
field,
|
|
40785
|
+
header: this.translate.instant(`${PREFIXO}${chaveTraducao}`),
|
|
40786
|
+
attributes,
|
|
40787
|
+
type,
|
|
40788
|
+
style: {}
|
|
40789
|
+
};
|
|
40790
|
+
}
|
|
40791
|
+
};
|
|
40792
|
+
ErpCreditoFornecedorDisponivelComponent.ctorParameters = () => [
|
|
40793
|
+
{ type: ErpCreditoFornecedorDisponivelService },
|
|
40794
|
+
{ type: TranslateService }
|
|
40795
|
+
];
|
|
40796
|
+
__decorate([
|
|
40797
|
+
Input()
|
|
40798
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "filiais", void 0);
|
|
40799
|
+
__decorate([
|
|
40800
|
+
Input()
|
|
40801
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "somenteFiliaisComAviso", void 0);
|
|
40802
|
+
__decorate([
|
|
40803
|
+
Input()
|
|
40804
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "localeConfig", void 0);
|
|
40805
|
+
__decorate([
|
|
40806
|
+
Input()
|
|
40807
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "filtroBaixa", void 0);
|
|
40808
|
+
__decorate([
|
|
40809
|
+
Output()
|
|
40810
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "onCreditoDisponivel", void 0);
|
|
40811
|
+
__decorate([
|
|
40812
|
+
Output()
|
|
40813
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "onSemCreditoDisponivel", void 0);
|
|
40814
|
+
__decorate([
|
|
40815
|
+
Output()
|
|
40816
|
+
], ErpCreditoFornecedorDisponivelComponent.prototype, "onErro", void 0);
|
|
40817
|
+
ErpCreditoFornecedorDisponivelComponent = __decorate([
|
|
40818
|
+
Component({
|
|
40819
|
+
selector: 'erp-credito-fornecedor-disponivel',
|
|
40820
|
+
template: "<p-table [value]=\"creditos\" dataKey=\"chave\" [rowTrackBy]=\"trackCredito\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th id=\"erp-credito-expansao\" class=\"coluna-expansao\"></th>\n <th\n *ngFor=\"let coluna of colunasCredito; trackBy: trackColuna\"\n [id]=\"'erp-credito-' + coluna.field\"\n [ngStyle]=\"coluna.style\"\n >\n {{ coluna.header }}\n </th>\n <th id=\"erp-credito-acoes\" class=\"coluna-acoes\"></th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-credito let-expanded=\"expanded\">\n <tr>\n <td class=\"coluna-expansao\">\n <a\n href=\"#\"\n [sRowToggler]=\"credito\"\n [attr.aria-label]=\"\n 'erpx.credito_fornecedor_disponivel.ver_titulos_credito'\n | translate\n \"\n [title]=\"\n 'erpx.credito_fornecedor_disponivel.ver_titulos_credito'\n | translate\n \"\n >\n <i\n [ngClass]=\"\n expanded\n ? 'fa fa-fw fa-chevron-down'\n : 'fa fa-fw fa-chevron-right'\n \"\n ></i>\n </a>\n </td>\n <s-table-columns\n [columns]=\"colunasCredito\"\n [rowValue]=\"credito\"\n [locale]=\"localeTabela\"\n ></s-table-columns>\n <td class=\"coluna-acoes\">\n <s-button\n priority=\"default\"\n [id]=\"'erp-credito-ir-para-baixa-' + credito.chave\"\n [label]=\"\n 'erpx.credito_fornecedor_disponivel.ir_para_baixa'\n | translate\n \"\n [auxiliary]=\"true\"\n (onClick)=\"irParaBaixa(credito)\"\n ></s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"rowexpansion\" let-credito>\n <tr class=\"linha-sublista\">\n <td\n [attr.colspan]=\"colunasCredito.length + 2\"\n class=\"celula-sublista\"\n >\n <p-table\n [value]=\"obterSublista(credito).titulos\"\n dataKey=\"id\"\n [lazy]=\"true\"\n [paginator]=\"true\"\n [rows]=\"tamanhoPaginaTitulos\"\n [totalRecords]=\"obterSublista(credito).totalRegistros\"\n [loading]=\"obterSublista(credito).carregando\"\n (onLazyLoad)=\"carregarTitulos(credito, $event)\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th\n *ngFor=\"\n let coluna of colunasTitulos;\n trackBy: trackColuna\n \"\n [id]=\"'erp-credito-titulo-' + coluna.field\"\n [ngStyle]=\"coluna.style\"\n >\n {{ coluna.header }}\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-titulo>\n <tr>\n <s-table-columns\n [columns]=\"colunasTitulos\"\n [rowValue]=\"titulo\"\n [locale]=\"localeTabela\"\n ></s-table-columns>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"colunasTitulos.length\">\n {{\n 'erpx.credito_fornecedor_disponivel.nenhum_titulo_credito_encontrado'\n | translate\n }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </td>\n </tr>\n </ng-template>\n</p-table>\n\n<div class=\"aviso-limite\" *ngIf=\"atingiuLimiteCreditos\">\n <i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i>\n {{\n 'erpx.credito_fornecedor_disponivel.limite_creditos'\n | translate: { limite: limiteCreditos }\n }}\n</div>\n",
|
|
40821
|
+
styles: [".coluna-expansao{width:3em}.coluna-acoes{width:10em;white-space:nowrap;text-align:center}.celula-sublista{padding:10px 10px 10px 3em}.linha-sublista:focus>.celula-sublista,.linha-sublista:hover>.celula-sublista{background-color:transparent}.aviso-limite{padding-top:10px}"]
|
|
40822
|
+
})
|
|
40823
|
+
], ErpCreditoFornecedorDisponivelComponent);
|
|
40824
|
+
|
|
40825
|
+
let ErpCreditoFornecedorDisponivelModule = class ErpCreditoFornecedorDisponivelModule {
|
|
40826
|
+
};
|
|
40827
|
+
ErpCreditoFornecedorDisponivelModule = __decorate([
|
|
40828
|
+
NgModule({
|
|
40829
|
+
declarations: [ErpCreditoFornecedorDisponivelComponent],
|
|
40830
|
+
imports: [
|
|
40831
|
+
CommonModule,
|
|
40832
|
+
TranslateModule,
|
|
40833
|
+
ButtonModule,
|
|
40834
|
+
TableModule$1,
|
|
40835
|
+
TableModule
|
|
40836
|
+
],
|
|
40837
|
+
providers: [ErpCreditoFornecedorDisponivelService],
|
|
40838
|
+
exports: [ErpCreditoFornecedorDisponivelComponent]
|
|
40839
|
+
})
|
|
40840
|
+
], ErpCreditoFornecedorDisponivelModule);
|
|
40841
|
+
|
|
40378
40842
|
const fallback = {
|
|
40379
40843
|
"erpx.tributos.badge_tipo_calculo_imposto_info_sign_text_calculado": "Valor calculado pelo sistema conforme regras fiscais",
|
|
40380
40844
|
"erpx.tributos.badge_tipo_calculo_imposto_info_sign_text_herdado": "Valor gerado por um processo de origem",
|
|
@@ -40428,12 +40892,29 @@ const fallback = {
|
|
|
40428
40892
|
"erpx.rateio_editor.erro_valor_maximo_conta": "O percentual ou valor informado excede o restante disponível.",
|
|
40429
40893
|
"erpx.rateio_editor.erro_valor_maximo_centro_custo": "O valor não pode ser maior que o valor rateado da conta.",
|
|
40430
40894
|
"erpx.rateio_editor.erro_maximo_centro_custo": "O valor ou percentual informado excede o restante disponível para esta conta.",
|
|
40431
|
-
"erpx.rateio_editor.erro_valor_conta_inferior_soma_cc": "O valor informado é menor que a soma dos centros de custo já distribuídos nesta conta. Ajuste os centros de custo antes de reduzir o valor da conta."
|
|
40895
|
+
"erpx.rateio_editor.erro_valor_conta_inferior_soma_cc": "O valor informado é menor que a soma dos centros de custo já distribuídos nesta conta. Ajuste os centros de custo antes de reduzir o valor da conta.",
|
|
40896
|
+
"erpx.credito_fornecedor_disponivel.empresa": "Empresa",
|
|
40897
|
+
"erpx.credito_fornecedor_disponivel.filial": "Filial",
|
|
40898
|
+
"erpx.credito_fornecedor_disponivel.fornecedor": "Fornecedor",
|
|
40899
|
+
"erpx.credito_fornecedor_disponivel.total_credito": "Total de crédito",
|
|
40900
|
+
"erpx.credito_fornecedor_disponivel.quantidade_titulos": "Quantidade de títulos",
|
|
40901
|
+
"erpx.credito_fornecedor_disponivel.titulo_tipo": "Título/tipo",
|
|
40902
|
+
"erpx.credito_fornecedor_disponivel.transacao": "Transação",
|
|
40903
|
+
"erpx.credito_fornecedor_disponivel.data_emissao": "Data de emissão",
|
|
40904
|
+
"erpx.credito_fornecedor_disponivel.vencimento_prorrogado": "Vencimento prorrogado",
|
|
40905
|
+
"erpx.credito_fornecedor_disponivel.valor_original": "Valor original",
|
|
40906
|
+
"erpx.credito_fornecedor_disponivel.valor_liquido": "Valor líquido",
|
|
40907
|
+
"erpx.credito_fornecedor_disponivel.ver_titulos_credito": "Ver títulos de crédito",
|
|
40908
|
+
"erpx.credito_fornecedor_disponivel.nenhum_titulo_credito_encontrado": "Nenhum título de crédito encontrado",
|
|
40909
|
+
"erpx.credito_fornecedor_disponivel.ir_para_baixa": "Ir para baixa",
|
|
40910
|
+
"erpx.credito_fornecedor_disponivel.limite_creditos": "São exibidos no máximo {{limite}} créditos. Pode haver outros créditos disponíveis para os fornecedores.",
|
|
40911
|
+
"erpx.credito_fornecedor_disponivel.erro_abrir_tela": "Não foi possível abrir a tela",
|
|
40912
|
+
"erpx.credito_fornecedor_disponivel.erro_abrir_tela_descricao": "Não foi possível localizar a tela de baixa do contas a pagar. Verifique o acesso e tente novamente."
|
|
40432
40913
|
};
|
|
40433
40914
|
|
|
40434
40915
|
/**
|
|
40435
40916
|
* Generated bundle index. Do not edit.
|
|
40436
40917
|
*/
|
|
40437
40918
|
|
|
40438
|
-
export { BreadcrumbComponent, BreadcrumbModule, Breakpoints, EnumAplicarValorBrutoDocumento, EnumAplicarValorLiquidoDocumento, EnumCampoTributo, EnumEscriturarAliquotaISS, EnumFunruralIndicativoAquisicao, EnumGrupoTributo, EnumInvoiceOrigin, EnumModBc, EnumMotDes, EnumOriMer, EnumRegimeTributarioPisCofins, EnumSituacao, EnumTipImpCst, EnumTipOpe, EnumTipoControleProduto, EnumTipoItem, EnumTipoMovimentacao, EnumTipoTributo, ErpLoteSerieComponent, ErpLoteSerieModule, ErpRateioEditorComponent, ErpRateioEditorConverter, ErpRateioEditorModule, ErpResumoModule, ErpTributosComponent, ErpTributosModule, ExportUtils, atualizaValoresRateioManual, enumTipCredRecup, fallback, isEmpty, isNotEmpty, isNullOrUndefined, nonNullish, ErpResumoComponent as ɵa, ErpResumoService as ɵb, CalculationRulesRegistry as ɵba, IncomingInvoiceCalculationRulesRegistry as ɵbb, TaxableBaseCalculationRule as ɵbc, TaxAmountCalculator as ɵbd, EffectiveTaxRateCalculator as ɵbe, TaxRoundingService as ɵbf, TaxStore as ɵbg, TaxRateCalculationRule as ɵbh, EffectiveTaxRateCalculationRule as ɵbi, TaxAmountCalculationRule as ɵbj, GrossAmountCalculationRule as ɵbk, GrossAmountCalculator as ɵbl, TaxSituationCalculationRule as ɵbm, TaxClassificationCalculationRule as ɵbn, TaxCalculationTypeCalculationRule as ɵbo, ApplyNetValueToDocumentCalculationRule as ɵbp, ManualTaxCalculationRule as ɵbq, ApplyGrossValueToDocumentCalculationRule as ɵbr, OutgoingInvoiceCalculationRulesRegistry as ɵbs, AssessmentPeriodCalculationRule as ɵbt, SaleOrderCalculationRulesRegistry as ɵbu, PurchaseOrderCalculationRulesRegistry as ɵbv, FocusService as ɵbw, ErpLoteSeriesService as ɵbx, QuantidadeDisponivelDemandaService as ɵby, EntityService as ɵbz, LoadingContext as ɵc, QuantidadeDisponivelDemandaModule as ɵca, ErpRateioEditorService as ɵcb, ErpTributosService as ɵd, RulesService as ɵe, StatusRulesRegistry as ɵf, IncomingInvoiceStatusRulesRegistry as ɵg, TaxClassificationStatusRule as ɵh, ApplyNetValueToDocumentStatusRule as ɵi, TaxableBaseStatusRule as ɵj, TaxRateStatusRule as ɵk, OutgoingInvoiceStatusRulesRegistry as ɵl, SaleOrderStatusRulesRegistry as ɵm, PurchaseOrderStatusRulesRegistry as ɵn, ValidationRulesRegistry as ɵo, IncomingInvoiceValidationRulesRegistry as ɵp, TaxableBaseRequiredValidationRule as ɵq, TaxRateRequiredValidationRule as ɵr, TaxClassificationRequiredValidationRule as ɵs, TaxAmountRequiredValidationRule as ɵt, TaxSituationRequiredValidationRule as ɵu, ApplyNetValueToDocumentRequiredValidationRule as ɵv, OutgoingInvoiceValidationRulesRegistry as ɵw, AssessmentPeriodRequiredValidationRule as ɵx, SaleOrderValidationRulesRegistry as ɵy, PurchaseOrderValidationRulesRegistry as ɵz };
|
|
40919
|
+
export { BreadcrumbComponent, BreadcrumbModule, Breakpoints, DIAS_RETROATIVOS_CREDITO_BAIXA, EnumAplicarValorBrutoDocumento, EnumAplicarValorLiquidoDocumento, EnumCampoTributo, EnumEscriturarAliquotaISS, EnumFunruralIndicativoAquisicao, EnumGrupoTributo, EnumInvoiceOrigin, EnumModBc, EnumMotDes, EnumOriMer, EnumRegimeTributarioPisCofins, EnumSituacao, EnumTipImpCst, EnumTipOpe, EnumTipoControleProduto, EnumTipoItem, EnumTipoMovimentacao, EnumTipoTributo, ErpCreditoFornecedorDisponivelComponent, ErpCreditoFornecedorDisponivelModule, ErpLoteSerieComponent, ErpLoteSerieModule, ErpRateioEditorComponent, ErpRateioEditorConverter, ErpRateioEditorModule, ErpResumoModule, ErpTributosComponent, ErpTributosModule, ExportUtils, LIMITE_CREDITOS_FORNECEDOR, atualizaValoresRateioManual, enumTipCredRecup, fallback, isEmpty, isNotEmpty, isNullOrUndefined, montarFiltrosCreditoPorFilial, nonNullish, ErpResumoComponent as ɵa, ErpResumoService as ɵb, CalculationRulesRegistry as ɵba, IncomingInvoiceCalculationRulesRegistry as ɵbb, TaxableBaseCalculationRule as ɵbc, TaxAmountCalculator as ɵbd, EffectiveTaxRateCalculator as ɵbe, TaxRoundingService as ɵbf, TaxStore as ɵbg, TaxRateCalculationRule as ɵbh, EffectiveTaxRateCalculationRule as ɵbi, TaxAmountCalculationRule as ɵbj, GrossAmountCalculationRule as ɵbk, GrossAmountCalculator as ɵbl, TaxSituationCalculationRule as ɵbm, TaxClassificationCalculationRule as ɵbn, TaxCalculationTypeCalculationRule as ɵbo, ApplyNetValueToDocumentCalculationRule as ɵbp, ManualTaxCalculationRule as ɵbq, ApplyGrossValueToDocumentCalculationRule as ɵbr, OutgoingInvoiceCalculationRulesRegistry as ɵbs, AssessmentPeriodCalculationRule as ɵbt, SaleOrderCalculationRulesRegistry as ɵbu, PurchaseOrderCalculationRulesRegistry as ɵbv, FocusService as ɵbw, ErpLoteSeriesService as ɵbx, QuantidadeDisponivelDemandaService as ɵby, EntityService as ɵbz, LoadingContext as ɵc, QuantidadeDisponivelDemandaModule as ɵca, ErpRateioEditorService as ɵcb, ErpCreditoFornecedorDisponivelService as ɵcc, ErpTributosService as ɵd, RulesService as ɵe, StatusRulesRegistry as ɵf, IncomingInvoiceStatusRulesRegistry as ɵg, TaxClassificationStatusRule as ɵh, ApplyNetValueToDocumentStatusRule as ɵi, TaxableBaseStatusRule as ɵj, TaxRateStatusRule as ɵk, OutgoingInvoiceStatusRulesRegistry as ɵl, SaleOrderStatusRulesRegistry as ɵm, PurchaseOrderStatusRulesRegistry as ɵn, ValidationRulesRegistry as ɵo, IncomingInvoiceValidationRulesRegistry as ɵp, TaxableBaseRequiredValidationRule as ɵq, TaxRateRequiredValidationRule as ɵr, TaxClassificationRequiredValidationRule as ɵs, TaxAmountRequiredValidationRule as ɵt, TaxSituationRequiredValidationRule as ɵu, ApplyNetValueToDocumentRequiredValidationRule as ɵv, OutgoingInvoiceValidationRulesRegistry as ɵw, AssessmentPeriodRequiredValidationRule as ɵx, SaleOrderValidationRulesRegistry as ɵy, PurchaseOrderValidationRulesRegistry as ɵz };
|
|
40439
40920
|
//# sourceMappingURL=senior-gestao-empresarial-erpx-components.js.map
|