@senior-gestao-empresarial/erpx-components 4.11.0 → 4.12.1-develop-774d30bd
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 +54 -38
- 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/rateio-editor/erp-rateio-editor.component.d.ts +3 -11
- package/esm2015/components/rateio-editor/erp-rateio-editor.component.js +27 -34
- package/esm2015/locale/fallback.js +28 -2
- package/esm5/components/rateio-editor/erp-rateio-editor.component.js +28 -38
- package/esm5/locale/fallback.js +28 -2
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +53 -34
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +54 -38
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/locale/fallback.d.ts +26 -0
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
package/esm5/locale/fallback.js
CHANGED
|
@@ -13,6 +13,7 @@ export var fallback = {
|
|
|
13
13
|
"erpx.rateio_editor.remover_conta": "Remover conta",
|
|
14
14
|
"erpx.rateio_editor.adicionar_centro_custo": "Adicionar centro de custo",
|
|
15
15
|
"erpx.rateio_editor.remover_centro_custo": "Remover centro de custo",
|
|
16
|
+
"erpx.rateio_editor.nenhum_centro_custo_selecionado": "Selecione ao menos um centro de custo para remover.",
|
|
16
17
|
"erpx.rateio_editor.sugerir_rateio": "Sugerir rateio",
|
|
17
18
|
"erpx.rateio_editor.salvar": "Salvar",
|
|
18
19
|
"erpx.rateio_editor.cancelar": "Cancelar",
|
|
@@ -25,6 +26,31 @@ export var fallback = {
|
|
|
25
26
|
"erpx.rateio_editor.erro_salvar": "Erro ao salvar rateio",
|
|
26
27
|
"erpx.rateio_editor.erro_contexto_incompleto": "Não foi possível salvar: o contexto do rateio (filial e critério) não foi informado.",
|
|
27
28
|
"erpx.rateio_editor.erro_sugerir": "Erro ao sugerir rateio",
|
|
28
|
-
"erpx.rateio_editor.erro_carregar": "Erro ao carregar rateio"
|
|
29
|
+
"erpx.rateio_editor.erro_carregar": "Erro ao carregar rateio",
|
|
30
|
+
"erpx.rateio_editor.lista_rateios": "Rateios",
|
|
31
|
+
"erpx.rateio_editor.sem_rateios_titulo": "Nenhum rateio cadastrado",
|
|
32
|
+
"erpx.rateio_editor.sem_rateios_descricao": "Adicione contas financeiras ou utilize a sugestão automática",
|
|
33
|
+
"erpx.rateio_editor.erro_obrigatorio": "Campo obrigatório",
|
|
34
|
+
"erpx.rateio_editor.acoes": "Ações",
|
|
35
|
+
"erpx.rateio_editor.percentual": "Percentual",
|
|
36
|
+
"erpx.rateio_editor.conta_financeira": "Conta financeira",
|
|
37
|
+
"erpx.rateio_editor.valor": "Valor",
|
|
38
|
+
"erpx.rateio_editor.centros_custo": "Centros de custo",
|
|
39
|
+
"erpx.rateio_editor.centros_custo_da_conta": "Centros de custo da conta",
|
|
40
|
+
"erpx.rateio_editor.centro_custo": "Centro de custo",
|
|
41
|
+
"erpx.rateio_editor.sem_centros_custo": "Nenhum centro de custo vinculado",
|
|
42
|
+
"erpx.rateio_editor.editar": "Editar",
|
|
43
|
+
"erpx.rateio_editor.excluir": "Excluir",
|
|
44
|
+
"erpx.rateio_editor.sem_contexto_para_sugerir": "Filial e critério de rateio são obrigatórios para sugerir.",
|
|
45
|
+
"erpx.rateio_editor.conta_duplicada": "Esta conta financeira já foi adicionada.",
|
|
46
|
+
"erpx.rateio_editor.centro_custo_duplicado": "Este centro de custo já foi adicionado a esta conta.",
|
|
47
|
+
"erpx.rateio_editor.erro_conta_sintetica": "A conta financeira selecionada é sintética. Selecione uma conta analítica.",
|
|
48
|
+
"erpx.rateio_editor.erro_centro_custo_invalido": "O centro de custo selecionado é inválido (sintético ou não aceita rateio).",
|
|
49
|
+
"erpx.rateio_editor.erro_distribuicao_incompleta": "A distribuição do rateio está incompleta. Os percentuais e valores devem ser totalmente distribuídos.",
|
|
50
|
+
"erpx.rateio_editor.erro_centro_custo_obrigatorio": "Cada conta financeira deve ter ao menos um centro de custo vinculado.",
|
|
51
|
+
"erpx.rateio_editor.erro_valor_maximo_conta": "O percentual ou valor informado excede o restante disponível.",
|
|
52
|
+
"erpx.rateio_editor.erro_valor_maximo_centro_custo": "O valor não pode ser maior que o valor rateado da conta.",
|
|
53
|
+
"erpx.rateio_editor.erro_maximo_centro_custo": "O valor ou percentual informado excede o restante disponível para esta conta.",
|
|
54
|
+
"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."
|
|
29
55
|
};
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFsbGJhY2suanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac2VuaW9yLWdlc3Rhby1lbXByZXNhcmlhbC9lcnB4LWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJsb2NhbGUvZmFsbGJhY2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sUUFBUSxHQUFHO0lBQ3BCLG1FQUFtRSxFQUFFLHNEQUFzRDtJQUMzSCxpRUFBaUUsRUFBRSx3Q0FBd0M7SUFDM0csZ0VBQWdFLEVBQUUsMENBQTBDO0lBQzVHLHlEQUF5RCxFQUFFLGdCQUFnQjtJQUMzRSw2REFBNkQsRUFBRSxvQkFBb0I7SUFDbkYsc0VBQXNFLEVBQUUsNkJBQTZCO0lBQ3JHLDJCQUEyQixFQUFFLGtCQUFrQjtJQUMvQywrQkFBK0IsRUFBRSxZQUFZO0lBQzd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do28gcG9kZSBzZXIgbWFpb3IgcXVlIG8gdmFsb3IgcmF0ZWFkbyBkYSBjb250YS5cIixcbiAgICBcImVycHgucmF0ZWlvX2VkaXRvci5lcnJvX21heGltb19jZW50cm9fY3VzdG9cIjogXCJPIHZhbG9yIG91IHBlcmNlbnR1YWwgaW5mb3JtYWRvIGV4Y2VkZSBvIHJlc3RhbnRlIGRpc3BvbsOtdmVsIHBhcmEgZXN0YSBjb250YS5cIixcbiAgICBcImVycHgucmF0ZWlvX2VkaXRvci5lcnJvX3ZhbG9yX2NvbnRhX2luZmVyaW9yX3NvbWFfY2NcIjogXCJPIHZhbG9yIGluZm9ybWFkbyDDqSBtZW5vciBxdWUgYSBzb21hIGRvcyBjZW50cm9zIGRlIGN1c3RvIGrDoSBkaXN0cmlidcOtZG9zIG5lc3RhIGNvbnRhLiBBanVzdGUgb3MgY2VudHJvcyBkZSBjdXN0byBhbnRlcyBkZSByZWR1emlyIG8gdmFsb3IgZGEgY29udGEuXCJcbn07XG4iXX0=
|
|
@@ -32313,16 +32313,6 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32313
32313
|
get contasFormArray() {
|
|
32314
32314
|
return this.formGroup.get('contas');
|
|
32315
32315
|
}
|
|
32316
|
-
/**
|
|
32317
|
-
* Indica se o critério de rateio exige distribuição por centro de custo.
|
|
32318
|
-
* O critério 'V5' (Nenhum) não distribui por C. Custos; os demais exigem
|
|
32319
|
-
* ao menos um centro de custo por conta financeira.
|
|
32320
|
-
*/
|
|
32321
|
-
get requiresCentroCusto() {
|
|
32322
|
-
var _a, _b;
|
|
32323
|
-
const criterio = (_b = (_a = this.loadedContext) === null || _a === void 0 ? void 0 : _a.criRat) !== null && _b !== void 0 ? _b : this.criRat;
|
|
32324
|
-
return criterio !== ErpRateioEditorComponent_1.CRITERIO_SEM_CENTRO_CUSTO;
|
|
32325
|
-
}
|
|
32326
32316
|
get valorBase() {
|
|
32327
32317
|
var _a, _b;
|
|
32328
32318
|
return (_b = (_a = this.loadedContext) === null || _a === void 0 ? void 0 : _a.valorBase) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -32339,15 +32329,12 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32339
32329
|
}
|
|
32340
32330
|
/**
|
|
32341
32331
|
* Valor restante a ser exibido nos cards de resumo.
|
|
32342
|
-
*
|
|
32343
|
-
*
|
|
32344
|
-
*
|
|
32332
|
+
* Considera o total já distribuído nos centros de custo de todas as contas
|
|
32333
|
+
* (e não o total das contas financeiras), refletindo a distribuição real
|
|
32334
|
+
* ponta-a-ponta — centro de custo é sempre obrigatório.
|
|
32345
32335
|
*/
|
|
32346
32336
|
get valorRestanteDisplay() {
|
|
32347
32337
|
var _a;
|
|
32348
|
-
if (!this.requiresCentroCusto) {
|
|
32349
|
-
return this.valorRestante;
|
|
32350
|
-
}
|
|
32351
32338
|
const totalCC = this.contasDataSource.reduce((acc, conta) => acc + (conta.rateiosCCusto || []).reduce((ccAcc, cc) => ccAcc + (cc.valor || 0), 0), 0);
|
|
32352
32339
|
return +(this.valorBase - totalCC).toFixed((_a = this.config.currencyScale) !== null && _a !== void 0 ? _a : 2);
|
|
32353
32340
|
}
|
|
@@ -32357,9 +32344,6 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32357
32344
|
*/
|
|
32358
32345
|
get percentualRestanteDisplay() {
|
|
32359
32346
|
var _a;
|
|
32360
|
-
if (!this.requiresCentroCusto) {
|
|
32361
|
-
return this.percentualRestante;
|
|
32362
|
-
}
|
|
32363
32347
|
if (!this.valorBase) {
|
|
32364
32348
|
return 0;
|
|
32365
32349
|
}
|
|
@@ -32423,7 +32407,7 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32423
32407
|
if (this.effectiveReadOnly) {
|
|
32424
32408
|
return;
|
|
32425
32409
|
}
|
|
32426
|
-
if (this.
|
|
32410
|
+
if (this.hasContaSemCentroCusto()) {
|
|
32427
32411
|
const message = this.translate.instant('erpx.rateio_editor.erro_centro_custo_obrigatorio');
|
|
32428
32412
|
this.messageService.add({
|
|
32429
32413
|
severity: 'error',
|
|
@@ -32571,8 +32555,8 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32571
32555
|
this.selectedConta = contaValue;
|
|
32572
32556
|
this.contaDialogFormGroup = this.fb.group({
|
|
32573
32557
|
contaFinanceira: [{ value: contaValue, disabled: this.editingContaIndex != null }, Validators.required],
|
|
32574
|
-
percentual: [{ value: percentualValue, disabled: false }, Validators.required],
|
|
32575
|
-
valor: [{ value: valorValue, disabled: false }, [Validators.required, Validators.max(
|
|
32558
|
+
percentual: [{ value: percentualValue, disabled: false }, [Validators.required, Validators.max(remainingPct)]],
|
|
32559
|
+
valor: [{ value: valorValue, disabled: false }, [Validators.required, Validators.max(remainingValor)]]
|
|
32576
32560
|
});
|
|
32577
32561
|
this.contaDialogFormGroup.get('contaFinanceira').valueChanges
|
|
32578
32562
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
@@ -32582,7 +32566,7 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32582
32566
|
this.displayContaDialog = true;
|
|
32583
32567
|
}
|
|
32584
32568
|
onSaveContaDialog() {
|
|
32585
|
-
var _a, _b, _c;
|
|
32569
|
+
var _a, _b, _c, _d, _e;
|
|
32586
32570
|
if (this.contaDialogFormGroup.invalid) {
|
|
32587
32571
|
return;
|
|
32588
32572
|
}
|
|
@@ -32607,6 +32591,12 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32607
32591
|
const conta = this.contasDataSource[this.editingContaIndex];
|
|
32608
32592
|
conta.percentual = percentual;
|
|
32609
32593
|
conta.valorRateadoConta = valor;
|
|
32594
|
+
// Recalcula os valores dos CCs proporcionalmente ao novo valor da conta,
|
|
32595
|
+
// mantendo os percentuais intactos.
|
|
32596
|
+
if ((_d = conta.rateiosCCusto) === null || _d === void 0 ? void 0 : _d.length) {
|
|
32597
|
+
const currencyScale = (_e = this.config.currencyScale) !== null && _e !== void 0 ? _e : 2;
|
|
32598
|
+
conta.rateiosCCusto = conta.rateiosCCusto.map(cc => (Object.assign(Object.assign({}, cc), { valor: +((cc.percentual / 100) * valor).toFixed(currencyScale) })));
|
|
32599
|
+
}
|
|
32610
32600
|
this.contasDataSource = [...this.contasDataSource];
|
|
32611
32601
|
}
|
|
32612
32602
|
else {
|
|
@@ -32768,6 +32758,9 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32768
32758
|
this.empresaId = (_c = (_b = (_a = this.initialContext) === null || _a === void 0 ? void 0 : _a.e070fil) === null || _b === void 0 ? void 0 : _b.e070emp) === null || _c === void 0 ? void 0 : _c.id;
|
|
32769
32759
|
}
|
|
32770
32760
|
this.gridColumns = this.getGridColumns();
|
|
32761
|
+
// Emite o estado de validade já na carga inicial (sem marcar como "sujo"),
|
|
32762
|
+
// permitindo que o host conheça o isValid mesmo sem o usuário editar.
|
|
32763
|
+
this.emitChange(false);
|
|
32771
32764
|
}
|
|
32772
32765
|
carregarRateio() {
|
|
32773
32766
|
this.loading = true;
|
|
@@ -32781,6 +32774,8 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32781
32774
|
this.empresaId = output.e070fil.e070emp.id;
|
|
32782
32775
|
}
|
|
32783
32776
|
this.gridColumns = this.getGridColumns();
|
|
32777
|
+
// Emite o estado de validade do rateio carregado (sem marcar como "sujo").
|
|
32778
|
+
this.emitChange(false);
|
|
32784
32779
|
}, (err) => { var _a; return this.error.emit({ operacao: 'load', message: ((_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.message) || this.translate.instant('erpx.rateio_editor.erro_carregar'), originalError: err }); });
|
|
32785
32780
|
}
|
|
32786
32781
|
popularComRateios(rateios) {
|
|
@@ -32814,8 +32809,8 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32814
32809
|
var _a, _b;
|
|
32815
32810
|
const ccs = conta.rateiosCCusto || [];
|
|
32816
32811
|
if (ccs.length === 0) {
|
|
32817
|
-
//
|
|
32818
|
-
return
|
|
32812
|
+
// Centro de custo é sempre obrigatório: conta sem nenhum CC nunca é completa.
|
|
32813
|
+
return false;
|
|
32819
32814
|
}
|
|
32820
32815
|
const somaPct = ccs.reduce((acc, cc) => acc + (cc.percentual || 0), 0);
|
|
32821
32816
|
const somaValor = ccs.reduce((acc, cc) => acc + (cc.valor || 0), 0);
|
|
@@ -32930,14 +32925,14 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32930
32925
|
}
|
|
32931
32926
|
getGridColumns() {
|
|
32932
32927
|
return [
|
|
32933
|
-
{ field: 'contaFinanceira', header:
|
|
32934
|
-
{ field: 'percentual', header:
|
|
32935
|
-
{ field: 'valorRateadoConta', header:
|
|
32928
|
+
{ field: 'contaFinanceira', header: 'erpx.rateio_editor.conta_financeira' },
|
|
32929
|
+
{ field: 'percentual', header: 'erpx.rateio_editor.percentual' },
|
|
32930
|
+
{ field: 'valorRateadoConta', header: 'erpx.rateio_editor.valor' }
|
|
32936
32931
|
];
|
|
32937
32932
|
}
|
|
32938
|
-
emitChange() {
|
|
32933
|
+
emitChange(isDirty = true) {
|
|
32939
32934
|
this.change.emit({
|
|
32940
|
-
isDirty
|
|
32935
|
+
isDirty,
|
|
32941
32936
|
isValid: this.isDistribuicaoCompleta(),
|
|
32942
32937
|
rateios: this.contasDataSource
|
|
32943
32938
|
});
|
|
@@ -32945,8 +32940,6 @@ let ErpRateioEditorComponent = ErpRateioEditorComponent_1 = class ErpRateioEdito
|
|
|
32945
32940
|
};
|
|
32946
32941
|
/** Valor de anaSin que indica registro sintético (não analítico). */
|
|
32947
32942
|
ErpRateioEditorComponent.ANA_SIN_SINTETICO = 'VS';
|
|
32948
|
-
/** Critério de rateio que não distribui por centro de custo (Nenhum). */
|
|
32949
|
-
ErpRateioEditorComponent.CRITERIO_SEM_CENTRO_CUSTO = 'V5';
|
|
32950
32943
|
ErpRateioEditorComponent.ctorParameters = () => [
|
|
32951
32944
|
{ type: FormBuilder },
|
|
32952
32945
|
{ type: ErpRateioEditorService },
|
|
@@ -33030,7 +33023,7 @@ __decorate([
|
|
|
33030
33023
|
ErpRateioEditorComponent = ErpRateioEditorComponent_1 = __decorate([
|
|
33031
33024
|
Component({
|
|
33032
33025
|
selector: 'erp-rateio-editor',
|
|
33033
|
-
template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\">\n <!-- Se\u00E7\u00E3o 1: Informa\u00E7\u00F5es do movimento -->\n <div class=\"sds-section-title\" *ngIf=\"isReady\">\n {{ 'erpx.rateio_editor.titulo' | translate }}\n </div>\n\n <div class=\"ui-g custom-stats\" *ngIf=\"isReady\">\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card\n [animateNumbers]=\"true\"\n color=\"#0C9348\"\n [lightMode]=\"true\"\n [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"'erpx.rateio_editor.valor_base' | translate\"\n [value]=\"valorBase | numeric:numberFormatOptions | async\"\n ></s-stats-card>\n </div>\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card\n [animateNumbers]=\"true\"\n color=\"#428BCA\"\n [lightMode]=\"true\"\n [lightVersion]=\"true\"\n iconClass=\"far fa-percent\"\n [label]=\"'erpx.rateio_editor.percentual_restante' | translate\"\n [value]=\"percentualRestanteDisplay + '%'\"\n ></s-stats-card>\n </div>\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card\n [animateNumbers]=\"true\"\n [color]=\"distribuicaoCompleta ? '#0C9348' : '#C13018'\"\n [lightMode]=\"true\"\n [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"'erpx.rateio_editor.valor_restante' | translate\"\n [value]=\"valorRestanteDisplay | numeric:numberFormatOptions | async\"\n ></s-stats-card>\n </div>\n </div>\n\n <!-- Se\u00E7\u00E3o 2: Tabela de rateios -->\n <div class=\"sds-section-title\" *ngIf=\"isReady\">\n {{ 'erpx.rateio_editor.lista_rateios' | translate }}\n </div>\n\n <s-empty-state\n *ngIf=\"isReady && contasDataSource?.length === 0\"\n iconClass=\"far fa-dollar-sign\"\n [title]=\"'erpx.rateio_editor.sem_rateios_titulo' | translate\"\n [description]=\"'erpx.rateio_editor.sem_rateios_descricao' | translate\"\n [showPrimaryAction]=\"!effectiveReadOnly\"\n [primaryActionLabel]=\"'erpx.rateio_editor.adicionar_conta' | translate\"\n (primaryAction)=\"openContaDialog()\"\n [showSecondaryAction]=\"!effectiveReadOnly && showSugestaoButton\"\n [secondaryActionLabel]=\"'erpx.rateio_editor.sugerir_rateio' | translate\"\n (secondaryAction)=\"onSugerir()\"\n ></s-empty-state>\n\n <div class=\"ui-g\" *ngIf=\"isReady && contasDataSource?.length > 0\">\n <div class=\"ui-g-12\" *ngIf=\"!effectiveReadOnly\">\n <s-button\n [label]=\"'erpx.rateio_editor.adicionar_conta' | translate\"\n iconClass=\"fa fa-plus\"\n (onClick)=\"openContaDialog()\"\n ></s-button>\n <s-button\n *ngIf=\"showSugestaoButton\"\n [label]=\"'erpx.rateio_editor.sugerir_rateio' | translate\"\n [priority]=\"ButtonPriority.Secondary\"\n iconClass=\"fa fa-magic\"\n (onClick)=\"onSugerir()\"\n ></s-button>\n <s-button\n [label]=\"'erpx.rateio_editor.remover_conta' | translate\"\n [priority]=\"ButtonPriority.Secondary\"\n (onClick)=\"onDeleteSelected()\"\n [disabled]=\"!selection.length\"\n ></s-button>\n </div>\n\n <div class=\"ui-g-12\">\n <p-table\n #tableRateio\n [value]=\"contasDataSource\"\n [columns]=\"gridColumns\"\n dataKey=\"idContaFinanceira\"\n [resizableColumns]=\"true\"\n [totalRecords]=\"contasDataSource.length\"\n [(selection)]=\"selection\"\n [paginator]=\"false\"\n [rows]=\"10\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th scope=\"col\" style=\"width: 3em\"></th>\n <th scope=\"col\" class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableHeaderCheckbox *ngIf=\"!effectiveReadOnly\"></p-tableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of columns\" scope=\"col\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n </div>\n </th>\n <th scope=\"col\" *ngIf=\"!effectiveReadOnly\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ 'erpx.rateio_editor.acoes' | translate }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td style=\"width: 3em; text-align: center\">\n <a *ngIf=\"rowData.rateiosCCusto?.length || (!effectiveReadOnly && requiresCentroCusto)\" [pRowToggler]=\"rowData\" role=\"button\" tabindex=\"0\">\n <i [class]=\"expanded ? 'fa fa-minus' : 'fa fa-plus'\"></i>\n </a>\n </td>\n <td class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableCheckbox *ngIf=\"!effectiveReadOnly\" [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td>{{ rowData.contaFinanceira || rowData.idContaFinanceira }}</td>\n <td style=\"text-align: right\">{{ rowData.percentual }}</td>\n <td style=\"text-align: right\">{{ rowData.valorRateadoConta | numeric:numberFormatOptions | async }}</td>\n <td *ngIf=\"!effectiveReadOnly\">\n <s-button\n [auxiliary]=\"true\"\n [priority]=\"ButtonPriority.Default\"\n [size]=\"ButtonSize.Small\"\n iconClass=\"fa fa-pencil\"\n [label]=\"'erpx.rateio_editor.editar' | translate\"\n (onClick)=\"openContaDialog(getContaIndex(rowData))\"\n ></s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"rowexpansion\" let-rowData let-rowIndex=\"rowIndex\">\n <tr>\n <td [attr.colspan]=\"effectiveReadOnly ? gridColumns.length + 2 : gridColumns.length + 3\">\n <div class=\"ui-g\" style=\"padding: 8px 16px\">\n <div class=\"ui-g-12 rateio-cc-toolbar\" *ngIf=\"!effectiveReadOnly\">\n <s-button\n [label]=\"'erpx.rateio_editor.adicionar_centro_custo' | translate\"\n iconClass=\"fa fa-plus\"\n (onClick)=\"openCCDialog(getContaIndex(rowData))\"\n ></s-button>\n <s-button\n [label]=\"'erpx.rateio_editor.remover_centro_custo' | translate\"\n [priority]=\"ButtonPriority.Secondary\"\n (onClick)=\"onDeleteSelectedCC(rowData)\"\n [disabled]=\"!(ccSelection[rowData.idContaFinanceira]?.length)\"\n ></s-button>\n </div>\n <div class=\"ui-g-12\">\n <p-table\n [value]=\"rowData.rateiosCCusto\"\n dataKey=\"idCentroCusto\"\n [(selection)]=\"ccSelection[rowData.idContaFinanceira]\"\n [responsive]=\"true\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th scope=\"col\" class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableHeaderCheckbox *ngIf=\"!effectiveReadOnly\"></p-tableHeaderCheckbox>\n </th>\n <th scope=\"col\">{{ 'erpx.rateio_editor.centro_custo' | translate }}</th>\n <th scope=\"col\">{{ 'erpx.rateio_editor.percentual' | translate }}</th>\n <th scope=\"col\">{{ 'erpx.rateio_editor.valor' | translate }}</th>\n <th scope=\"col\" *ngIf=\"!effectiveReadOnly\">{{ 'erpx.rateio_editor.acoes' | translate }}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cc let-ccIndex=\"rowIndex\">\n <tr>\n <td class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableCheckbox *ngIf=\"!effectiveReadOnly\" [value]=\"cc\"></p-tableCheckbox>\n </td>\n <td>{{ cc.descCCusto || cc.idCentroCusto }}</td>\n <td style=\"text-align: right\">{{ cc.percentual }}</td>\n <td style=\"text-align: right\">{{ cc.valor | numeric:numberFormatOptions | async }}</td>\n <td *ngIf=\"!effectiveReadOnly\">\n <s-button\n [auxiliary]=\"true\"\n [priority]=\"ButtonPriority.Default\"\n [size]=\"ButtonSize.Small\"\n iconClass=\"fa fa-pencil\"\n [label]=\"'erpx.rateio_editor.editar' | translate\"\n (onClick)=\"openCCDialog(getContaIndex(rowData), getCCIndex(rowData, cc))\"\n ></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"effectiveReadOnly ? 3 : 5\">\n {{ 'erpx.rateio_editor.sem_centros_custo' | translate }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <!-- Bot\u00F5es de a\u00E7\u00E3o -->\n <div *ngIf=\"isReady\" class=\"ui-g rateio-editor-actions\">\n <div class=\"ui-g-12\">\n <s-button\n *ngIf=\"!effectiveReadOnly && !isStandalone\"\n priority=\"primary\"\n iconClass=\"fa fa-check\"\n [label]=\"'erpx.rateio_editor.salvar' | translate\"\n (onClick)=\"onSalvar()\"\n ></s-button>\n </div>\n </div>\n</s-loading-state>\n\n<!-- Modal: Adicionar/Editar Conta Financeira -->\n<p-dialog\n [header]=\"'erpx.rateio_editor.adicionar_conta' | translate\"\n appendTo=\"body\"\n [modal]=\"true\"\n [(visible)]=\"displayContaDialog\"\n (onHide)=\"onHideContaDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"false\"\n styleClass=\"custom-dialog\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n [style]=\"{width: '40%'}\"\n>\n <form *ngIf=\"contaDialogFormGroup\" [formGroup]=\"contaDialogFormGroup\" (ngSubmit)=\"onSaveContaDialog()\">\n <div class=\"ui-fluid\">\n <s-dynamic-form\n [fields]=\"contaDialogFields\"\n [form]=\"contaDialogFormGroup\"\n [errorMessages]=\"{\n required: ('erpx.rateio_editor.erro_obrigatorio' | translate),\n duplicate: ('erpx.rateio_editor.conta_duplicada' | translate),\n contaSintetica: ('erpx.rateio_editor.erro_conta_sintetica' | translate),\n max: ('erpx.rateio_editor.erro_valor_maximo_conta' | translate)\n }\"\n ></s-dynamic-form>\n </div>\n </form>\n <p-footer>\n <s-button\n id=\"dialog-conta-save\"\n type=\"button\"\n priority=\"primary\"\n [label]=\"'erpx.rateio_editor.salvar' | translate\"\n (onClick)=\"onSaveContaDialog()\"\n ></s-button>\n <s-button\n id=\"dialog-conta-cancel\"\n type=\"button\"\n priority=\"secondary\"\n [label]=\"'erpx.rateio_editor.cancelar' | translate\"\n (onClick)=\"onHideContaDialog()\"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<!-- Modal: Adicionar/Editar Centro de Custo -->\n<p-dialog\n [header]=\"'erpx.rateio_editor.adicionar_centro_custo' | translate\"\n appendTo=\"body\"\n [modal]=\"true\"\n [(visible)]=\"displayCCDialog\"\n (onHide)=\"onHideCCDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"false\"\n styleClass=\"custom-dialog\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n [style]=\"{width: '40%'}\"\n>\n <form *ngIf=\"ccDialogFormGroup\" [formGroup]=\"ccDialogFormGroup\" (ngSubmit)=\"onSaveCCDialog()\">\n <div class=\"ui-fluid\">\n <s-dynamic-form\n [fields]=\"ccDialogFields\"\n [form]=\"ccDialogFormGroup\"\n [errorMessages]=\"{\n required: ('erpx.rateio_editor.erro_obrigatorio' | translate),\n duplicate: ('erpx.rateio_editor.centro_custo_duplicado' | translate),\n centroCustoInvalido: ('erpx.rateio_editor.erro_centro_custo_invalido' | translate),\n max: ('erpx.rateio_editor.erro_maximo_centro_custo' | translate)\n }\"\n ></s-dynamic-form>\n </div>\n </form>\n <p-footer>\n <s-button\n id=\"dialog-cc-save\"\n type=\"button\"\n priority=\"primary\"\n [label]=\"'erpx.rateio_editor.salvar' | translate\"\n (onClick)=\"onSaveCCDialog()\"\n ></s-button>\n <s-button\n id=\"dialog-cc-cancel\"\n type=\"button\"\n priority=\"secondary\"\n [label]=\"'erpx.rateio_editor.cancelar' | translate\"\n (onClick)=\"onHideCCDialog()\"\n ></s-button>\n </p-footer>\n</p-dialog>\n",
|
|
33026
|
+
template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\">\n <!-- Se\u00E7\u00E3o 1: Informa\u00E7\u00F5es do movimento -->\n <div class=\"sds-section-title\" *ngIf=\"isReady\">\n {{ 'erpx.rateio_editor.titulo' | translate }}\n </div>\n\n <div class=\"ui-g custom-stats\" *ngIf=\"isReady\">\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card\n [animateNumbers]=\"true\"\n color=\"#0C9348\"\n [lightMode]=\"true\"\n [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"'erpx.rateio_editor.valor_base' | translate\"\n [value]=\"valorBase | numeric:numberFormatOptions | async\"\n ></s-stats-card>\n </div>\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card\n [animateNumbers]=\"true\"\n color=\"#428BCA\"\n [lightMode]=\"true\"\n [lightVersion]=\"true\"\n iconClass=\"far fa-percent\"\n [label]=\"'erpx.rateio_editor.percentual_restante' | translate\"\n [value]=\"percentualRestanteDisplay + '%'\"\n ></s-stats-card>\n </div>\n <div class=\"ui-sm-12 ui-md-4\">\n <s-stats-card\n [animateNumbers]=\"true\"\n [color]=\"distribuicaoCompleta ? '#0C9348' : '#C13018'\"\n [lightMode]=\"true\"\n [lightVersion]=\"true\"\n iconClass=\"far fa-dollar-sign\"\n [label]=\"'erpx.rateio_editor.valor_restante' | translate\"\n [value]=\"valorRestanteDisplay | numeric:numberFormatOptions | async\"\n ></s-stats-card>\n </div>\n </div>\n\n <!-- Se\u00E7\u00E3o 2: Tabela de rateios -->\n <div class=\"sds-section-title\" *ngIf=\"isReady\">\n {{ 'erpx.rateio_editor.lista_rateios' | translate }}\n </div>\n\n <s-empty-state\n *ngIf=\"isReady && contasDataSource?.length === 0\"\n iconClass=\"far fa-dollar-sign\"\n [title]=\"'erpx.rateio_editor.sem_rateios_titulo' | translate\"\n [description]=\"'erpx.rateio_editor.sem_rateios_descricao' | translate\"\n [showPrimaryAction]=\"!effectiveReadOnly\"\n [primaryActionLabel]=\"'erpx.rateio_editor.adicionar_conta' | translate\"\n (primaryAction)=\"openContaDialog()\"\n [showSecondaryAction]=\"!effectiveReadOnly && showSugestaoButton\"\n [secondaryActionLabel]=\"'erpx.rateio_editor.sugerir_rateio' | translate\"\n (secondaryAction)=\"onSugerir()\"\n ></s-empty-state>\n\n <div class=\"ui-g\" *ngIf=\"isReady && contasDataSource?.length > 0\">\n <div class=\"ui-g-12\" *ngIf=\"!effectiveReadOnly\">\n <s-button\n [label]=\"'erpx.rateio_editor.adicionar_conta' | translate\"\n iconClass=\"fa fa-plus\"\n (onClick)=\"openContaDialog()\"\n ></s-button>\n <s-button\n *ngIf=\"showSugestaoButton\"\n [label]=\"'erpx.rateio_editor.sugerir_rateio' | translate\"\n [priority]=\"ButtonPriority.Secondary\"\n iconClass=\"fa fa-magic\"\n (onClick)=\"onSugerir()\"\n ></s-button>\n <s-button\n [label]=\"'erpx.rateio_editor.remover_conta' | translate\"\n [priority]=\"ButtonPriority.Secondary\"\n (onClick)=\"onDeleteSelected()\"\n [disabled]=\"!selection.length\"\n ></s-button>\n </div>\n\n <div class=\"ui-g-12\">\n <p-table\n #tableRateio\n [value]=\"contasDataSource\"\n [columns]=\"gridColumns\"\n dataKey=\"idContaFinanceira\"\n [resizableColumns]=\"true\"\n [totalRecords]=\"contasDataSource.length\"\n [(selection)]=\"selection\"\n [paginator]=\"false\"\n [rows]=\"10\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th scope=\"col\" style=\"width: 3em\"></th>\n <th scope=\"col\" class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableHeaderCheckbox *ngIf=\"!effectiveReadOnly\"></p-tableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of columns\" scope=\"col\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header | translate }}</span>\n </div>\n </th>\n <th scope=\"col\" *ngIf=\"!effectiveReadOnly\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ 'erpx.rateio_editor.acoes' | translate }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td style=\"width: 3em; text-align: center\">\n <a *ngIf=\"rowData.rateiosCCusto?.length || !effectiveReadOnly\" [pRowToggler]=\"rowData\" role=\"button\" tabindex=\"0\">\n <i [class]=\"expanded ? 'fa fa-minus' : 'fa fa-plus'\"></i>\n </a>\n </td>\n <td class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableCheckbox *ngIf=\"!effectiveReadOnly\" [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td>{{ rowData.contaFinanceira || rowData.idContaFinanceira }}</td>\n <td style=\"text-align: right\">{{ rowData.percentual }}</td>\n <td style=\"text-align: right\">{{ rowData.valorRateadoConta | numeric:numberFormatOptions | async }}</td>\n <td *ngIf=\"!effectiveReadOnly\">\n <s-button\n [auxiliary]=\"true\"\n [priority]=\"ButtonPriority.Default\"\n [size]=\"ButtonSize.Small\"\n iconClass=\"fa fa-pencil\"\n [label]=\"'erpx.rateio_editor.editar' | translate\"\n (onClick)=\"openContaDialog(getContaIndex(rowData))\"\n ></s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"rowexpansion\" let-rowData let-rowIndex=\"rowIndex\">\n <tr>\n <td [attr.colspan]=\"effectiveReadOnly ? gridColumns.length + 2 : gridColumns.length + 3\">\n <div class=\"ui-g\" style=\"padding: 8px 16px\">\n <div class=\"ui-g-12 rateio-cc-toolbar\" *ngIf=\"!effectiveReadOnly\">\n <s-button\n [label]=\"'erpx.rateio_editor.adicionar_centro_custo' | translate\"\n iconClass=\"fa fa-plus\"\n (onClick)=\"openCCDialog(getContaIndex(rowData))\"\n ></s-button>\n <s-button\n [label]=\"'erpx.rateio_editor.remover_centro_custo' | translate\"\n [priority]=\"ButtonPriority.Secondary\"\n (onClick)=\"onDeleteSelectedCC(rowData)\"\n [disabled]=\"!(ccSelection[rowData.idContaFinanceira]?.length)\"\n ></s-button>\n </div>\n <div class=\"ui-g-12\">\n <p-table\n [value]=\"rowData.rateiosCCusto\"\n dataKey=\"idCentroCusto\"\n [(selection)]=\"ccSelection[rowData.idContaFinanceira]\"\n [responsive]=\"true\"\n >\n <ng-template pTemplate=\"header\">\n <tr>\n <th scope=\"col\" class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableHeaderCheckbox *ngIf=\"!effectiveReadOnly\"></p-tableHeaderCheckbox>\n </th>\n <th scope=\"col\">{{ 'erpx.rateio_editor.centro_custo' | translate }}</th>\n <th scope=\"col\">{{ 'erpx.rateio_editor.percentual' | translate }}</th>\n <th scope=\"col\">{{ 'erpx.rateio_editor.valor' | translate }}</th>\n <th scope=\"col\" *ngIf=\"!effectiveReadOnly\">{{ 'erpx.rateio_editor.acoes' | translate }}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cc let-ccIndex=\"rowIndex\">\n <tr>\n <td class=\"col-checkbox\" style=\"width: 50px\">\n <p-tableCheckbox *ngIf=\"!effectiveReadOnly\" [value]=\"cc\"></p-tableCheckbox>\n </td>\n <td>{{ cc.descCCusto || cc.idCentroCusto }}</td>\n <td style=\"text-align: right\">{{ cc.percentual }}</td>\n <td style=\"text-align: right\">{{ cc.valor | numeric:numberFormatOptions | async }}</td>\n <td *ngIf=\"!effectiveReadOnly\">\n <s-button\n [auxiliary]=\"true\"\n [priority]=\"ButtonPriority.Default\"\n [size]=\"ButtonSize.Small\"\n iconClass=\"fa fa-pencil\"\n [label]=\"'erpx.rateio_editor.editar' | translate\"\n (onClick)=\"openCCDialog(getContaIndex(rowData), getCCIndex(rowData, cc))\"\n ></s-button>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"effectiveReadOnly ? 3 : 5\">\n {{ 'erpx.rateio_editor.sem_centros_custo' | translate }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <!-- Bot\u00F5es de a\u00E7\u00E3o -->\n <div *ngIf=\"isReady\" class=\"ui-g rateio-editor-actions\">\n <div class=\"ui-g-12\">\n <s-button\n *ngIf=\"!effectiveReadOnly && !isStandalone\"\n priority=\"primary\"\n iconClass=\"fa fa-check\"\n [label]=\"'erpx.rateio_editor.salvar' | translate\"\n (onClick)=\"onSalvar()\"\n ></s-button>\n </div>\n </div>\n</s-loading-state>\n\n<!-- Modal: Adicionar/Editar Conta Financeira -->\n<p-dialog\n [header]=\"'erpx.rateio_editor.adicionar_conta' | translate\"\n appendTo=\"body\"\n [modal]=\"true\"\n [(visible)]=\"displayContaDialog\"\n (onHide)=\"onHideContaDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"false\"\n styleClass=\"custom-dialog\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n [style]=\"{width: '40%'}\"\n>\n <form *ngIf=\"contaDialogFormGroup\" [formGroup]=\"contaDialogFormGroup\" (ngSubmit)=\"onSaveContaDialog()\">\n <div class=\"ui-fluid\">\n <s-dynamic-form\n [fields]=\"contaDialogFields\"\n [form]=\"contaDialogFormGroup\"\n [errorMessages]=\"{\n required: ('erpx.rateio_editor.erro_obrigatorio' | translate),\n duplicate: ('erpx.rateio_editor.conta_duplicada' | translate),\n contaSintetica: ('erpx.rateio_editor.erro_conta_sintetica' | translate),\n max: ('erpx.rateio_editor.erro_valor_maximo_conta' | translate)\n }\"\n ></s-dynamic-form>\n </div>\n </form>\n <p-footer>\n <s-button\n id=\"dialog-conta-save\"\n type=\"button\"\n priority=\"primary\"\n [label]=\"'erpx.rateio_editor.salvar' | translate\"\n (onClick)=\"onSaveContaDialog()\"\n ></s-button>\n <s-button\n id=\"dialog-conta-cancel\"\n type=\"button\"\n priority=\"secondary\"\n [label]=\"'erpx.rateio_editor.cancelar' | translate\"\n (onClick)=\"onHideContaDialog()\"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<!-- Modal: Adicionar/Editar Centro de Custo -->\n<p-dialog\n [header]=\"'erpx.rateio_editor.adicionar_centro_custo' | translate\"\n appendTo=\"body\"\n [modal]=\"true\"\n [(visible)]=\"displayCCDialog\"\n (onHide)=\"onHideCCDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"false\"\n styleClass=\"custom-dialog\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n [style]=\"{width: '40%'}\"\n>\n <form *ngIf=\"ccDialogFormGroup\" [formGroup]=\"ccDialogFormGroup\" (ngSubmit)=\"onSaveCCDialog()\">\n <div class=\"ui-fluid\">\n <s-dynamic-form\n [fields]=\"ccDialogFields\"\n [form]=\"ccDialogFormGroup\"\n [errorMessages]=\"{\n required: ('erpx.rateio_editor.erro_obrigatorio' | translate),\n duplicate: ('erpx.rateio_editor.centro_custo_duplicado' | translate),\n centroCustoInvalido: ('erpx.rateio_editor.erro_centro_custo_invalido' | translate),\n max: ('erpx.rateio_editor.erro_maximo_centro_custo' | translate)\n }\"\n ></s-dynamic-form>\n </div>\n </form>\n <p-footer>\n <s-button\n id=\"dialog-cc-save\"\n type=\"button\"\n priority=\"primary\"\n [label]=\"'erpx.rateio_editor.salvar' | translate\"\n (onClick)=\"onSaveCCDialog()\"\n ></s-button>\n <s-button\n id=\"dialog-cc-cancel\"\n type=\"button\"\n priority=\"secondary\"\n [label]=\"'erpx.rateio_editor.cancelar' | translate\"\n (onClick)=\"onHideCCDialog()\"\n ></s-button>\n </p-footer>\n</p-dialog>\n",
|
|
33034
33027
|
styles: [":host ::ng-deep .rateio-cc-toolbar .s-button-text{overflow:visible;-ms-flex-pack:start;justify-content:flex-start}"]
|
|
33035
33028
|
})
|
|
33036
33029
|
], ErpRateioEditorComponent);
|
|
@@ -33129,6 +33122,7 @@ const fallback = {
|
|
|
33129
33122
|
"erpx.rateio_editor.remover_conta": "Remover conta",
|
|
33130
33123
|
"erpx.rateio_editor.adicionar_centro_custo": "Adicionar centro de custo",
|
|
33131
33124
|
"erpx.rateio_editor.remover_centro_custo": "Remover centro de custo",
|
|
33125
|
+
"erpx.rateio_editor.nenhum_centro_custo_selecionado": "Selecione ao menos um centro de custo para remover.",
|
|
33132
33126
|
"erpx.rateio_editor.sugerir_rateio": "Sugerir rateio",
|
|
33133
33127
|
"erpx.rateio_editor.salvar": "Salvar",
|
|
33134
33128
|
"erpx.rateio_editor.cancelar": "Cancelar",
|
|
@@ -33141,7 +33135,32 @@ const fallback = {
|
|
|
33141
33135
|
"erpx.rateio_editor.erro_salvar": "Erro ao salvar rateio",
|
|
33142
33136
|
"erpx.rateio_editor.erro_contexto_incompleto": "Não foi possível salvar: o contexto do rateio (filial e critério) não foi informado.",
|
|
33143
33137
|
"erpx.rateio_editor.erro_sugerir": "Erro ao sugerir rateio",
|
|
33144
|
-
"erpx.rateio_editor.erro_carregar": "Erro ao carregar rateio"
|
|
33138
|
+
"erpx.rateio_editor.erro_carregar": "Erro ao carregar rateio",
|
|
33139
|
+
"erpx.rateio_editor.lista_rateios": "Rateios",
|
|
33140
|
+
"erpx.rateio_editor.sem_rateios_titulo": "Nenhum rateio cadastrado",
|
|
33141
|
+
"erpx.rateio_editor.sem_rateios_descricao": "Adicione contas financeiras ou utilize a sugestão automática",
|
|
33142
|
+
"erpx.rateio_editor.erro_obrigatorio": "Campo obrigatório",
|
|
33143
|
+
"erpx.rateio_editor.acoes": "Ações",
|
|
33144
|
+
"erpx.rateio_editor.percentual": "Percentual",
|
|
33145
|
+
"erpx.rateio_editor.conta_financeira": "Conta financeira",
|
|
33146
|
+
"erpx.rateio_editor.valor": "Valor",
|
|
33147
|
+
"erpx.rateio_editor.centros_custo": "Centros de custo",
|
|
33148
|
+
"erpx.rateio_editor.centros_custo_da_conta": "Centros de custo da conta",
|
|
33149
|
+
"erpx.rateio_editor.centro_custo": "Centro de custo",
|
|
33150
|
+
"erpx.rateio_editor.sem_centros_custo": "Nenhum centro de custo vinculado",
|
|
33151
|
+
"erpx.rateio_editor.editar": "Editar",
|
|
33152
|
+
"erpx.rateio_editor.excluir": "Excluir",
|
|
33153
|
+
"erpx.rateio_editor.sem_contexto_para_sugerir": "Filial e critério de rateio são obrigatórios para sugerir.",
|
|
33154
|
+
"erpx.rateio_editor.conta_duplicada": "Esta conta financeira já foi adicionada.",
|
|
33155
|
+
"erpx.rateio_editor.centro_custo_duplicado": "Este centro de custo já foi adicionado a esta conta.",
|
|
33156
|
+
"erpx.rateio_editor.erro_conta_sintetica": "A conta financeira selecionada é sintética. Selecione uma conta analítica.",
|
|
33157
|
+
"erpx.rateio_editor.erro_centro_custo_invalido": "O centro de custo selecionado é inválido (sintético ou não aceita rateio).",
|
|
33158
|
+
"erpx.rateio_editor.erro_distribuicao_incompleta": "A distribuição do rateio está incompleta. Os percentuais e valores devem ser totalmente distribuídos.",
|
|
33159
|
+
"erpx.rateio_editor.erro_centro_custo_obrigatorio": "Cada conta financeira deve ter ao menos um centro de custo vinculado.",
|
|
33160
|
+
"erpx.rateio_editor.erro_valor_maximo_conta": "O percentual ou valor informado excede o restante disponível.",
|
|
33161
|
+
"erpx.rateio_editor.erro_valor_maximo_centro_custo": "O valor não pode ser maior que o valor rateado da conta.",
|
|
33162
|
+
"erpx.rateio_editor.erro_maximo_centro_custo": "O valor ou percentual informado excede o restante disponível para esta conta.",
|
|
33163
|
+
"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."
|
|
33145
33164
|
};
|
|
33146
33165
|
|
|
33147
33166
|
/**
|