@senior-gestao-empresarial/erpx-components 4.6.1 → 4.7.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.
Files changed (43) hide show
  1. package/bundles/senior-gestao-empresarial-erpx-components.umd.js +287 -2
  2. package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
  3. package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +1 -1
  4. package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
  5. package/components/tributos/erp-tributos.component.d.ts +2 -0
  6. package/components/tributos/erp-tributos.types.d.ts +3 -0
  7. package/components/tributos/rules/types/schemas/outgoing-invoice.schema.d.ts +2 -0
  8. package/components/tributos/tax-reform-utilities.d.ts +1 -1
  9. package/components/tributos/types/debit-invoice-type.d.ts +1 -1
  10. package/esm2015/components/tributos/erp-tributos.component.js +75 -2
  11. package/esm2015/components/tributos/erp-tributos.types.js +4 -1
  12. package/esm2015/components/tributos/mappings/enum-tip-imp-cst-mapping.js +3 -1
  13. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +29 -1
  14. package/esm2015/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +17 -1
  15. package/esm2015/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +35 -1
  16. package/esm2015/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +35 -1
  17. package/esm2015/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +15 -1
  18. package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +29 -1
  19. package/esm2015/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +3 -1
  20. package/esm2015/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +3 -1
  21. package/esm2015/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +3 -1
  22. package/esm2015/components/tributos/tax-reform-utilities.js +6 -2
  23. package/esm2015/components/tributos/types/debit-invoice-type.js +1 -1
  24. package/esm5/components/tributos/erp-tributos.component.js +77 -2
  25. package/esm5/components/tributos/erp-tributos.types.js +4 -1
  26. package/esm5/components/tributos/mappings/enum-tip-imp-cst-mapping.js +3 -1
  27. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +29 -1
  28. package/esm5/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +24 -1
  29. package/esm5/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +59 -1
  30. package/esm5/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +59 -1
  31. package/esm5/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +15 -1
  32. package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +29 -1
  33. package/esm5/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +3 -1
  34. package/esm5/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +3 -1
  35. package/esm5/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +3 -1
  36. package/esm5/components/tributos/tax-reform-utilities.js +6 -2
  37. package/esm5/components/tributos/types/debit-invoice-type.js +1 -1
  38. package/fesm2015/senior-gestao-empresarial-erpx-components.js +230 -2
  39. package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
  40. package/fesm5/senior-gestao-empresarial-erpx-components.js +287 -2
  41. package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
  42. package/package.json +1 -1
  43. package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
@@ -803,6 +803,7 @@
803
803
  EnumGrupoTributo["IS"] = "is";
804
804
  EnumGrupoTributo["CBS_IBS_ESTORNO_CREDITO"] = "cbs_ibs_estorno_credito";
805
805
  EnumGrupoTributo["CBS_IBS_AJUSTE"] = "cbs_ibs_ajuste";
806
+ EnumGrupoTributo["CBS_IBS_TRANSFERENCIA_CREDITO"] = "cbs_ibs_transferencia_credito";
806
807
  EnumGrupoTributo["ICMS"] = "icms";
807
808
  EnumGrupoTributo["ICMS_ST"] = "icms_st";
808
809
  EnumGrupoTributo["IPI"] = "ipi";
@@ -835,6 +836,8 @@
835
836
  EnumTipoTributo["IBS_CREDITO_PRESUMIDO"] = "IBS_CREDITO_PRESUMIDO";
836
837
  EnumTipoTributo["IBS_ESTORNO_CREDITO"] = "IBS_ESTORNO_CREDITO";
837
838
  EnumTipoTributo["IBS_AJUSTE"] = "IBS_AJUSTE";
839
+ EnumTipoTributo["CBS_TRANSFERENCIA_CREDITO"] = "CBS_TRANSFERENCIA_CREDITO";
840
+ EnumTipoTributo["IBS_TRANSFERENCIA_CREDITO"] = "IBS_TRANSFERENCIA_CREDITO";
838
841
  EnumTipoTributo["IS"] = "IS";
839
842
  EnumTipoTributo["PIS_FATURAMENTO"] = "PIS_FATURAMENTO";
840
843
  EnumTipoTributo["PIS_RECUPERAR"] = "PIS_RECUPERAR";
@@ -1025,12 +1028,14 @@
1025
1028
  case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
1026
1029
  case exports.EnumTipoTributo.CBS_ESTORNO_CREDITO:
1027
1030
  case exports.EnumTipoTributo.CBS_AJUSTE:
1031
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
1028
1032
  case exports.EnumTipoTributo.IBS_ESTADUAL:
1029
1033
  case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
1030
1034
  case exports.EnumTipoTributo.IBS_MUNICIPAL:
1031
1035
  case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
1032
1036
  case exports.EnumTipoTributo.IBS_ESTORNO_CREDITO:
1033
1037
  case exports.EnumTipoTributo.IBS_AJUSTE:
1038
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
1034
1039
  return exports.EnumTipImpCst.CBS_IBS;
1035
1040
  case exports.EnumTipoTributo.IS:
1036
1041
  return exports.EnumTipImpCst.IS;
@@ -1058,7 +1063,9 @@
1058
1063
  tax === exports.EnumTipoTributo.CBS_ESTORNO_CREDITO ||
1059
1064
  tax === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO ||
1060
1065
  tax === exports.EnumTipoTributo.CBS_AJUSTE ||
1061
- tax === exports.EnumTipoTributo.IBS_AJUSTE);
1066
+ tax === exports.EnumTipoTributo.IBS_AJUSTE ||
1067
+ tax === exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO ||
1068
+ tax === exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO);
1062
1069
  };
1063
1070
  var getBaseTaxByGroupTax = function (groupTax) {
1064
1071
  switch (groupTax) {
@@ -1076,6 +1083,8 @@
1076
1083
  return exports.EnumTipoTributo.CBS_ESTORNO_CREDITO;
1077
1084
  case exports.EnumGrupoTributo.CBS_IBS_AJUSTE:
1078
1085
  return exports.EnumTipoTributo.CBS_AJUSTE;
1086
+ case exports.EnumGrupoTributo.CBS_IBS_TRANSFERENCIA_CREDITO:
1087
+ return exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO;
1079
1088
  default:
1080
1089
  return null;
1081
1090
  }
@@ -1777,6 +1786,29 @@
1777
1786
  });
1778
1787
  }
1779
1788
  break;
1789
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
1790
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
1791
+ {
1792
+ var dataKey_3 = formField.find(function (_a) {
1793
+ var name = _a.name;
1794
+ return name === 'classificacaoTributaria';
1795
+ }).dataKey;
1796
+ rxjs.combineLatest([
1797
+ formGroup
1798
+ .get('classificacaoTributaria')
1799
+ .valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria')
1800
+ .value), operators.distinctUntilChanged(function (old, current) {
1801
+ return (old === null || old === void 0 ? void 0 : old[dataKey_3]) === (current === null || current === void 0 ? void 0 : current[dataKey_3]);
1802
+ }))
1803
+ ])
1804
+ .pipe(operators.skip(1), operators.map(function () {
1805
+ return new BigNumber(formGroup.get('valor').value);
1806
+ }), operators.filter(function (taxAmount) { return taxAmount.isNaN(); }))
1807
+ .subscribe(function () {
1808
+ formGroup.get('valor').setValue(0);
1809
+ });
1810
+ }
1811
+ break;
1780
1812
  default:
1781
1813
  throw new Error("Regra TaxAmountCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
1782
1814
  }
@@ -2031,6 +2063,64 @@
2031
2063
  });
2032
2064
  }
2033
2065
  break;
2066
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
2067
+ {
2068
+ var _g = group.item.find(function (_a) {
2069
+ var name = _a.name;
2070
+ return name === exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO;
2071
+ }), ibsTransferenciaCreditoFormGroup = _g.formGroup, ibsTransferenciaCreditoFormField = _g.formField;
2072
+ var dataKey_6 = ibsTransferenciaCreditoFormField.find(function (_a) {
2073
+ var name = _a.name;
2074
+ return name === 'classificacaoTributaria';
2075
+ }).dataKey;
2076
+ rxjs.combineLatest([
2077
+ ibsTransferenciaCreditoFormGroup
2078
+ .get('classificacaoTributaria')
2079
+ .valueChanges.pipe(operators.startWith(ibsTransferenciaCreditoFormGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
2080
+ return (old === null || old === void 0 ? void 0 : old[dataKey_6]) === (current === null || current === void 0 ? void 0 : current[dataKey_6]);
2081
+ }))
2082
+ ])
2083
+ .pipe(operators.skip(1), operators.map(function (_a) {
2084
+ var _b = __read(_a, 1), taxClassification = _b[0];
2085
+ return [taxClassification];
2086
+ }))
2087
+ .subscribe(function (_a) {
2088
+ var _b = __read(_a, 1), taxClassification = _b[0];
2089
+ formGroup
2090
+ .get('classificacaoTributaria')
2091
+ .setValue(taxClassification);
2092
+ });
2093
+ }
2094
+ break;
2095
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
2096
+ {
2097
+ var _h = group.item.find(function (_a) {
2098
+ var name = _a.name;
2099
+ return name === exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO;
2100
+ }), cbsTransferenciaCreditoFormGroup = _h.formGroup, cbsTransferenciaCreditoFormField = _h.formField;
2101
+ var dataKey_7 = cbsTransferenciaCreditoFormField.find(function (_a) {
2102
+ var name = _a.name;
2103
+ return name === 'classificacaoTributaria';
2104
+ }).dataKey;
2105
+ rxjs.combineLatest([
2106
+ cbsTransferenciaCreditoFormGroup
2107
+ .get('classificacaoTributaria')
2108
+ .valueChanges.pipe(operators.startWith(cbsTransferenciaCreditoFormGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
2109
+ return (old === null || old === void 0 ? void 0 : old[dataKey_7]) === (current === null || current === void 0 ? void 0 : current[dataKey_7]);
2110
+ }))
2111
+ ])
2112
+ .pipe(operators.skip(1), operators.map(function (_a) {
2113
+ var _b = __read(_a, 1), taxClassification = _b[0];
2114
+ return [taxClassification];
2115
+ }))
2116
+ .subscribe(function (_a) {
2117
+ var _b = __read(_a, 1), taxClassification = _b[0];
2118
+ formGroup
2119
+ .get('classificacaoTributaria')
2120
+ .setValue(taxClassification);
2121
+ });
2122
+ }
2123
+ break;
2034
2124
  default:
2035
2125
  throw new Error("Regra TaxClassificationCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
2036
2126
  }
@@ -2471,6 +2561,64 @@
2471
2561
  });
2472
2562
  }
2473
2563
  break;
2564
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
2565
+ {
2566
+ var _g = group.item.find(function (_a) {
2567
+ var name = _a.name;
2568
+ return name === exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO;
2569
+ }), ibsTransferenciaCreditoFormGroup = _g.formGroup, ibsTransferenciaCreditoFormField = _g.formField;
2570
+ var dataKey_5 = ibsTransferenciaCreditoFormField.find(function (_a) {
2571
+ var name = _a.name;
2572
+ return name === 'situacaoTributaria';
2573
+ }).dataKey;
2574
+ rxjs.combineLatest([
2575
+ ibsTransferenciaCreditoFormGroup
2576
+ .get('situacaoTributaria')
2577
+ .valueChanges.pipe(operators.startWith(ibsTransferenciaCreditoFormGroup.get('situacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
2578
+ return (old === null || old === void 0 ? void 0 : old[dataKey_5]) === (current === null || current === void 0 ? void 0 : current[dataKey_5]);
2579
+ }))
2580
+ ])
2581
+ .pipe(operators.skip(1), operators.map(function (_a) {
2582
+ var _b = __read(_a, 1), taxSituation = _b[0];
2583
+ return [taxSituation];
2584
+ }))
2585
+ .subscribe(function (_a) {
2586
+ var _b = __read(_a, 1), taxSituation = _b[0];
2587
+ formGroup
2588
+ .get('situacaoTributaria')
2589
+ .setValue(taxSituation);
2590
+ });
2591
+ }
2592
+ break;
2593
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
2594
+ {
2595
+ var _h = group.item.find(function (_a) {
2596
+ var name = _a.name;
2597
+ return name === exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO;
2598
+ }), cbsTransferenciaCreditoFormGroup = _h.formGroup, cbsTransferenciaCreditoFormField = _h.formField;
2599
+ var dataKey_6 = cbsTransferenciaCreditoFormField.find(function (_a) {
2600
+ var name = _a.name;
2601
+ return name === 'situacaoTributaria';
2602
+ }).dataKey;
2603
+ rxjs.combineLatest([
2604
+ cbsTransferenciaCreditoFormGroup
2605
+ .get('situacaoTributaria')
2606
+ .valueChanges.pipe(operators.startWith(cbsTransferenciaCreditoFormGroup.get('situacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
2607
+ return (old === null || old === void 0 ? void 0 : old[dataKey_6]) === (current === null || current === void 0 ? void 0 : current[dataKey_6]);
2608
+ }))
2609
+ ])
2610
+ .pipe(operators.skip(1), operators.map(function (_a) {
2611
+ var _b = __read(_a, 1), taxSituation = _b[0];
2612
+ return [taxSituation];
2613
+ }))
2614
+ .subscribe(function (_a) {
2615
+ var _b = __read(_a, 1), taxSituation = _b[0];
2616
+ formGroup
2617
+ .get('situacaoTributaria')
2618
+ .setValue(taxSituation);
2619
+ });
2620
+ }
2621
+ break;
2474
2622
  default:
2475
2623
  throw new Error("Regra TaxSituationCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
2476
2624
  }
@@ -7529,6 +7677,34 @@
7529
7677
  rule: this.taxAmountCalculationRule
7530
7678
  }
7531
7679
  ],
7680
+ _k[exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO] = [
7681
+ {
7682
+ field: exports.EnumCampoTributo.SituacaoTributaria,
7683
+ rule: this.taxSituationCalculationRule
7684
+ },
7685
+ {
7686
+ field: exports.EnumCampoTributo.ClassificacaoTributaria,
7687
+ rule: this.taxClassificationCalculationRule
7688
+ },
7689
+ {
7690
+ field: exports.EnumCampoTributo.Valor,
7691
+ rule: this.taxAmountCalculationRule
7692
+ }
7693
+ ],
7694
+ _k[exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO] = [
7695
+ {
7696
+ field: exports.EnumCampoTributo.SituacaoTributaria,
7697
+ rule: this.taxSituationCalculationRule
7698
+ },
7699
+ {
7700
+ field: exports.EnumCampoTributo.ClassificacaoTributaria,
7701
+ rule: this.taxClassificationCalculationRule
7702
+ },
7703
+ {
7704
+ field: exports.EnumCampoTributo.Valor,
7705
+ rule: this.taxAmountCalculationRule
7706
+ }
7707
+ ],
7532
7708
  _k),
7533
7709
  Delivery: (_l = {},
7534
7710
  _l[exports.EnumTipoTributo.CBS] = [
@@ -13435,6 +13611,8 @@
13435
13611
  break;
13436
13612
  case exports.EnumTipoTributo.CBS_ESTORNO_CREDITO:
13437
13613
  case exports.EnumTipoTributo.IBS_ESTORNO_CREDITO:
13614
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
13615
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
13438
13616
  {
13439
13617
  rxjs.combineLatest([
13440
13618
  formGroup
@@ -13863,6 +14041,8 @@
13863
14041
  break;
13864
14042
  case exports.EnumTipoTributo.CBS_ESTORNO_CREDITO:
13865
14043
  case exports.EnumTipoTributo.IBS_ESTORNO_CREDITO:
14044
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
14045
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
13866
14046
  {
13867
14047
  rxjs.combineLatest([
13868
14048
  formGroup
@@ -14878,6 +15058,8 @@
14878
15058
  break;
14879
15059
  case exports.EnumTipoTributo.CBS_ESTORNO_CREDITO:
14880
15060
  case exports.EnumTipoTributo.IBS_ESTORNO_CREDITO:
15061
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
15062
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
14881
15063
  {
14882
15064
  rxjs.combineLatest([
14883
15065
  formGroup
@@ -21888,6 +22070,34 @@
21888
22070
  rules: [this.taxAmountRequiredValidationRule]
21889
22071
  }
21890
22072
  ],
22073
+ _k[exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO] = [
22074
+ {
22075
+ field: exports.EnumCampoTributo.SituacaoTributaria,
22076
+ rules: [this.taxSituationRequiredValidationRule]
22077
+ },
22078
+ {
22079
+ field: exports.EnumCampoTributo.ClassificacaoTributaria,
22080
+ rules: [this.taxClassificationRequiredValidationRule]
22081
+ },
22082
+ {
22083
+ field: exports.EnumCampoTributo.Valor,
22084
+ rules: [this.taxAmountRequiredValidationRule]
22085
+ }
22086
+ ],
22087
+ _k[exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO] = [
22088
+ {
22089
+ field: exports.EnumCampoTributo.SituacaoTributaria,
22090
+ rules: [this.taxSituationRequiredValidationRule]
22091
+ },
22092
+ {
22093
+ field: exports.EnumCampoTributo.ClassificacaoTributaria,
22094
+ rules: [this.taxClassificationRequiredValidationRule]
22095
+ },
22096
+ {
22097
+ field: exports.EnumCampoTributo.Valor,
22098
+ rules: [this.taxAmountRequiredValidationRule]
22099
+ }
22100
+ ],
21891
22101
  _k),
21892
22102
  Delivery: (_l = {},
21893
22103
  _l[exports.EnumTipoTributo.CBS] = [
@@ -25774,6 +25984,7 @@
25774
25984
  this.menuItemIS = false;
25775
25985
  this.menuItemCBS_IBS_ESTORNO_CREDITO = false;
25776
25986
  this.menuItemCBS_IBS_Ajuste = false;
25987
+ this.menuItemCbsIbsTransferenciaCredito = false;
25777
25988
  this.menuItemIcmsCreditoPresumido = false;
25778
25989
  this.requiredItemCideTecnologia = false;
25779
25990
  this.requiredItemPisRecuperar = false;
@@ -26056,6 +26267,7 @@
26056
26267
  this.menuItemCideTecnologia = false;
26057
26268
  this.menuItemRetencoesFunrural = false;
26058
26269
  this.menuItemIcmsCreditoPresumido = false;
26270
+ this.menuItemCbsIbsTransferenciaCredito = false;
26059
26271
  this.requiredItemCideTecnologia = false;
26060
26272
  this.requiredItemPisRecuperar = false;
26061
26273
  this.requiredItemPisDevolvido = false;
@@ -26134,6 +26346,10 @@
26134
26346
  case exports.EnumTipoTributo.IBS_AJUSTE:
26135
26347
  _this.montaCBS_IBS_Ajuste();
26136
26348
  break;
26349
+ case exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO:
26350
+ case exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO:
26351
+ _this.montaCBSIBSTransferenciaCredito();
26352
+ break;
26137
26353
  case exports.EnumTipoTributo.PIS_RECUPERAR:
26138
26354
  case exports.EnumTipoTributo.PIS_DEVOLVIDO:
26139
26355
  case exports.EnumTipoTributo.PIS:
@@ -26751,6 +26967,30 @@
26751
26967
  'Debits Unprocessed Invoices Assessment' ||
26752
26968
  this.context.invoice.debitInvoiceType ===
26753
26969
  'Disqualification from Simples Nacional')
26970
+ }, {
26971
+ label: this.translate.instant('erpx.tributos.actions_cbs_ibs_transferencia_credito_label'),
26972
+ disabled: this.menuItemCbsIbsTransferenciaCredito,
26973
+ command: function () {
26974
+ (_this.montaCBSIBSTransferenciaCredito().forEach(function (value) {
26975
+ _this.novoImpostoManual(value);
26976
+ }),
26977
+ (_this.indexAccordion = [0]));
26978
+ _this.rulesService.apply({
26979
+ groups: _this.grupos,
26980
+ group: _this.grupos.find(function (group) {
26981
+ return group.grupoTributo ===
26982
+ exports.EnumGrupoTributo.CBS_IBS_TRANSFERENCIA_CREDITO;
26983
+ }),
26984
+ context: _this.context
26985
+ });
26986
+ _this.changeDetector.detectChanges();
26987
+ },
26988
+ visible: this.context.document === 'Outgoing Invoice' &&
26989
+ this.context.invoice.type === 'Debit' &&
26990
+ (this.context.invoice.debitInvoiceType ===
26991
+ 'Credit Transfer Cooperatives' ||
26992
+ this.context.invoice.debitInvoiceType ===
26993
+ 'Credit Transfer Succession')
26754
26994
  }, {
26755
26995
  id: 'retencaoFunrural',
26756
26996
  label: this.translate.instant('erpx.tributos.actions_retencao_funrural_label'),
@@ -28304,6 +28544,41 @@
28304
28544
  });
28305
28545
  return item;
28306
28546
  };
28547
+ ErpTributosComponent.prototype.montaCBSIBSTransferenciaCredito = function () {
28548
+ if (this.menuItemCbsIbsTransferenciaCredito)
28549
+ return;
28550
+ this.menuItemCbsIbsTransferenciaCredito = true;
28551
+ var item = [
28552
+ __assign({ name: exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO, label: 'erpx.tributos.enum_tipo_tributo_cbs_transferencia_credito' }, this.montaCampos([
28553
+ {
28554
+ campo: exports.EnumCampoTributo.SituacaoTributaria
28555
+ },
28556
+ {
28557
+ campo: exports.EnumCampoTributo.ClassificacaoTributaria
28558
+ },
28559
+ {
28560
+ campo: exports.EnumCampoTributo.Valor
28561
+ }
28562
+ ], exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO)),
28563
+ __assign({ name: exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO, label: 'erpx.tributos.enum_tipo_tributo_ibs_transferencia_credito' }, this.montaCampos([
28564
+ {
28565
+ campo: exports.EnumCampoTributo.SituacaoTributaria
28566
+ },
28567
+ {
28568
+ campo: exports.EnumCampoTributo.ClassificacaoTributaria
28569
+ },
28570
+ {
28571
+ campo: exports.EnumCampoTributo.Valor
28572
+ }
28573
+ ], exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO))
28574
+ ];
28575
+ this.grupos.unshift({
28576
+ grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.CBS_IBS_TRANSFERENCIA_CREDITO + '_label'),
28577
+ grupoTributo: exports.EnumGrupoTributo.CBS_IBS_TRANSFERENCIA_CREDITO,
28578
+ item: item
28579
+ });
28580
+ return item;
28581
+ };
28307
28582
  ErpTributosComponent.prototype.montaPis = function () {
28308
28583
  if (this.menuItemPis == false) {
28309
28584
  this.menuItemPis = true;
@@ -29583,7 +29858,9 @@
29583
29858
  tributo === exports.EnumTipoTributo.CBS_ESTORNO_CREDITO ||
29584
29859
  tributo === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO ||
29585
29860
  tributo === exports.EnumTipoTributo.CBS_AJUSTE ||
29586
- tributo === exports.EnumTipoTributo.IBS_AJUSTE)
29861
+ tributo === exports.EnumTipoTributo.IBS_AJUSTE ||
29862
+ tributo === exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO ||
29863
+ tributo === exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO)
29587
29864
  defaultFilter = __spread(defaultFilter, [
29588
29865
  {
29589
29866
  field: 'classificacaoTributaria.indGEstornoCred',
@@ -29601,6 +29878,14 @@
29601
29878
  ? angularComponents.EnumLogicalOperator.Eq
29602
29879
  : angularComponents.EnumLogicalOperator.Ne,
29603
29880
  values: [EnumIndicativoPadrao.EXIGE]
29881
+ },
29882
+ {
29883
+ field: 'indGTransfCred',
29884
+ operator: tributo === exports.EnumTipoTributo.CBS_TRANSFERENCIA_CREDITO ||
29885
+ tributo === exports.EnumTipoTributo.IBS_TRANSFERENCIA_CREDITO
29886
+ ? angularComponents.EnumLogicalOperator.Eq
29887
+ : angularComponents.EnumLogicalOperator.Ne,
29888
+ values: [EnumIndicativoPadrao.EXIGE]
29604
29889
  }
29605
29890
  ]);
29606
29891
  formField.push(new angularComponents$1.FormField(__assign(__assign({}, _this.e027StrLookup.mountOptions({