@senior-gestao-empresarial/erpx-components 4.12.2 → 4.13.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 (36) hide show
  1. package/bundles/senior-gestao-empresarial-erpx-components.umd.js +290 -67
  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/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.d.ts +3 -1
  6. package/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.d.ts +3 -1
  7. package/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.d.ts +5 -0
  8. package/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.d.ts +3 -1
  9. package/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.d.ts +3 -1
  10. package/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.d.ts +5 -0
  11. package/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.d.ts +8 -0
  12. package/esm2015/components/tributos/erp-tributos.component.js +2 -1
  13. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +48 -4
  14. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +76 -4
  15. package/esm2015/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +48 -0
  16. package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +18 -14
  17. package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +25 -21
  18. package/esm2015/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +45 -0
  19. package/esm2015/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
  20. package/esm2015/senior-gestao-empresarial-erpx-components.js +33 -31
  21. package/esm5/components/tributos/erp-tributos.component.js +2 -1
  22. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +48 -4
  23. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +76 -4
  24. package/esm5/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +60 -0
  25. package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +18 -14
  26. package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +25 -21
  27. package/esm5/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +49 -0
  28. package/esm5/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
  29. package/esm5/senior-gestao-empresarial-erpx-components.js +33 -31
  30. package/fesm2015/senior-gestao-empresarial-erpx-components.js +243 -38
  31. package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
  32. package/fesm5/senior-gestao-empresarial-erpx-components.js +259 -38
  33. package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
  34. package/package.json +1 -1
  35. package/senior-gestao-empresarial-erpx-components.d.ts +32 -30
  36. package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
@@ -1288,6 +1288,68 @@
1288
1288
  return group.item.find(function (item) { return item.name === getGovernamentalTaxByBaseTax(baseTax); });
1289
1289
  };
1290
1290
 
1291
+ var EnumIndicativoPadrao$1;
1292
+ (function (EnumIndicativoPadrao) {
1293
+ /** 0 = Não é permitido */
1294
+ EnumIndicativoPadrao["NAO_PERMITIDO"] = "NAO_PERMITIDO";
1295
+ /** 1 = Exige */
1296
+ EnumIndicativoPadrao["EXIGE"] = "EXIGE";
1297
+ /** ? = Indiferente */
1298
+ EnumIndicativoPadrao["INDIFERENTE"] = "INDIFERENTE";
1299
+ })(EnumIndicativoPadrao$1 || (EnumIndicativoPadrao$1 = {}));
1300
+
1301
+ var ApplyNetValueToDocumentCalculationRule = /** @class */ (function () {
1302
+ function ApplyNetValueToDocumentCalculationRule() {
1303
+ }
1304
+ ApplyNetValueToDocumentCalculationRule.prototype.apply = function (_a) {
1305
+ var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup, formField = _b.formField;
1306
+ switch (taxType) {
1307
+ case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
1308
+ {
1309
+ switch (document) {
1310
+ case 'Incoming Invoice':
1311
+ case 'Outgoing Invoice':
1312
+ {
1313
+ var dataKey_1 = formField.find(function (_a) {
1314
+ var name = _a.name;
1315
+ return name === 'classificacaoTributaria';
1316
+ }).dataKey;
1317
+ rxjs.combineLatest([
1318
+ formGroup
1319
+ .get('classificacaoTributaria')
1320
+ .valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
1321
+ return (old === null || old === void 0 ? void 0 : old[dataKey_1]) === (current === null || current === void 0 ? void 0 : current[dataKey_1]);
1322
+ }))
1323
+ ])
1324
+ .pipe(operators.skip(1), operators.map(function (_a) {
1325
+ var _b = __read(_a, 1), taxClassification = _b[0];
1326
+ return (taxClassification === null || taxClassification === void 0 ? void 0 : taxClassification['credPresIndDeduzCredPres']) === EnumIndicativoPadrao$1.EXIGE
1327
+ ? exports.EnumAplicarValorLiquidoDocumento.SUBTRAIR
1328
+ : exports.EnumAplicarValorLiquidoDocumento.NENHUM;
1329
+ }))
1330
+ .subscribe(function (applyNetValue) {
1331
+ formGroup
1332
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
1333
+ .setValue(applyNetValue);
1334
+ });
1335
+ }
1336
+ break;
1337
+ default:
1338
+ throw new Error("Regra ApplyNetValueToDocumentCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
1339
+ }
1340
+ }
1341
+ break;
1342
+ default:
1343
+ throw new Error("Regra ApplyNetValueToDocumentCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
1344
+ }
1345
+ };
1346
+ ApplyNetValueToDocumentCalculationRule.ɵprov = core.ɵɵdefineInjectable({ factory: function ApplyNetValueToDocumentCalculationRule_Factory() { return new ApplyNetValueToDocumentCalculationRule(); }, token: ApplyNetValueToDocumentCalculationRule, providedIn: "root" });
1347
+ ApplyNetValueToDocumentCalculationRule = __decorate([
1348
+ core.Injectable({ providedIn: 'root' })
1349
+ ], ApplyNetValueToDocumentCalculationRule);
1350
+ return ApplyNetValueToDocumentCalculationRule;
1351
+ }());
1352
+
1291
1353
  var EffectiveTaxRateCalculationRule = /** @class */ (function () {
1292
1354
  function EffectiveTaxRateCalculationRule(effectiveTaxRateCalculator) {
1293
1355
  this.effectiveTaxRateCalculator = effectiveTaxRateCalculator;
@@ -2631,7 +2693,7 @@
2631
2693
  }());
2632
2694
 
2633
2695
  var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
2634
- function IncomingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, manualTaxCalculationRule) {
2696
+ function IncomingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, applyNetValueToDocumentCalculationRule, manualTaxCalculationRule) {
2635
2697
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2636
2698
  this.taxableBaseCalculationRule = taxableBaseCalculationRule;
2637
2699
  this.taxRateCalculationRule = taxRateCalculationRule;
@@ -2641,6 +2703,7 @@
2641
2703
  this.taxSituationCalculationRule = taxSituationCalculationRule;
2642
2704
  this.taxClassificationCalculationRule = taxClassificationCalculationRule;
2643
2705
  this.taxCalculationTypeCalculationRule = taxCalculationTypeCalculationRule;
2706
+ this.applyNetValueToDocumentCalculationRule = applyNetValueToDocumentCalculationRule;
2644
2707
  this.manualTaxCalculationRule = manualTaxCalculationRule;
2645
2708
  this.strategies = {
2646
2709
  Adjustment: (_a = {},
@@ -2850,6 +2913,10 @@
2850
2913
  {
2851
2914
  field: exports.EnumCampoTributo.Valor,
2852
2915
  rule: this.taxAmountCalculationRule
2916
+ },
2917
+ {
2918
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
2919
+ rule: this.applyNetValueToDocumentCalculationRule
2853
2920
  }
2854
2921
  ],
2855
2922
  _a[exports.EnumTipoTributo.IS] = [
@@ -3098,6 +3165,10 @@
3098
3165
  {
3099
3166
  field: exports.EnumCampoTributo.Valor,
3100
3167
  rule: this.taxAmountCalculationRule
3168
+ },
3169
+ {
3170
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
3171
+ rule: this.applyNetValueToDocumentCalculationRule
3101
3172
  }
3102
3173
  ],
3103
3174
  _b[exports.EnumTipoTributo.IS] = [
@@ -3346,6 +3417,10 @@
3346
3417
  {
3347
3418
  field: exports.EnumCampoTributo.Valor,
3348
3419
  rule: this.taxAmountCalculationRule
3420
+ },
3421
+ {
3422
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
3423
+ rule: this.applyNetValueToDocumentCalculationRule
3349
3424
  }
3350
3425
  ],
3351
3426
  _c[exports.EnumTipoTributo.IS] = [
@@ -3594,6 +3669,10 @@
3594
3669
  {
3595
3670
  field: exports.EnumCampoTributo.Valor,
3596
3671
  rule: this.taxAmountCalculationRule
3672
+ },
3673
+ {
3674
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
3675
+ rule: this.applyNetValueToDocumentCalculationRule
3597
3676
  }
3598
3677
  ],
3599
3678
  _d[exports.EnumTipoTributo.IS] = [
@@ -3842,6 +3921,10 @@
3842
3921
  {
3843
3922
  field: exports.EnumCampoTributo.Valor,
3844
3923
  rule: this.taxAmountCalculationRule
3924
+ },
3925
+ {
3926
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
3927
+ rule: this.applyNetValueToDocumentCalculationRule
3845
3928
  }
3846
3929
  ],
3847
3930
  _e[exports.EnumTipoTributo.IS] = [
@@ -4090,6 +4173,10 @@
4090
4173
  {
4091
4174
  field: exports.EnumCampoTributo.Valor,
4092
4175
  rule: this.taxAmountCalculationRule
4176
+ },
4177
+ {
4178
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
4179
+ rule: this.applyNetValueToDocumentCalculationRule
4093
4180
  }
4094
4181
  ],
4095
4182
  _f[exports.EnumTipoTributo.IS] = [
@@ -4338,6 +4425,10 @@
4338
4425
  {
4339
4426
  field: exports.EnumCampoTributo.Valor,
4340
4427
  rule: this.taxAmountCalculationRule
4428
+ },
4429
+ {
4430
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
4431
+ rule: this.applyNetValueToDocumentCalculationRule
4341
4432
  }
4342
4433
  ],
4343
4434
  _g[exports.EnumTipoTributo.IS] = [
@@ -4586,6 +4677,10 @@
4586
4677
  {
4587
4678
  field: exports.EnumCampoTributo.Valor,
4588
4679
  rule: this.taxAmountCalculationRule
4680
+ },
4681
+ {
4682
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
4683
+ rule: this.applyNetValueToDocumentCalculationRule
4589
4684
  }
4590
4685
  ],
4591
4686
  _h[exports.EnumTipoTributo.IS] = [
@@ -4834,6 +4929,10 @@
4834
4929
  {
4835
4930
  field: exports.EnumCampoTributo.Valor,
4836
4931
  rule: this.taxAmountCalculationRule
4932
+ },
4933
+ {
4934
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
4935
+ rule: this.applyNetValueToDocumentCalculationRule
4837
4936
  }
4838
4937
  ],
4839
4938
  _j[exports.EnumTipoTributo.IS] = [
@@ -5082,6 +5181,10 @@
5082
5181
  {
5083
5182
  field: exports.EnumCampoTributo.Valor,
5084
5183
  rule: this.taxAmountCalculationRule
5184
+ },
5185
+ {
5186
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
5187
+ rule: this.applyNetValueToDocumentCalculationRule
5085
5188
  }
5086
5189
  ],
5087
5190
  _k[exports.EnumTipoTributo.IS] = [
@@ -5138,9 +5241,10 @@
5138
5241
  { type: TaxSituationCalculationRule },
5139
5242
  { type: TaxClassificationCalculationRule },
5140
5243
  { type: TaxCalculationTypeCalculationRule },
5244
+ { type: ApplyNetValueToDocumentCalculationRule },
5141
5245
  { type: ManualTaxCalculationRule }
5142
5246
  ]; };
5143
- IncomingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceCalculationRulesRegistry_Factory() { return new IncomingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: IncomingInvoiceCalculationRulesRegistry, providedIn: "root" });
5247
+ IncomingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceCalculationRulesRegistry_Factory() { return new IncomingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(ApplyNetValueToDocumentCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: IncomingInvoiceCalculationRulesRegistry, providedIn: "root" });
5144
5248
  IncomingInvoiceCalculationRulesRegistry = __decorate([
5145
5249
  core.Injectable({ providedIn: 'root' })
5146
5250
  ], IncomingInvoiceCalculationRulesRegistry);
@@ -5217,7 +5321,7 @@
5217
5321
  }());
5218
5322
 
5219
5323
  var OutgoingInvoiceCalculationRulesRegistry = /** @class */ (function () {
5220
- function OutgoingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, assessmentPeriodCalculationRule, manualTaxCalculationRule) {
5324
+ function OutgoingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, assessmentPeriodCalculationRule, applyNetValueToDocumentCalculationRule, manualTaxCalculationRule) {
5221
5325
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
5222
5326
  this.taxableBaseCalculationRule = taxableBaseCalculationRule;
5223
5327
  this.taxRateCalculationRule = taxRateCalculationRule;
@@ -5228,6 +5332,7 @@
5228
5332
  this.taxClassificationCalculationRule = taxClassificationCalculationRule;
5229
5333
  this.taxCalculationTypeCalculationRule = taxCalculationTypeCalculationRule;
5230
5334
  this.assessmentPeriodCalculationRule = assessmentPeriodCalculationRule;
5335
+ this.applyNetValueToDocumentCalculationRule = applyNetValueToDocumentCalculationRule;
5231
5336
  this.manualTaxCalculationRule = manualTaxCalculationRule;
5232
5337
  this.strategies = {
5233
5338
  'Product And Service Sale': (_a = {},
@@ -5433,6 +5538,10 @@
5433
5538
  {
5434
5539
  field: exports.EnumCampoTributo.Valor,
5435
5540
  rule: this.taxAmountCalculationRule
5541
+ },
5542
+ {
5543
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
5544
+ rule: this.applyNetValueToDocumentCalculationRule
5436
5545
  }
5437
5546
  ],
5438
5547
  _a[exports.EnumTipoTributo.IS] = [
@@ -5677,6 +5786,10 @@
5677
5786
  {
5678
5787
  field: exports.EnumCampoTributo.Valor,
5679
5788
  rule: this.taxAmountCalculationRule
5789
+ },
5790
+ {
5791
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
5792
+ rule: this.applyNetValueToDocumentCalculationRule
5680
5793
  }
5681
5794
  ],
5682
5795
  _b[exports.EnumTipoTributo.IS] = [
@@ -5921,6 +6034,10 @@
5921
6034
  {
5922
6035
  field: exports.EnumCampoTributo.Valor,
5923
6036
  rule: this.taxAmountCalculationRule
6037
+ },
6038
+ {
6039
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
6040
+ rule: this.applyNetValueToDocumentCalculationRule
5924
6041
  }
5925
6042
  ],
5926
6043
  _c[exports.EnumTipoTributo.IS] = [
@@ -6165,6 +6282,10 @@
6165
6282
  {
6166
6283
  field: exports.EnumCampoTributo.Valor,
6167
6284
  rule: this.taxAmountCalculationRule
6285
+ },
6286
+ {
6287
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
6288
+ rule: this.applyNetValueToDocumentCalculationRule
6168
6289
  }
6169
6290
  ],
6170
6291
  _d[exports.EnumTipoTributo.IS] = [
@@ -6409,6 +6530,10 @@
6409
6530
  {
6410
6531
  field: exports.EnumCampoTributo.Valor,
6411
6532
  rule: this.taxAmountCalculationRule
6533
+ },
6534
+ {
6535
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
6536
+ rule: this.applyNetValueToDocumentCalculationRule
6412
6537
  }
6413
6538
  ],
6414
6539
  _e[exports.EnumTipoTributo.IS] = [
@@ -6653,6 +6778,10 @@
6653
6778
  {
6654
6779
  field: exports.EnumCampoTributo.Valor,
6655
6780
  rule: this.taxAmountCalculationRule
6781
+ },
6782
+ {
6783
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
6784
+ rule: this.applyNetValueToDocumentCalculationRule
6656
6785
  }
6657
6786
  ],
6658
6787
  _f[exports.EnumTipoTributo.IS] = [
@@ -6897,6 +7026,10 @@
6897
7026
  {
6898
7027
  field: exports.EnumCampoTributo.Valor,
6899
7028
  rule: this.taxAmountCalculationRule
7029
+ },
7030
+ {
7031
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
7032
+ rule: this.applyNetValueToDocumentCalculationRule
6900
7033
  }
6901
7034
  ],
6902
7035
  _g[exports.EnumTipoTributo.IS] = [
@@ -7141,6 +7274,10 @@
7141
7274
  {
7142
7275
  field: exports.EnumCampoTributo.Valor,
7143
7276
  rule: this.taxAmountCalculationRule
7277
+ },
7278
+ {
7279
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
7280
+ rule: this.applyNetValueToDocumentCalculationRule
7144
7281
  }
7145
7282
  ],
7146
7283
  _h[exports.EnumTipoTributo.IS] = [
@@ -7385,6 +7522,10 @@
7385
7522
  {
7386
7523
  field: exports.EnumCampoTributo.Valor,
7387
7524
  rule: this.taxAmountCalculationRule
7525
+ },
7526
+ {
7527
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
7528
+ rule: this.applyNetValueToDocumentCalculationRule
7388
7529
  }
7389
7530
  ],
7390
7531
  _j[exports.EnumTipoTributo.IS] = [
@@ -7629,6 +7770,10 @@
7629
7770
  {
7630
7771
  field: exports.EnumCampoTributo.Valor,
7631
7772
  rule: this.taxAmountCalculationRule
7773
+ },
7774
+ {
7775
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
7776
+ rule: this.applyNetValueToDocumentCalculationRule
7632
7777
  }
7633
7778
  ],
7634
7779
  _k[exports.EnumTipoTributo.IS] = [
@@ -7937,6 +8082,10 @@
7937
8082
  {
7938
8083
  field: exports.EnumCampoTributo.Valor,
7939
8084
  rule: this.taxAmountCalculationRule
8085
+ },
8086
+ {
8087
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
8088
+ rule: this.applyNetValueToDocumentCalculationRule
7940
8089
  }
7941
8090
  ],
7942
8091
  _l[exports.EnumTipoTributo.IS] = [
@@ -8181,6 +8330,10 @@
8181
8330
  {
8182
8331
  field: exports.EnumCampoTributo.Valor,
8183
8332
  rule: this.taxAmountCalculationRule
8333
+ },
8334
+ {
8335
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
8336
+ rule: this.applyNetValueToDocumentCalculationRule
8184
8337
  }
8185
8338
  ],
8186
8339
  _m[exports.EnumTipoTributo.IS] = [
@@ -8425,6 +8578,10 @@
8425
8578
  {
8426
8579
  field: exports.EnumCampoTributo.Valor,
8427
8580
  rule: this.taxAmountCalculationRule
8581
+ },
8582
+ {
8583
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
8584
+ rule: this.applyNetValueToDocumentCalculationRule
8428
8585
  }
8429
8586
  ],
8430
8587
  _o[exports.EnumTipoTributo.IS] = [
@@ -8669,6 +8826,10 @@
8669
8826
  {
8670
8827
  field: exports.EnumCampoTributo.Valor,
8671
8828
  rule: this.taxAmountCalculationRule
8829
+ },
8830
+ {
8831
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
8832
+ rule: this.applyNetValueToDocumentCalculationRule
8672
8833
  }
8673
8834
  ],
8674
8835
  _p[exports.EnumTipoTributo.IS] = [
@@ -8913,6 +9074,10 @@
8913
9074
  {
8914
9075
  field: exports.EnumCampoTributo.Valor,
8915
9076
  rule: this.taxAmountCalculationRule
9077
+ },
9078
+ {
9079
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
9080
+ rule: this.applyNetValueToDocumentCalculationRule
8916
9081
  }
8917
9082
  ],
8918
9083
  _q[exports.EnumTipoTributo.IS] = [
@@ -9157,6 +9322,10 @@
9157
9322
  {
9158
9323
  field: exports.EnumCampoTributo.Valor,
9159
9324
  rule: this.taxAmountCalculationRule
9325
+ },
9326
+ {
9327
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
9328
+ rule: this.applyNetValueToDocumentCalculationRule
9160
9329
  }
9161
9330
  ],
9162
9331
  _r[exports.EnumTipoTributo.IS] = [
@@ -9401,6 +9570,10 @@
9401
9570
  {
9402
9571
  field: exports.EnumCampoTributo.Valor,
9403
9572
  rule: this.taxAmountCalculationRule
9573
+ },
9574
+ {
9575
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
9576
+ rule: this.applyNetValueToDocumentCalculationRule
9404
9577
  }
9405
9578
  ],
9406
9579
  _s[exports.EnumTipoTributo.IS] = [
@@ -9458,9 +9631,10 @@
9458
9631
  { type: TaxClassificationCalculationRule },
9459
9632
  { type: TaxCalculationTypeCalculationRule },
9460
9633
  { type: AssessmentPeriodCalculationRule },
9634
+ { type: ApplyNetValueToDocumentCalculationRule },
9461
9635
  { type: ManualTaxCalculationRule }
9462
9636
  ]; };
9463
- OutgoingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceCalculationRulesRegistry_Factory() { return new OutgoingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(AssessmentPeriodCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: OutgoingInvoiceCalculationRulesRegistry, providedIn: "root" });
9637
+ OutgoingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceCalculationRulesRegistry_Factory() { return new OutgoingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(AssessmentPeriodCalculationRule), core.ɵɵinject(ApplyNetValueToDocumentCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: OutgoingInvoiceCalculationRulesRegistry, providedIn: "root" });
9464
9638
  OutgoingInvoiceCalculationRulesRegistry = __decorate([
9465
9639
  core.Injectable({ providedIn: 'root' })
9466
9640
  ], OutgoingInvoiceCalculationRulesRegistry);
@@ -12847,6 +13021,48 @@
12847
13021
  return StatusRulesRegistry;
12848
13022
  }());
12849
13023
 
13024
+ var ApplyNetValueToDocumentRequiredValidationRule = /** @class */ (function () {
13025
+ function ApplyNetValueToDocumentRequiredValidationRule() {
13026
+ }
13027
+ ApplyNetValueToDocumentRequiredValidationRule.prototype.apply = function (_a) {
13028
+ var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
13029
+ switch (taxType) {
13030
+ case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
13031
+ {
13032
+ switch (document) {
13033
+ case 'Incoming Invoice':
13034
+ case 'Outgoing Invoice':
13035
+ {
13036
+ var control_1 = formGroup.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento);
13037
+ control_1.valueChanges
13038
+ .pipe(operators.startWith(control_1.value))
13039
+ .subscribe(function (value) {
13040
+ var validators = value
13041
+ ? [forms.Validators.required]
13042
+ : [];
13043
+ control_1.setValidators(validators);
13044
+ control_1.updateValueAndValidity({
13045
+ emitEvent: false
13046
+ });
13047
+ });
13048
+ }
13049
+ break;
13050
+ default:
13051
+ throw new Error("Regra ApplyNetValueToDocumentRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
13052
+ }
13053
+ }
13054
+ break;
13055
+ default:
13056
+ throw new Error("Regra ApplyNetValueToDocumentRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
13057
+ }
13058
+ };
13059
+ ApplyNetValueToDocumentRequiredValidationRule.ɵprov = core.ɵɵdefineInjectable({ factory: function ApplyNetValueToDocumentRequiredValidationRule_Factory() { return new ApplyNetValueToDocumentRequiredValidationRule(); }, token: ApplyNetValueToDocumentRequiredValidationRule, providedIn: "root" });
13060
+ ApplyNetValueToDocumentRequiredValidationRule = __decorate([
13061
+ core.Injectable({ providedIn: 'root' })
13062
+ ], ApplyNetValueToDocumentRequiredValidationRule);
13063
+ return ApplyNetValueToDocumentRequiredValidationRule;
13064
+ }());
13065
+
12850
13066
  var TaxAmountRequiredValidationRule = /** @class */ (function () {
12851
13067
  function TaxAmountRequiredValidationRule() {
12852
13068
  }
@@ -15896,13 +16112,14 @@
15896
16112
  }());
15897
16113
 
15898
16114
  var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
15899
- function IncomingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule) {
16115
+ function IncomingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule, applyNetValueToDocumentRequiredValidationRule) {
15900
16116
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
15901
16117
  this.taxableBaseRequiredValidationRule = taxableBaseRequiredValidationRule;
15902
16118
  this.taxRateRequiredValidationRule = taxRateRequiredValidationRule;
15903
16119
  this.taxClassificationRequiredValidationRule = taxClassificationRequiredValidationRule;
15904
16120
  this.taxAmountRequiredValidationRule = taxAmountRequiredValidationRule;
15905
16121
  this.taxSituationRequiredValidationRule = taxSituationRequiredValidationRule;
16122
+ this.applyNetValueToDocumentRequiredValidationRule = applyNetValueToDocumentRequiredValidationRule;
15906
16123
  this.strategies = {
15907
16124
  'Producer Invoice': (_a = {},
15908
16125
  _a[exports.EnumTipoTributo.CBS] = [
@@ -16150,7 +16367,7 @@
16150
16367
  },
16151
16368
  {
16152
16369
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16153
- rules: []
16370
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16154
16371
  }
16155
16372
  ],
16156
16373
  _a[exports.EnumTipoTributo.IS] = [
@@ -16454,7 +16671,7 @@
16454
16671
  },
16455
16672
  {
16456
16673
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16457
- rules: []
16674
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16458
16675
  }
16459
16676
  ],
16460
16677
  _b[exports.EnumTipoTributo.IS] = [
@@ -16758,7 +16975,7 @@
16758
16975
  },
16759
16976
  {
16760
16977
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16761
- rules: []
16978
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16762
16979
  }
16763
16980
  ],
16764
16981
  _c[exports.EnumTipoTributo.IS] = [
@@ -17062,7 +17279,7 @@
17062
17279
  },
17063
17280
  {
17064
17281
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17065
- rules: []
17282
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17066
17283
  }
17067
17284
  ],
17068
17285
  _d[exports.EnumTipoTributo.IS] = [
@@ -17366,7 +17583,7 @@
17366
17583
  },
17367
17584
  {
17368
17585
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17369
- rules: []
17586
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17370
17587
  }
17371
17588
  ],
17372
17589
  _e[exports.EnumTipoTributo.IS] = [
@@ -17670,7 +17887,7 @@
17670
17887
  },
17671
17888
  {
17672
17889
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17673
- rules: []
17890
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17674
17891
  }
17675
17892
  ],
17676
17893
  _f[exports.EnumTipoTributo.IS] = [
@@ -17974,7 +18191,7 @@
17974
18191
  },
17975
18192
  {
17976
18193
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17977
- rules: []
18194
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17978
18195
  }
17979
18196
  ],
17980
18197
  _g[exports.EnumTipoTributo.IS] = [
@@ -18278,7 +18495,7 @@
18278
18495
  },
18279
18496
  {
18280
18497
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18281
- rules: []
18498
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18282
18499
  }
18283
18500
  ],
18284
18501
  _h[exports.EnumTipoTributo.IS] = [
@@ -18582,7 +18799,7 @@
18582
18799
  },
18583
18800
  {
18584
18801
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18585
- rules: []
18802
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18586
18803
  }
18587
18804
  ],
18588
18805
  _j[exports.EnumTipoTributo.IS] = [
@@ -18886,7 +19103,7 @@
18886
19103
  },
18887
19104
  {
18888
19105
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18889
- rules: []
19106
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18890
19107
  }
18891
19108
  ],
18892
19109
  _k[exports.EnumTipoTributo.IS] = [
@@ -18955,9 +19172,10 @@
18955
19172
  { type: TaxRateRequiredValidationRule },
18956
19173
  { type: TaxClassificationRequiredValidationRule },
18957
19174
  { type: TaxAmountRequiredValidationRule },
18958
- { type: TaxSituationRequiredValidationRule }
19175
+ { type: TaxSituationRequiredValidationRule },
19176
+ { type: ApplyNetValueToDocumentRequiredValidationRule }
18959
19177
  ]; };
18960
- IncomingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceValidationRulesRegistry_Factory() { return new IncomingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule)); }, token: IncomingInvoiceValidationRulesRegistry, providedIn: "root" });
19178
+ IncomingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceValidationRulesRegistry_Factory() { return new IncomingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule), core.ɵɵinject(ApplyNetValueToDocumentRequiredValidationRule)); }, token: IncomingInvoiceValidationRulesRegistry, providedIn: "root" });
18961
19179
  IncomingInvoiceValidationRulesRegistry = __decorate([
18962
19180
  core.Injectable({ providedIn: 'root' })
18963
19181
  ], IncomingInvoiceValidationRulesRegistry);
@@ -19042,7 +19260,7 @@
19042
19260
  }());
19043
19261
 
19044
19262
  var OutgoingInvoiceValidationRulesRegistry = /** @class */ (function () {
19045
- function OutgoingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule, assessmentPeriodRequiredValidationRule) {
19263
+ function OutgoingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule, assessmentPeriodRequiredValidationRule, applyNetValueToDocumentRequiredValidationRule) {
19046
19264
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
19047
19265
  this.taxableBaseRequiredValidationRule = taxableBaseRequiredValidationRule;
19048
19266
  this.taxRateRequiredValidationRule = taxRateRequiredValidationRule;
@@ -19050,6 +19268,7 @@
19050
19268
  this.taxAmountRequiredValidationRule = taxAmountRequiredValidationRule;
19051
19269
  this.taxSituationRequiredValidationRule = taxSituationRequiredValidationRule;
19052
19270
  this.assessmentPeriodRequiredValidationRule = assessmentPeriodRequiredValidationRule;
19271
+ this.applyNetValueToDocumentRequiredValidationRule = applyNetValueToDocumentRequiredValidationRule;
19053
19272
  this.strategies = {
19054
19273
  'Product And Service Sale': (_a = {},
19055
19274
  _a[exports.EnumTipoTributo.CBS] = [
@@ -19297,7 +19516,7 @@
19297
19516
  },
19298
19517
  {
19299
19518
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19300
- rules: []
19519
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19301
19520
  }
19302
19521
  ],
19303
19522
  _a[exports.EnumTipoTributo.IS] = [
@@ -19601,7 +19820,7 @@
19601
19820
  },
19602
19821
  {
19603
19822
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19604
- rules: []
19823
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19605
19824
  }
19606
19825
  ],
19607
19826
  _b[exports.EnumTipoTributo.IS] = [
@@ -19905,7 +20124,7 @@
19905
20124
  },
19906
20125
  {
19907
20126
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19908
- rules: []
20127
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19909
20128
  }
19910
20129
  ],
19911
20130
  _c[exports.EnumTipoTributo.IS] = [
@@ -20209,7 +20428,7 @@
20209
20428
  },
20210
20429
  {
20211
20430
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20212
- rules: []
20431
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20213
20432
  }
20214
20433
  ],
20215
20434
  _d[exports.EnumTipoTributo.IS] = [
@@ -20513,7 +20732,7 @@
20513
20732
  },
20514
20733
  {
20515
20734
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20516
- rules: []
20735
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20517
20736
  }
20518
20737
  ],
20519
20738
  _e[exports.EnumTipoTributo.IS] = [
@@ -20817,7 +21036,7 @@
20817
21036
  },
20818
21037
  {
20819
21038
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20820
- rules: []
21039
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20821
21040
  }
20822
21041
  ],
20823
21042
  _f[exports.EnumTipoTributo.IS] = [
@@ -21121,7 +21340,7 @@
21121
21340
  },
21122
21341
  {
21123
21342
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21124
- rules: []
21343
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21125
21344
  }
21126
21345
  ],
21127
21346
  _g[exports.EnumTipoTributo.IS] = [
@@ -21425,7 +21644,7 @@
21425
21644
  },
21426
21645
  {
21427
21646
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21428
- rules: []
21647
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21429
21648
  }
21430
21649
  ],
21431
21650
  _h[exports.EnumTipoTributo.IS] = [
@@ -21729,7 +21948,7 @@
21729
21948
  },
21730
21949
  {
21731
21950
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21732
- rules: []
21951
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21733
21952
  }
21734
21953
  ],
21735
21954
  _j[exports.EnumTipoTributo.IS] = [
@@ -22033,7 +22252,7 @@
22033
22252
  },
22034
22253
  {
22035
22254
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22036
- rules: []
22255
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22037
22256
  }
22038
22257
  ],
22039
22258
  _k[exports.EnumTipoTributo.IS] = [
@@ -22401,7 +22620,7 @@
22401
22620
  },
22402
22621
  {
22403
22622
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22404
- rules: []
22623
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22405
22624
  }
22406
22625
  ],
22407
22626
  _l[exports.EnumTipoTributo.IS] = [
@@ -22705,7 +22924,7 @@
22705
22924
  },
22706
22925
  {
22707
22926
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22708
- rules: []
22927
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22709
22928
  }
22710
22929
  ],
22711
22930
  _m[exports.EnumTipoTributo.IS] = [
@@ -23009,7 +23228,7 @@
23009
23228
  },
23010
23229
  {
23011
23230
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23012
- rules: []
23231
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23013
23232
  }
23014
23233
  ],
23015
23234
  _o[exports.EnumTipoTributo.IS] = [
@@ -23313,7 +23532,7 @@
23313
23532
  },
23314
23533
  {
23315
23534
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23316
- rules: []
23535
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23317
23536
  }
23318
23537
  ],
23319
23538
  _p[exports.EnumTipoTributo.IS] = [
@@ -23617,7 +23836,7 @@
23617
23836
  },
23618
23837
  {
23619
23838
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23620
- rules: []
23839
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23621
23840
  }
23622
23841
  ],
23623
23842
  _q[exports.EnumTipoTributo.IS] = [
@@ -23921,7 +24140,7 @@
23921
24140
  },
23922
24141
  {
23923
24142
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23924
- rules: []
24143
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23925
24144
  }
23926
24145
  ],
23927
24146
  _r[exports.EnumTipoTributo.IS] = [
@@ -24225,7 +24444,7 @@
24225
24444
  },
24226
24445
  {
24227
24446
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24228
- rules: []
24447
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24229
24448
  }
24230
24449
  ],
24231
24450
  _s[exports.EnumTipoTributo.IS] = [
@@ -24295,9 +24514,10 @@
24295
24514
  { type: TaxClassificationRequiredValidationRule },
24296
24515
  { type: TaxAmountRequiredValidationRule },
24297
24516
  { type: TaxSituationRequiredValidationRule },
24298
- { type: AssessmentPeriodRequiredValidationRule }
24517
+ { type: AssessmentPeriodRequiredValidationRule },
24518
+ { type: ApplyNetValueToDocumentRequiredValidationRule }
24299
24519
  ]; };
24300
- OutgoingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceValidationRulesRegistry_Factory() { return new OutgoingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule), core.ɵɵinject(AssessmentPeriodRequiredValidationRule)); }, token: OutgoingInvoiceValidationRulesRegistry, providedIn: "root" });
24520
+ OutgoingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceValidationRulesRegistry_Factory() { return new OutgoingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule), core.ɵɵinject(AssessmentPeriodRequiredValidationRule), core.ɵɵinject(ApplyNetValueToDocumentRequiredValidationRule)); }, token: OutgoingInvoiceValidationRulesRegistry, providedIn: "root" });
24301
24521
  OutgoingInvoiceValidationRulesRegistry = __decorate([
24302
24522
  core.Injectable({ providedIn: 'root' })
24303
24523
  ], OutgoingInvoiceValidationRulesRegistry);
@@ -30897,6 +31117,7 @@
30897
31117
  prefix: 'erpx_cpl_imp.impostos',
30898
31118
  entity: 'classificacaoTributaria',
30899
31119
  formGroup: 'classificacaoTributaria',
31120
+ queryFields: ['credPresIndDeduzCredPres'],
30900
31121
  defaultFilter: [
30901
31122
  {
30902
31123
  field: 'situacao',
@@ -34372,28 +34593,30 @@
34372
34593
  exports.nonNullish = nonNullish;
34373
34594
  exports.ɵa = ErpResumoComponent;
34374
34595
  exports.ɵb = ErpResumoService;
34375
- exports.ɵba = EffectiveTaxRateCalculator;
34376
- exports.ɵbb = TaxRoundingService;
34377
- exports.ɵbc = TaxStore;
34378
- exports.ɵbd = TaxRateCalculationRule;
34379
- exports.ɵbe = EffectiveTaxRateCalculationRule;
34380
- exports.ɵbf = TaxAmountCalculationRule;
34381
- exports.ɵbg = GrossAmountCalculationRule;
34382
- exports.ɵbh = GrossAmountCalculator;
34383
- exports.ɵbi = TaxSituationCalculationRule;
34384
- exports.ɵbj = TaxClassificationCalculationRule;
34385
- exports.ɵbk = TaxCalculationTypeCalculationRule;
34386
- exports.ɵbl = ManualTaxCalculationRule;
34387
- exports.ɵbm = OutgoingInvoiceCalculationRulesRegistry;
34388
- exports.ɵbn = AssessmentPeriodCalculationRule;
34389
- exports.ɵbo = SaleOrderCalculationRulesRegistry;
34390
- exports.ɵbp = PurchaseOrderCalculationRulesRegistry;
34391
- exports.ɵbq = FocusService;
34392
- exports.ɵbr = ErpLoteSeriesService;
34393
- exports.ɵbs = QuantidadeDisponivelDemandaService;
34394
- exports.ɵbt = EntityService;
34395
- exports.ɵbu = QuantidadeDisponivelDemandaModule;
34396
- exports.ɵbv = ErpRateioEditorService;
34596
+ exports.ɵba = TaxAmountCalculator;
34597
+ exports.ɵbb = EffectiveTaxRateCalculator;
34598
+ exports.ɵbc = TaxRoundingService;
34599
+ exports.ɵbd = TaxStore;
34600
+ exports.ɵbe = TaxRateCalculationRule;
34601
+ exports.ɵbf = EffectiveTaxRateCalculationRule;
34602
+ exports.ɵbg = TaxAmountCalculationRule;
34603
+ exports.ɵbh = GrossAmountCalculationRule;
34604
+ exports.ɵbi = GrossAmountCalculator;
34605
+ exports.ɵbj = TaxSituationCalculationRule;
34606
+ exports.ɵbk = TaxClassificationCalculationRule;
34607
+ exports.ɵbl = TaxCalculationTypeCalculationRule;
34608
+ exports.ɵbm = ApplyNetValueToDocumentCalculationRule;
34609
+ exports.ɵbn = ManualTaxCalculationRule;
34610
+ exports.ɵbo = OutgoingInvoiceCalculationRulesRegistry;
34611
+ exports.ɵbp = AssessmentPeriodCalculationRule;
34612
+ exports.ɵbq = SaleOrderCalculationRulesRegistry;
34613
+ exports.ɵbr = PurchaseOrderCalculationRulesRegistry;
34614
+ exports.ɵbs = FocusService;
34615
+ exports.ɵbt = ErpLoteSeriesService;
34616
+ exports.ɵbu = QuantidadeDisponivelDemandaService;
34617
+ exports.ɵbv = EntityService;
34618
+ exports.ɵbw = QuantidadeDisponivelDemandaModule;
34619
+ exports.ɵbx = ErpRateioEditorService;
34397
34620
  exports.ɵc = LoadingContext;
34398
34621
  exports.ɵd = ErpTributosService;
34399
34622
  exports.ɵe = RulesService;
@@ -34410,14 +34633,14 @@
34410
34633
  exports.ɵp = TaxClassificationRequiredValidationRule;
34411
34634
  exports.ɵq = TaxAmountRequiredValidationRule;
34412
34635
  exports.ɵr = TaxSituationRequiredValidationRule;
34413
- exports.ɵs = OutgoingInvoiceValidationRulesRegistry;
34414
- exports.ɵt = AssessmentPeriodRequiredValidationRule;
34415
- exports.ɵu = SaleOrderValidationRulesRegistry;
34416
- exports.ɵv = PurchaseOrderValidationRulesRegistry;
34417
- exports.ɵw = CalculationRulesRegistry;
34418
- exports.ɵx = IncomingInvoiceCalculationRulesRegistry;
34419
- exports.ɵy = TaxableBaseCalculationRule;
34420
- exports.ɵz = TaxAmountCalculator;
34636
+ exports.ɵs = ApplyNetValueToDocumentRequiredValidationRule;
34637
+ exports.ɵt = OutgoingInvoiceValidationRulesRegistry;
34638
+ exports.ɵu = AssessmentPeriodRequiredValidationRule;
34639
+ exports.ɵv = SaleOrderValidationRulesRegistry;
34640
+ exports.ɵw = PurchaseOrderValidationRulesRegistry;
34641
+ exports.ɵx = CalculationRulesRegistry;
34642
+ exports.ɵy = IncomingInvoiceCalculationRulesRegistry;
34643
+ exports.ɵz = TaxableBaseCalculationRule;
34421
34644
 
34422
34645
  Object.defineProperty(exports, '__esModule', { value: true });
34423
34646