@senior-gestao-empresarial/erpx-components 4.13.0 → 4.14.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 (30) hide show
  1. package/bundles/senior-gestao-empresarial-erpx-components.umd.js +444 -109
  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/status/registries/incoming-invoice-status-rules.registry.d.ts +3 -1
  6. package/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.d.ts +3 -1
  7. package/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.d.ts +5 -0
  8. package/esm2015/components/tributos/erp-tributos.component.js +2 -3
  9. package/esm2015/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +108 -4
  10. package/esm2015/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +178 -4
  11. package/esm2015/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +36 -0
  12. package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +21 -21
  13. package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +35 -35
  14. package/esm2015/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +32 -6
  15. package/esm2015/senior-gestao-empresarial-erpx-components.js +44 -43
  16. package/esm5/components/tributos/erp-tributos.component.js +2 -3
  17. package/esm5/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +108 -4
  18. package/esm5/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +178 -4
  19. package/esm5/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +40 -0
  20. package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +21 -21
  21. package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +35 -35
  22. package/esm5/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +32 -6
  23. package/esm5/senior-gestao-empresarial-erpx-components.js +44 -43
  24. package/fesm2015/senior-gestao-empresarial-erpx-components.js +398 -68
  25. package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
  26. package/fesm5/senior-gestao-empresarial-erpx-components.js +402 -68
  27. package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
  28. package/package.json +1 -1
  29. package/senior-gestao-empresarial-erpx-components.d.ts +43 -42
  30. package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
@@ -11277,6 +11277,41 @@
11277
11277
  return CalculationRulesRegistry;
11278
11278
  }());
11279
11279
 
11280
+ var ApplyNetValueToDocumentStatusRule = /** @class */ (function () {
11281
+ function ApplyNetValueToDocumentStatusRule() {
11282
+ }
11283
+ ApplyNetValueToDocumentStatusRule.prototype.apply = function (_a) {
11284
+ var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
11285
+ switch (taxType) {
11286
+ case exports.EnumTipoTributo.CBS:
11287
+ case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
11288
+ {
11289
+ switch (document) {
11290
+ case 'Incoming Invoice':
11291
+ case 'Outgoing Invoice':
11292
+ formGroup
11293
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
11294
+ .enable({
11295
+ emitEvent: false,
11296
+ onlySelf: true
11297
+ });
11298
+ break;
11299
+ default:
11300
+ throw new Error("Regra ApplyNetValueToDocumentStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
11301
+ }
11302
+ }
11303
+ break;
11304
+ default:
11305
+ throw new Error("Regra ApplyNetValueToDocumentStatusRule n\u00E3o implementada para o imposto " + taxType + ".");
11306
+ }
11307
+ };
11308
+ ApplyNetValueToDocumentStatusRule.ɵprov = core.ɵɵdefineInjectable({ factory: function ApplyNetValueToDocumentStatusRule_Factory() { return new ApplyNetValueToDocumentStatusRule(); }, token: ApplyNetValueToDocumentStatusRule, providedIn: "root" });
11309
+ ApplyNetValueToDocumentStatusRule = __decorate([
11310
+ core.Injectable({ providedIn: 'root' })
11311
+ ], ApplyNetValueToDocumentStatusRule);
11312
+ return ApplyNetValueToDocumentStatusRule;
11313
+ }());
11314
+
11280
11315
  var TaxClassificationStatusRule = /** @class */ (function () {
11281
11316
  function TaxClassificationStatusRule() {
11282
11317
  }
@@ -11377,15 +11412,26 @@
11377
11412
  }());
11378
11413
 
11379
11414
  var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
11380
- function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule) {
11415
+ function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
11381
11416
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
11382
11417
  this.taxClassificationStatusRule = taxClassificationStatusRule;
11418
+ this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
11383
11419
  this.strategies = {
11384
11420
  Adjustment: (_a = {},
11385
11421
  _a[exports.EnumTipoTributo.CBS] = [
11386
11422
  {
11387
11423
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11388
11424
  rule: this.taxClassificationStatusRule
11425
+ },
11426
+ {
11427
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11428
+ rule: this.applyNetValueToDocumentStatusRule
11429
+ }
11430
+ ],
11431
+ _a[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11432
+ {
11433
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11434
+ rule: this.applyNetValueToDocumentStatusRule
11389
11435
  }
11390
11436
  ],
11391
11437
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11443,6 +11489,16 @@
11443
11489
  {
11444
11490
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11445
11491
  rule: this.taxClassificationStatusRule
11492
+ },
11493
+ {
11494
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11495
+ rule: this.applyNetValueToDocumentStatusRule
11496
+ }
11497
+ ],
11498
+ _b[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11499
+ {
11500
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11501
+ rule: this.applyNetValueToDocumentStatusRule
11446
11502
  }
11447
11503
  ],
11448
11504
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11500,6 +11556,16 @@
11500
11556
  {
11501
11557
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11502
11558
  rule: this.taxClassificationStatusRule
11559
+ },
11560
+ {
11561
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11562
+ rule: this.applyNetValueToDocumentStatusRule
11563
+ }
11564
+ ],
11565
+ _c[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11566
+ {
11567
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11568
+ rule: this.applyNetValueToDocumentStatusRule
11503
11569
  }
11504
11570
  ],
11505
11571
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11557,6 +11623,16 @@
11557
11623
  {
11558
11624
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11559
11625
  rule: this.taxClassificationStatusRule
11626
+ },
11627
+ {
11628
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11629
+ rule: this.applyNetValueToDocumentStatusRule
11630
+ }
11631
+ ],
11632
+ _d[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11633
+ {
11634
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11635
+ rule: this.applyNetValueToDocumentStatusRule
11560
11636
  }
11561
11637
  ],
11562
11638
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11614,6 +11690,16 @@
11614
11690
  {
11615
11691
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11616
11692
  rule: this.taxClassificationStatusRule
11693
+ },
11694
+ {
11695
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11696
+ rule: this.applyNetValueToDocumentStatusRule
11697
+ }
11698
+ ],
11699
+ _e[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11700
+ {
11701
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11702
+ rule: this.applyNetValueToDocumentStatusRule
11617
11703
  }
11618
11704
  ],
11619
11705
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11671,6 +11757,16 @@
11671
11757
  {
11672
11758
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11673
11759
  rule: this.taxClassificationStatusRule
11760
+ },
11761
+ {
11762
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11763
+ rule: this.applyNetValueToDocumentStatusRule
11764
+ }
11765
+ ],
11766
+ _f[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11767
+ {
11768
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11769
+ rule: this.applyNetValueToDocumentStatusRule
11674
11770
  }
11675
11771
  ],
11676
11772
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11716,6 +11812,16 @@
11716
11812
  {
11717
11813
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11718
11814
  rule: this.taxClassificationStatusRule
11815
+ },
11816
+ {
11817
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11818
+ rule: this.applyNetValueToDocumentStatusRule
11819
+ }
11820
+ ],
11821
+ _g[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11822
+ {
11823
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11824
+ rule: this.applyNetValueToDocumentStatusRule
11719
11825
  }
11720
11826
  ],
11721
11827
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11773,6 +11879,16 @@
11773
11879
  {
11774
11880
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11775
11881
  rule: this.taxClassificationStatusRule
11882
+ },
11883
+ {
11884
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11885
+ rule: this.applyNetValueToDocumentStatusRule
11886
+ }
11887
+ ],
11888
+ _h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11889
+ {
11890
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11891
+ rule: this.applyNetValueToDocumentStatusRule
11776
11892
  }
11777
11893
  ],
11778
11894
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11830,6 +11946,16 @@
11830
11946
  {
11831
11947
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11832
11948
  rule: this.taxClassificationStatusRule
11949
+ },
11950
+ {
11951
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11952
+ rule: this.applyNetValueToDocumentStatusRule
11953
+ }
11954
+ ],
11955
+ _j[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11956
+ {
11957
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11958
+ rule: this.applyNetValueToDocumentStatusRule
11833
11959
  }
11834
11960
  ],
11835
11961
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11887,6 +12013,16 @@
11887
12013
  {
11888
12014
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11889
12015
  rule: this.taxClassificationStatusRule
12016
+ },
12017
+ {
12018
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12019
+ rule: this.applyNetValueToDocumentStatusRule
12020
+ }
12021
+ ],
12022
+ _k[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12023
+ {
12024
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12025
+ rule: this.applyNetValueToDocumentStatusRule
11890
12026
  }
11891
12027
  ],
11892
12028
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11946,9 +12082,10 @@
11946
12082
  return (_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : [];
11947
12083
  };
11948
12084
  IncomingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
11949
- { type: TaxClassificationStatusRule }
12085
+ { type: TaxClassificationStatusRule },
12086
+ { type: ApplyNetValueToDocumentStatusRule }
11950
12087
  ]; };
11951
- IncomingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
12088
+ IncomingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule), core.ɵɵinject(ApplyNetValueToDocumentStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
11952
12089
  IncomingInvoiceStatusRulesRegistry = __decorate([
11953
12090
  core.Injectable({ providedIn: 'root' })
11954
12091
  ], IncomingInvoiceStatusRulesRegistry);
@@ -11956,15 +12093,26 @@
11956
12093
  }());
11957
12094
 
11958
12095
  var OutgoingInvoiceStatusRulesRegistry = /** @class */ (function () {
11959
- function OutgoingInvoiceStatusRulesRegistry(taxClassificationStatusRule) {
12096
+ function OutgoingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
11960
12097
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
11961
12098
  this.taxClassificationStatusRule = taxClassificationStatusRule;
12099
+ this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
11962
12100
  this.strategies = {
11963
12101
  'Product And Service Sale': (_a = {},
11964
12102
  _a[exports.EnumTipoTributo.CBS] = [
11965
12103
  {
11966
12104
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11967
12105
  rule: this.taxClassificationStatusRule
12106
+ },
12107
+ {
12108
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12109
+ rule: this.applyNetValueToDocumentStatusRule
12110
+ }
12111
+ ],
12112
+ _a[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12113
+ {
12114
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12115
+ rule: this.applyNetValueToDocumentStatusRule
11968
12116
  }
11969
12117
  ],
11970
12118
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12022,6 +12170,16 @@
12022
12170
  {
12023
12171
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12024
12172
  rule: this.taxClassificationStatusRule
12173
+ },
12174
+ {
12175
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12176
+ rule: this.applyNetValueToDocumentStatusRule
12177
+ }
12178
+ ],
12179
+ _b[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12180
+ {
12181
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12182
+ rule: this.applyNetValueToDocumentStatusRule
12025
12183
  }
12026
12184
  ],
12027
12185
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12079,6 +12237,16 @@
12079
12237
  {
12080
12238
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12081
12239
  rule: this.taxClassificationStatusRule
12240
+ },
12241
+ {
12242
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12243
+ rule: this.applyNetValueToDocumentStatusRule
12244
+ }
12245
+ ],
12246
+ _c[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12247
+ {
12248
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12249
+ rule: this.applyNetValueToDocumentStatusRule
12082
12250
  }
12083
12251
  ],
12084
12252
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12136,6 +12304,16 @@
12136
12304
  {
12137
12305
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12138
12306
  rule: this.taxClassificationStatusRule
12307
+ },
12308
+ {
12309
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12310
+ rule: this.applyNetValueToDocumentStatusRule
12311
+ }
12312
+ ],
12313
+ _d[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12314
+ {
12315
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12316
+ rule: this.applyNetValueToDocumentStatusRule
12139
12317
  }
12140
12318
  ],
12141
12319
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12193,6 +12371,16 @@
12193
12371
  {
12194
12372
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12195
12373
  rule: this.taxClassificationStatusRule
12374
+ },
12375
+ {
12376
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12377
+ rule: this.applyNetValueToDocumentStatusRule
12378
+ }
12379
+ ],
12380
+ _e[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12381
+ {
12382
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12383
+ rule: this.applyNetValueToDocumentStatusRule
12196
12384
  }
12197
12385
  ],
12198
12386
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12250,6 +12438,16 @@
12250
12438
  {
12251
12439
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12252
12440
  rule: this.taxClassificationStatusRule
12441
+ },
12442
+ {
12443
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12444
+ rule: this.applyNetValueToDocumentStatusRule
12445
+ }
12446
+ ],
12447
+ _f[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12448
+ {
12449
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12450
+ rule: this.applyNetValueToDocumentStatusRule
12253
12451
  }
12254
12452
  ],
12255
12453
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12307,6 +12505,16 @@
12307
12505
  {
12308
12506
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12309
12507
  rule: this.taxClassificationStatusRule
12508
+ },
12509
+ {
12510
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12511
+ rule: this.applyNetValueToDocumentStatusRule
12512
+ }
12513
+ ],
12514
+ _g[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12515
+ {
12516
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12517
+ rule: this.applyNetValueToDocumentStatusRule
12310
12518
  }
12311
12519
  ],
12312
12520
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12364,6 +12572,16 @@
12364
12572
  {
12365
12573
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12366
12574
  rule: this.taxClassificationStatusRule
12575
+ },
12576
+ {
12577
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12578
+ rule: this.applyNetValueToDocumentStatusRule
12579
+ }
12580
+ ],
12581
+ _h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12582
+ {
12583
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12584
+ rule: this.applyNetValueToDocumentStatusRule
12367
12585
  }
12368
12586
  ],
12369
12587
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12421,6 +12639,16 @@
12421
12639
  {
12422
12640
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12423
12641
  rule: this.taxClassificationStatusRule
12642
+ },
12643
+ {
12644
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12645
+ rule: this.applyNetValueToDocumentStatusRule
12646
+ }
12647
+ ],
12648
+ _j[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12649
+ {
12650
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12651
+ rule: this.applyNetValueToDocumentStatusRule
12424
12652
  }
12425
12653
  ],
12426
12654
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12478,6 +12706,16 @@
12478
12706
  {
12479
12707
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12480
12708
  rule: this.taxClassificationStatusRule
12709
+ },
12710
+ {
12711
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12712
+ rule: this.applyNetValueToDocumentStatusRule
12713
+ }
12714
+ ],
12715
+ _k[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12716
+ {
12717
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12718
+ rule: this.applyNetValueToDocumentStatusRule
12481
12719
  }
12482
12720
  ],
12483
12721
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12547,6 +12785,16 @@
12547
12785
  {
12548
12786
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12549
12787
  rule: this.taxClassificationStatusRule
12788
+ },
12789
+ {
12790
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12791
+ rule: this.applyNetValueToDocumentStatusRule
12792
+ }
12793
+ ],
12794
+ _l[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12795
+ {
12796
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12797
+ rule: this.applyNetValueToDocumentStatusRule
12550
12798
  }
12551
12799
  ],
12552
12800
  _l[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12604,6 +12852,16 @@
12604
12852
  {
12605
12853
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12606
12854
  rule: this.taxClassificationStatusRule
12855
+ },
12856
+ {
12857
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12858
+ rule: this.applyNetValueToDocumentStatusRule
12859
+ }
12860
+ ],
12861
+ _m[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12862
+ {
12863
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12864
+ rule: this.applyNetValueToDocumentStatusRule
12607
12865
  }
12608
12866
  ],
12609
12867
  _m[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12661,6 +12919,16 @@
12661
12919
  {
12662
12920
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12663
12921
  rule: this.taxClassificationStatusRule
12922
+ },
12923
+ {
12924
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12925
+ rule: this.applyNetValueToDocumentStatusRule
12926
+ }
12927
+ ],
12928
+ _o[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12929
+ {
12930
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12931
+ rule: this.applyNetValueToDocumentStatusRule
12664
12932
  }
12665
12933
  ],
12666
12934
  _o[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12718,6 +12986,16 @@
12718
12986
  {
12719
12987
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12720
12988
  rule: this.taxClassificationStatusRule
12989
+ },
12990
+ {
12991
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12992
+ rule: this.applyNetValueToDocumentStatusRule
12993
+ }
12994
+ ],
12995
+ _p[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12996
+ {
12997
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12998
+ rule: this.applyNetValueToDocumentStatusRule
12721
12999
  }
12722
13000
  ],
12723
13001
  _p[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12775,6 +13053,16 @@
12775
13053
  {
12776
13054
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12777
13055
  rule: this.taxClassificationStatusRule
13056
+ },
13057
+ {
13058
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13059
+ rule: this.applyNetValueToDocumentStatusRule
13060
+ }
13061
+ ],
13062
+ _q[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13063
+ {
13064
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13065
+ rule: this.applyNetValueToDocumentStatusRule
12778
13066
  }
12779
13067
  ],
12780
13068
  _q[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12832,6 +13120,16 @@
12832
13120
  {
12833
13121
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12834
13122
  rule: this.taxClassificationStatusRule
13123
+ },
13124
+ {
13125
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13126
+ rule: this.applyNetValueToDocumentStatusRule
13127
+ }
13128
+ ],
13129
+ _r[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13130
+ {
13131
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13132
+ rule: this.applyNetValueToDocumentStatusRule
12835
13133
  }
12836
13134
  ],
12837
13135
  _r[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12889,6 +13187,16 @@
12889
13187
  {
12890
13188
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12891
13189
  rule: this.taxClassificationStatusRule
13190
+ },
13191
+ {
13192
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13193
+ rule: this.applyNetValueToDocumentStatusRule
13194
+ }
13195
+ ],
13196
+ _s[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13197
+ {
13198
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13199
+ rule: this.applyNetValueToDocumentStatusRule
12892
13200
  }
12893
13201
  ],
12894
13202
  _s[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12948,9 +13256,10 @@
12948
13256
  return ((_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : []);
12949
13257
  };
12950
13258
  OutgoingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
12951
- { type: TaxClassificationStatusRule }
13259
+ { type: TaxClassificationStatusRule },
13260
+ { type: ApplyNetValueToDocumentStatusRule }
12952
13261
  ]; };
12953
- OutgoingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceStatusRulesRegistry_Factory() { return new OutgoingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule)); }, token: OutgoingInvoiceStatusRulesRegistry, providedIn: "root" });
13262
+ OutgoingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceStatusRulesRegistry_Factory() { return new OutgoingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule), core.ɵɵinject(ApplyNetValueToDocumentStatusRule)); }, token: OutgoingInvoiceStatusRulesRegistry, providedIn: "root" });
12954
13263
  OutgoingInvoiceStatusRulesRegistry = __decorate([
12955
13264
  core.Injectable({ providedIn: 'root' })
12956
13265
  ], OutgoingInvoiceStatusRulesRegistry);
@@ -13027,21 +13336,47 @@
13027
13336
  ApplyNetValueToDocumentRequiredValidationRule.prototype.apply = function (_a) {
13028
13337
  var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
13029
13338
  switch (taxType) {
13339
+ case exports.EnumTipoTributo.CBS:
13340
+ case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
13341
+ {
13342
+ switch (document) {
13343
+ case 'Incoming Invoice':
13344
+ case 'Outgoing Invoice':
13345
+ {
13346
+ formGroup
13347
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13348
+ .setValidators([forms.Validators.required]);
13349
+ formGroup
13350
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13351
+ .updateValueAndValidity({
13352
+ emitEvent: false
13353
+ });
13354
+ }
13355
+ break;
13356
+ default:
13357
+ throw new Error("Regra ApplyNetValueToDocumentRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
13358
+ }
13359
+ }
13360
+ break;
13030
13361
  case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
13031
13362
  {
13032
13363
  switch (document) {
13033
13364
  case 'Incoming Invoice':
13034
13365
  case 'Outgoing Invoice':
13035
13366
  {
13036
- var control_1 = formGroup.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento);
13037
- control_1.valueChanges
13038
- .pipe(operators.startWith(control_1.value))
13367
+ formGroup
13368
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13369
+ .valueChanges.pipe(operators.startWith(formGroup.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento).value))
13039
13370
  .subscribe(function (value) {
13040
13371
  var validators = value
13041
13372
  ? [forms.Validators.required]
13042
13373
  : [];
13043
- control_1.setValidators(validators);
13044
- control_1.updateValueAndValidity({
13374
+ formGroup
13375
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13376
+ .setValidators(validators);
13377
+ formGroup
13378
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13379
+ .updateValueAndValidity({
13045
13380
  emitEvent: false
13046
13381
  });
13047
13382
  });
@@ -16145,7 +16480,7 @@
16145
16480
  },
16146
16481
  {
16147
16482
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16148
- rules: []
16483
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16149
16484
  }
16150
16485
  ],
16151
16486
  _a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -16181,7 +16516,7 @@
16181
16516
  },
16182
16517
  {
16183
16518
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16184
- rules: []
16519
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16185
16520
  }
16186
16521
  ],
16187
16522
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -16449,7 +16784,7 @@
16449
16784
  },
16450
16785
  {
16451
16786
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16452
- rules: []
16787
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16453
16788
  }
16454
16789
  ],
16455
16790
  _b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -16485,7 +16820,7 @@
16485
16820
  },
16486
16821
  {
16487
16822
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16488
- rules: []
16823
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16489
16824
  }
16490
16825
  ],
16491
16826
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -16753,7 +17088,7 @@
16753
17088
  },
16754
17089
  {
16755
17090
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16756
- rules: []
17091
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16757
17092
  }
16758
17093
  ],
16759
17094
  _c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -16789,7 +17124,7 @@
16789
17124
  },
16790
17125
  {
16791
17126
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16792
- rules: []
17127
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16793
17128
  }
16794
17129
  ],
16795
17130
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17057,7 +17392,7 @@
17057
17392
  },
17058
17393
  {
17059
17394
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17060
- rules: []
17395
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17061
17396
  }
17062
17397
  ],
17063
17398
  _d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -17093,7 +17428,7 @@
17093
17428
  },
17094
17429
  {
17095
17430
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17096
- rules: []
17431
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17097
17432
  }
17098
17433
  ],
17099
17434
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17361,7 +17696,7 @@
17361
17696
  },
17362
17697
  {
17363
17698
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17364
- rules: []
17699
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17365
17700
  }
17366
17701
  ],
17367
17702
  _e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -17397,7 +17732,7 @@
17397
17732
  },
17398
17733
  {
17399
17734
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17400
- rules: []
17735
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17401
17736
  }
17402
17737
  ],
17403
17738
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17665,7 +18000,7 @@
17665
18000
  },
17666
18001
  {
17667
18002
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17668
- rules: []
18003
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17669
18004
  }
17670
18005
  ],
17671
18006
  _f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -17701,7 +18036,7 @@
17701
18036
  },
17702
18037
  {
17703
18038
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17704
- rules: []
18039
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17705
18040
  }
17706
18041
  ],
17707
18042
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17969,7 +18304,7 @@
17969
18304
  },
17970
18305
  {
17971
18306
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17972
- rules: []
18307
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17973
18308
  }
17974
18309
  ],
17975
18310
  _g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18005,7 +18340,7 @@
18005
18340
  },
18006
18341
  {
18007
18342
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18008
- rules: []
18343
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18009
18344
  }
18010
18345
  ],
18011
18346
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18273,7 +18608,7 @@
18273
18608
  },
18274
18609
  {
18275
18610
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18276
- rules: []
18611
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18277
18612
  }
18278
18613
  ],
18279
18614
  _h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18309,7 +18644,7 @@
18309
18644
  },
18310
18645
  {
18311
18646
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18312
- rules: []
18647
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18313
18648
  }
18314
18649
  ],
18315
18650
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18577,7 +18912,7 @@
18577
18912
  },
18578
18913
  {
18579
18914
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18580
- rules: []
18915
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18581
18916
  }
18582
18917
  ],
18583
18918
  _j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18613,7 +18948,7 @@
18613
18948
  },
18614
18949
  {
18615
18950
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18616
- rules: []
18951
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18617
18952
  }
18618
18953
  ],
18619
18954
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18881,7 +19216,7 @@
18881
19216
  },
18882
19217
  {
18883
19218
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18884
- rules: []
19219
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18885
19220
  }
18886
19221
  ],
18887
19222
  _k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18917,7 +19252,7 @@
18917
19252
  },
18918
19253
  {
18919
19254
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18920
- rules: []
19255
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18921
19256
  }
18922
19257
  ],
18923
19258
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -19294,7 +19629,7 @@
19294
19629
  },
19295
19630
  {
19296
19631
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19297
- rules: []
19632
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19298
19633
  }
19299
19634
  ],
19300
19635
  _a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -19330,7 +19665,7 @@
19330
19665
  },
19331
19666
  {
19332
19667
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19333
- rules: []
19668
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19334
19669
  }
19335
19670
  ],
19336
19671
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -19598,7 +19933,7 @@
19598
19933
  },
19599
19934
  {
19600
19935
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19601
- rules: []
19936
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19602
19937
  }
19603
19938
  ],
19604
19939
  _b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -19634,7 +19969,7 @@
19634
19969
  },
19635
19970
  {
19636
19971
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19637
- rules: []
19972
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19638
19973
  }
19639
19974
  ],
19640
19975
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -19902,7 +20237,7 @@
19902
20237
  },
19903
20238
  {
19904
20239
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19905
- rules: []
20240
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19906
20241
  }
19907
20242
  ],
19908
20243
  _c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -19938,7 +20273,7 @@
19938
20273
  },
19939
20274
  {
19940
20275
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19941
- rules: []
20276
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19942
20277
  }
19943
20278
  ],
19944
20279
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -20206,7 +20541,7 @@
20206
20541
  },
20207
20542
  {
20208
20543
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20209
- rules: []
20544
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20210
20545
  }
20211
20546
  ],
20212
20547
  _d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -20242,7 +20577,7 @@
20242
20577
  },
20243
20578
  {
20244
20579
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20245
- rules: []
20580
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20246
20581
  }
20247
20582
  ],
20248
20583
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -20510,7 +20845,7 @@
20510
20845
  },
20511
20846
  {
20512
20847
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20513
- rules: []
20848
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20514
20849
  }
20515
20850
  ],
20516
20851
  _e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -20546,7 +20881,7 @@
20546
20881
  },
20547
20882
  {
20548
20883
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20549
- rules: []
20884
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20550
20885
  }
20551
20886
  ],
20552
20887
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -20814,7 +21149,7 @@
20814
21149
  },
20815
21150
  {
20816
21151
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20817
- rules: []
21152
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20818
21153
  }
20819
21154
  ],
20820
21155
  _f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -20850,7 +21185,7 @@
20850
21185
  },
20851
21186
  {
20852
21187
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20853
- rules: []
21188
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20854
21189
  }
20855
21190
  ],
20856
21191
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -21118,7 +21453,7 @@
21118
21453
  },
21119
21454
  {
21120
21455
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21121
- rules: []
21456
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21122
21457
  }
21123
21458
  ],
21124
21459
  _g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -21154,7 +21489,7 @@
21154
21489
  },
21155
21490
  {
21156
21491
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21157
- rules: []
21492
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21158
21493
  }
21159
21494
  ],
21160
21495
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -21422,7 +21757,7 @@
21422
21757
  },
21423
21758
  {
21424
21759
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21425
- rules: []
21760
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21426
21761
  }
21427
21762
  ],
21428
21763
  _h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -21458,7 +21793,7 @@
21458
21793
  },
21459
21794
  {
21460
21795
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21461
- rules: []
21796
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21462
21797
  }
21463
21798
  ],
21464
21799
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -21726,7 +22061,7 @@
21726
22061
  },
21727
22062
  {
21728
22063
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21729
- rules: []
22064
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21730
22065
  }
21731
22066
  ],
21732
22067
  _j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -21762,7 +22097,7 @@
21762
22097
  },
21763
22098
  {
21764
22099
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21765
- rules: []
22100
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21766
22101
  }
21767
22102
  ],
21768
22103
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -22030,7 +22365,7 @@
22030
22365
  },
22031
22366
  {
22032
22367
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22033
- rules: []
22368
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22034
22369
  }
22035
22370
  ],
22036
22371
  _k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -22066,7 +22401,7 @@
22066
22401
  },
22067
22402
  {
22068
22403
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22069
- rules: []
22404
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22070
22405
  }
22071
22406
  ],
22072
22407
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -22398,7 +22733,7 @@
22398
22733
  },
22399
22734
  {
22400
22735
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22401
- rules: []
22736
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22402
22737
  }
22403
22738
  ],
22404
22739
  _l[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -22434,7 +22769,7 @@
22434
22769
  },
22435
22770
  {
22436
22771
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22437
- rules: []
22772
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22438
22773
  }
22439
22774
  ],
22440
22775
  _l[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -22702,7 +23037,7 @@
22702
23037
  },
22703
23038
  {
22704
23039
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22705
- rules: []
23040
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22706
23041
  }
22707
23042
  ],
22708
23043
  _m[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -22738,7 +23073,7 @@
22738
23073
  },
22739
23074
  {
22740
23075
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22741
- rules: []
23076
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22742
23077
  }
22743
23078
  ],
22744
23079
  _m[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23006,7 +23341,7 @@
23006
23341
  },
23007
23342
  {
23008
23343
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23009
- rules: []
23344
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23010
23345
  }
23011
23346
  ],
23012
23347
  _o[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23042,7 +23377,7 @@
23042
23377
  },
23043
23378
  {
23044
23379
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23045
- rules: []
23380
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23046
23381
  }
23047
23382
  ],
23048
23383
  _o[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23310,7 +23645,7 @@
23310
23645
  },
23311
23646
  {
23312
23647
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23313
- rules: []
23648
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23314
23649
  }
23315
23650
  ],
23316
23651
  _p[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23346,7 +23681,7 @@
23346
23681
  },
23347
23682
  {
23348
23683
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23349
- rules: []
23684
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23350
23685
  }
23351
23686
  ],
23352
23687
  _p[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23614,7 +23949,7 @@
23614
23949
  },
23615
23950
  {
23616
23951
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23617
- rules: []
23952
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23618
23953
  }
23619
23954
  ],
23620
23955
  _q[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23650,7 +23985,7 @@
23650
23985
  },
23651
23986
  {
23652
23987
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23653
- rules: []
23988
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23654
23989
  }
23655
23990
  ],
23656
23991
  _q[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23918,7 +24253,7 @@
23918
24253
  },
23919
24254
  {
23920
24255
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23921
- rules: []
24256
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23922
24257
  }
23923
24258
  ],
23924
24259
  _r[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23954,7 +24289,7 @@
23954
24289
  },
23955
24290
  {
23956
24291
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23957
- rules: []
24292
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23958
24293
  }
23959
24294
  ],
23960
24295
  _r[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -24222,7 +24557,7 @@
24222
24557
  },
24223
24558
  {
24224
24559
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24225
- rules: []
24560
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24226
24561
  }
24227
24562
  ],
24228
24563
  _s[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -24258,7 +24593,7 @@
24258
24593
  },
24259
24594
  {
24260
24595
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24261
- rules: []
24596
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24262
24597
  }
24263
24598
  ],
24264
24599
  _s[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -31060,7 +31395,6 @@
31060
31395
  required: function () {
31061
31396
  return _this.isFieldRequired(exports.EnumCampoTributo.AplicarValorLiquidoDocumento, tributo);
31062
31397
  },
31063
- showClear: true,
31064
31398
  options: [
31065
31399
  tributo === exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO ||
31066
31400
  tributo === exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO
@@ -31159,7 +31493,7 @@
31159
31493
  { value: false, disabled: false },
31160
31494
  forms.Validators.compose([])
31161
31495
  ] }, _a[exports.EnumCampoTributo.TipoCalculoImposto] = [
31162
- { value: null, disabled: false },
31496
+ { value: undefined, disabled: false },
31163
31497
  forms.Validators.compose([])
31164
31498
  ], _a)));
31165
31499
  return retorno;
@@ -34593,54 +34927,55 @@
34593
34927
  exports.nonNullish = nonNullish;
34594
34928
  exports.ɵa = ErpResumoComponent;
34595
34929
  exports.ɵb = ErpResumoService;
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;
34930
+ exports.ɵba = TaxableBaseCalculationRule;
34931
+ exports.ɵbb = TaxAmountCalculator;
34932
+ exports.ɵbc = EffectiveTaxRateCalculator;
34933
+ exports.ɵbd = TaxRoundingService;
34934
+ exports.ɵbe = TaxStore;
34935
+ exports.ɵbf = TaxRateCalculationRule;
34936
+ exports.ɵbg = EffectiveTaxRateCalculationRule;
34937
+ exports.ɵbh = TaxAmountCalculationRule;
34938
+ exports.ɵbi = GrossAmountCalculationRule;
34939
+ exports.ɵbj = GrossAmountCalculator;
34940
+ exports.ɵbk = TaxSituationCalculationRule;
34941
+ exports.ɵbl = TaxClassificationCalculationRule;
34942
+ exports.ɵbm = TaxCalculationTypeCalculationRule;
34943
+ exports.ɵbn = ApplyNetValueToDocumentCalculationRule;
34944
+ exports.ɵbo = ManualTaxCalculationRule;
34945
+ exports.ɵbp = OutgoingInvoiceCalculationRulesRegistry;
34946
+ exports.ɵbq = AssessmentPeriodCalculationRule;
34947
+ exports.ɵbr = SaleOrderCalculationRulesRegistry;
34948
+ exports.ɵbs = PurchaseOrderCalculationRulesRegistry;
34949
+ exports.ɵbt = FocusService;
34950
+ exports.ɵbu = ErpLoteSeriesService;
34951
+ exports.ɵbv = QuantidadeDisponivelDemandaService;
34952
+ exports.ɵbw = EntityService;
34953
+ exports.ɵbx = QuantidadeDisponivelDemandaModule;
34954
+ exports.ɵby = ErpRateioEditorService;
34620
34955
  exports.ɵc = LoadingContext;
34621
34956
  exports.ɵd = ErpTributosService;
34622
34957
  exports.ɵe = RulesService;
34623
34958
  exports.ɵf = StatusRulesRegistry;
34624
34959
  exports.ɵg = IncomingInvoiceStatusRulesRegistry;
34625
34960
  exports.ɵh = TaxClassificationStatusRule;
34626
- exports.ɵi = OutgoingInvoiceStatusRulesRegistry;
34627
- exports.ɵj = SaleOrderStatusRulesRegistry;
34628
- exports.ɵk = PurchaseOrderStatusRulesRegistry;
34629
- exports.ɵl = ValidationRulesRegistry;
34630
- exports.ɵm = IncomingInvoiceValidationRulesRegistry;
34631
- exports.ɵn = TaxableBaseRequiredValidationRule;
34632
- exports.ɵo = TaxRateRequiredValidationRule;
34633
- exports.ɵp = TaxClassificationRequiredValidationRule;
34634
- exports.ɵq = TaxAmountRequiredValidationRule;
34635
- exports.ɵr = TaxSituationRequiredValidationRule;
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;
34961
+ exports.ɵi = ApplyNetValueToDocumentStatusRule;
34962
+ exports.ɵj = OutgoingInvoiceStatusRulesRegistry;
34963
+ exports.ɵk = SaleOrderStatusRulesRegistry;
34964
+ exports.ɵl = PurchaseOrderStatusRulesRegistry;
34965
+ exports.ɵm = ValidationRulesRegistry;
34966
+ exports.ɵn = IncomingInvoiceValidationRulesRegistry;
34967
+ exports.ɵo = TaxableBaseRequiredValidationRule;
34968
+ exports.ɵp = TaxRateRequiredValidationRule;
34969
+ exports.ɵq = TaxClassificationRequiredValidationRule;
34970
+ exports.ɵr = TaxAmountRequiredValidationRule;
34971
+ exports.ɵs = TaxSituationRequiredValidationRule;
34972
+ exports.ɵt = ApplyNetValueToDocumentRequiredValidationRule;
34973
+ exports.ɵu = OutgoingInvoiceValidationRulesRegistry;
34974
+ exports.ɵv = AssessmentPeriodRequiredValidationRule;
34975
+ exports.ɵw = SaleOrderValidationRulesRegistry;
34976
+ exports.ɵx = PurchaseOrderValidationRulesRegistry;
34977
+ exports.ɵy = CalculationRulesRegistry;
34978
+ exports.ɵz = IncomingInvoiceCalculationRulesRegistry;
34644
34979
 
34645
34980
  Object.defineProperty(exports, '__esModule', { value: true });
34646
34981