@senior-gestao-empresarial/erpx-components 4.13.0 → 4.15.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 +582 -136
  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 +148 -4
  10. package/esm2015/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +246 -4
  11. package/esm2015/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +38 -0
  12. package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +31 -31
  13. package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +52 -52
  14. package/esm2015/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +33 -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 +148 -4
  18. package/esm5/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +246 -4
  19. package/esm5/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +42 -0
  20. package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +31 -31
  21. package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +52 -52
  22. package/esm5/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +33 -6
  23. package/esm5/senior-gestao-empresarial-erpx-components.js +44 -43
  24. package/fesm2015/senior-gestao-empresarial-erpx-components.js +536 -95
  25. package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
  26. package/fesm5/senior-gestao-empresarial-erpx-components.js +540 -95
  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,43 @@
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
+ case exports.EnumTipoTributo.IBS_ESTADUAL:
11289
+ {
11290
+ switch (document) {
11291
+ case 'Incoming Invoice':
11292
+ case 'Outgoing Invoice':
11293
+ {
11294
+ formGroup
11295
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
11296
+ .enable({
11297
+ emitEvent: false
11298
+ });
11299
+ }
11300
+ break;
11301
+ default:
11302
+ throw new Error("Regra ApplyNetValueToDocumentStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
11303
+ }
11304
+ }
11305
+ break;
11306
+ default:
11307
+ throw new Error("Regra ApplyNetValueToDocumentStatusRule n\u00E3o implementada para o imposto " + taxType + ".");
11308
+ }
11309
+ };
11310
+ ApplyNetValueToDocumentStatusRule.ɵprov = core.ɵɵdefineInjectable({ factory: function ApplyNetValueToDocumentStatusRule_Factory() { return new ApplyNetValueToDocumentStatusRule(); }, token: ApplyNetValueToDocumentStatusRule, providedIn: "root" });
11311
+ ApplyNetValueToDocumentStatusRule = __decorate([
11312
+ core.Injectable({ providedIn: 'root' })
11313
+ ], ApplyNetValueToDocumentStatusRule);
11314
+ return ApplyNetValueToDocumentStatusRule;
11315
+ }());
11316
+
11280
11317
  var TaxClassificationStatusRule = /** @class */ (function () {
11281
11318
  function TaxClassificationStatusRule() {
11282
11319
  }
@@ -11377,15 +11414,26 @@
11377
11414
  }());
11378
11415
 
11379
11416
  var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
11380
- function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule) {
11417
+ function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
11381
11418
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
11382
11419
  this.taxClassificationStatusRule = taxClassificationStatusRule;
11420
+ this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
11383
11421
  this.strategies = {
11384
11422
  Adjustment: (_a = {},
11385
11423
  _a[exports.EnumTipoTributo.CBS] = [
11386
11424
  {
11387
11425
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11388
11426
  rule: this.taxClassificationStatusRule
11427
+ },
11428
+ {
11429
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11430
+ rule: this.applyNetValueToDocumentStatusRule
11431
+ }
11432
+ ],
11433
+ _a[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11434
+ {
11435
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11436
+ rule: this.applyNetValueToDocumentStatusRule
11389
11437
  }
11390
11438
  ],
11391
11439
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11398,6 +11446,10 @@
11398
11446
  {
11399
11447
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11400
11448
  rule: this.taxClassificationStatusRule
11449
+ },
11450
+ {
11451
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11452
+ rule: this.applyNetValueToDocumentStatusRule
11401
11453
  }
11402
11454
  ],
11403
11455
  _a[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11443,6 +11495,16 @@
11443
11495
  {
11444
11496
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11445
11497
  rule: this.taxClassificationStatusRule
11498
+ },
11499
+ {
11500
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11501
+ rule: this.applyNetValueToDocumentStatusRule
11502
+ }
11503
+ ],
11504
+ _b[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11505
+ {
11506
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11507
+ rule: this.applyNetValueToDocumentStatusRule
11446
11508
  }
11447
11509
  ],
11448
11510
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11455,6 +11517,10 @@
11455
11517
  {
11456
11518
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11457
11519
  rule: this.taxClassificationStatusRule
11520
+ },
11521
+ {
11522
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11523
+ rule: this.applyNetValueToDocumentStatusRule
11458
11524
  }
11459
11525
  ],
11460
11526
  _b[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11500,6 +11566,16 @@
11500
11566
  {
11501
11567
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11502
11568
  rule: this.taxClassificationStatusRule
11569
+ },
11570
+ {
11571
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11572
+ rule: this.applyNetValueToDocumentStatusRule
11573
+ }
11574
+ ],
11575
+ _c[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11576
+ {
11577
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11578
+ rule: this.applyNetValueToDocumentStatusRule
11503
11579
  }
11504
11580
  ],
11505
11581
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11512,6 +11588,10 @@
11512
11588
  {
11513
11589
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11514
11590
  rule: this.taxClassificationStatusRule
11591
+ },
11592
+ {
11593
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11594
+ rule: this.applyNetValueToDocumentStatusRule
11515
11595
  }
11516
11596
  ],
11517
11597
  _c[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11557,6 +11637,16 @@
11557
11637
  {
11558
11638
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11559
11639
  rule: this.taxClassificationStatusRule
11640
+ },
11641
+ {
11642
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11643
+ rule: this.applyNetValueToDocumentStatusRule
11644
+ }
11645
+ ],
11646
+ _d[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11647
+ {
11648
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11649
+ rule: this.applyNetValueToDocumentStatusRule
11560
11650
  }
11561
11651
  ],
11562
11652
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11569,6 +11659,10 @@
11569
11659
  {
11570
11660
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11571
11661
  rule: this.taxClassificationStatusRule
11662
+ },
11663
+ {
11664
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11665
+ rule: this.applyNetValueToDocumentStatusRule
11572
11666
  }
11573
11667
  ],
11574
11668
  _d[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11614,6 +11708,16 @@
11614
11708
  {
11615
11709
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11616
11710
  rule: this.taxClassificationStatusRule
11711
+ },
11712
+ {
11713
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11714
+ rule: this.applyNetValueToDocumentStatusRule
11715
+ }
11716
+ ],
11717
+ _e[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11718
+ {
11719
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11720
+ rule: this.applyNetValueToDocumentStatusRule
11617
11721
  }
11618
11722
  ],
11619
11723
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11626,6 +11730,10 @@
11626
11730
  {
11627
11731
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11628
11732
  rule: this.taxClassificationStatusRule
11733
+ },
11734
+ {
11735
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11736
+ rule: this.applyNetValueToDocumentStatusRule
11629
11737
  }
11630
11738
  ],
11631
11739
  _e[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11671,6 +11779,16 @@
11671
11779
  {
11672
11780
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11673
11781
  rule: this.taxClassificationStatusRule
11782
+ },
11783
+ {
11784
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11785
+ rule: this.applyNetValueToDocumentStatusRule
11786
+ }
11787
+ ],
11788
+ _f[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11789
+ {
11790
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11791
+ rule: this.applyNetValueToDocumentStatusRule
11674
11792
  }
11675
11793
  ],
11676
11794
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11683,6 +11801,10 @@
11683
11801
  {
11684
11802
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11685
11803
  rule: this.taxClassificationStatusRule
11804
+ },
11805
+ {
11806
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11807
+ rule: this.applyNetValueToDocumentStatusRule
11686
11808
  }
11687
11809
  ],
11688
11810
  _f[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11716,6 +11838,16 @@
11716
11838
  {
11717
11839
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11718
11840
  rule: this.taxClassificationStatusRule
11841
+ },
11842
+ {
11843
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11844
+ rule: this.applyNetValueToDocumentStatusRule
11845
+ }
11846
+ ],
11847
+ _g[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11848
+ {
11849
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11850
+ rule: this.applyNetValueToDocumentStatusRule
11719
11851
  }
11720
11852
  ],
11721
11853
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11728,6 +11860,10 @@
11728
11860
  {
11729
11861
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11730
11862
  rule: this.taxClassificationStatusRule
11863
+ },
11864
+ {
11865
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11866
+ rule: this.applyNetValueToDocumentStatusRule
11731
11867
  }
11732
11868
  ],
11733
11869
  _g[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11773,6 +11909,16 @@
11773
11909
  {
11774
11910
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11775
11911
  rule: this.taxClassificationStatusRule
11912
+ },
11913
+ {
11914
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11915
+ rule: this.applyNetValueToDocumentStatusRule
11916
+ }
11917
+ ],
11918
+ _h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11919
+ {
11920
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11921
+ rule: this.applyNetValueToDocumentStatusRule
11776
11922
  }
11777
11923
  ],
11778
11924
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11785,6 +11931,10 @@
11785
11931
  {
11786
11932
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11787
11933
  rule: this.taxClassificationStatusRule
11934
+ },
11935
+ {
11936
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11937
+ rule: this.applyNetValueToDocumentStatusRule
11788
11938
  }
11789
11939
  ],
11790
11940
  _h[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11830,6 +11980,16 @@
11830
11980
  {
11831
11981
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11832
11982
  rule: this.taxClassificationStatusRule
11983
+ },
11984
+ {
11985
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11986
+ rule: this.applyNetValueToDocumentStatusRule
11987
+ }
11988
+ ],
11989
+ _j[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
11990
+ {
11991
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
11992
+ rule: this.applyNetValueToDocumentStatusRule
11833
11993
  }
11834
11994
  ],
11835
11995
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11842,6 +12002,10 @@
11842
12002
  {
11843
12003
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11844
12004
  rule: this.taxClassificationStatusRule
12005
+ },
12006
+ {
12007
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12008
+ rule: this.applyNetValueToDocumentStatusRule
11845
12009
  }
11846
12010
  ],
11847
12011
  _j[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11887,6 +12051,16 @@
11887
12051
  {
11888
12052
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11889
12053
  rule: this.taxClassificationStatusRule
12054
+ },
12055
+ {
12056
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12057
+ rule: this.applyNetValueToDocumentStatusRule
12058
+ }
12059
+ ],
12060
+ _k[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12061
+ {
12062
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12063
+ rule: this.applyNetValueToDocumentStatusRule
11890
12064
  }
11891
12065
  ],
11892
12066
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11899,6 +12073,10 @@
11899
12073
  {
11900
12074
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11901
12075
  rule: this.taxClassificationStatusRule
12076
+ },
12077
+ {
12078
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12079
+ rule: this.applyNetValueToDocumentStatusRule
11902
12080
  }
11903
12081
  ],
11904
12082
  _k[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -11946,9 +12124,10 @@
11946
12124
  return (_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : [];
11947
12125
  };
11948
12126
  IncomingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
11949
- { type: TaxClassificationStatusRule }
12127
+ { type: TaxClassificationStatusRule },
12128
+ { type: ApplyNetValueToDocumentStatusRule }
11950
12129
  ]; };
11951
- IncomingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
12130
+ IncomingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule), core.ɵɵinject(ApplyNetValueToDocumentStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
11952
12131
  IncomingInvoiceStatusRulesRegistry = __decorate([
11953
12132
  core.Injectable({ providedIn: 'root' })
11954
12133
  ], IncomingInvoiceStatusRulesRegistry);
@@ -11956,15 +12135,26 @@
11956
12135
  }());
11957
12136
 
11958
12137
  var OutgoingInvoiceStatusRulesRegistry = /** @class */ (function () {
11959
- function OutgoingInvoiceStatusRulesRegistry(taxClassificationStatusRule) {
12138
+ function OutgoingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
11960
12139
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
11961
12140
  this.taxClassificationStatusRule = taxClassificationStatusRule;
12141
+ this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
11962
12142
  this.strategies = {
11963
12143
  'Product And Service Sale': (_a = {},
11964
12144
  _a[exports.EnumTipoTributo.CBS] = [
11965
12145
  {
11966
12146
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11967
12147
  rule: this.taxClassificationStatusRule
12148
+ },
12149
+ {
12150
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12151
+ rule: this.applyNetValueToDocumentStatusRule
12152
+ }
12153
+ ],
12154
+ _a[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12155
+ {
12156
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12157
+ rule: this.applyNetValueToDocumentStatusRule
11968
12158
  }
11969
12159
  ],
11970
12160
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -11977,6 +12167,10 @@
11977
12167
  {
11978
12168
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
11979
12169
  rule: this.taxClassificationStatusRule
12170
+ },
12171
+ {
12172
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12173
+ rule: this.applyNetValueToDocumentStatusRule
11980
12174
  }
11981
12175
  ],
11982
12176
  _a[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12022,6 +12216,16 @@
12022
12216
  {
12023
12217
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12024
12218
  rule: this.taxClassificationStatusRule
12219
+ },
12220
+ {
12221
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12222
+ rule: this.applyNetValueToDocumentStatusRule
12223
+ }
12224
+ ],
12225
+ _b[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12226
+ {
12227
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12228
+ rule: this.applyNetValueToDocumentStatusRule
12025
12229
  }
12026
12230
  ],
12027
12231
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12034,6 +12238,10 @@
12034
12238
  {
12035
12239
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12036
12240
  rule: this.taxClassificationStatusRule
12241
+ },
12242
+ {
12243
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12244
+ rule: this.applyNetValueToDocumentStatusRule
12037
12245
  }
12038
12246
  ],
12039
12247
  _b[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12079,6 +12287,16 @@
12079
12287
  {
12080
12288
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12081
12289
  rule: this.taxClassificationStatusRule
12290
+ },
12291
+ {
12292
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12293
+ rule: this.applyNetValueToDocumentStatusRule
12294
+ }
12295
+ ],
12296
+ _c[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12297
+ {
12298
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12299
+ rule: this.applyNetValueToDocumentStatusRule
12082
12300
  }
12083
12301
  ],
12084
12302
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12091,6 +12309,10 @@
12091
12309
  {
12092
12310
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12093
12311
  rule: this.taxClassificationStatusRule
12312
+ },
12313
+ {
12314
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12315
+ rule: this.applyNetValueToDocumentStatusRule
12094
12316
  }
12095
12317
  ],
12096
12318
  _c[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12136,6 +12358,16 @@
12136
12358
  {
12137
12359
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12138
12360
  rule: this.taxClassificationStatusRule
12361
+ },
12362
+ {
12363
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12364
+ rule: this.applyNetValueToDocumentStatusRule
12365
+ }
12366
+ ],
12367
+ _d[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12368
+ {
12369
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12370
+ rule: this.applyNetValueToDocumentStatusRule
12139
12371
  }
12140
12372
  ],
12141
12373
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12148,6 +12380,10 @@
12148
12380
  {
12149
12381
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12150
12382
  rule: this.taxClassificationStatusRule
12383
+ },
12384
+ {
12385
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12386
+ rule: this.applyNetValueToDocumentStatusRule
12151
12387
  }
12152
12388
  ],
12153
12389
  _d[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12193,6 +12429,16 @@
12193
12429
  {
12194
12430
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12195
12431
  rule: this.taxClassificationStatusRule
12432
+ },
12433
+ {
12434
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12435
+ rule: this.applyNetValueToDocumentStatusRule
12436
+ }
12437
+ ],
12438
+ _e[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12439
+ {
12440
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12441
+ rule: this.applyNetValueToDocumentStatusRule
12196
12442
  }
12197
12443
  ],
12198
12444
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12205,6 +12451,10 @@
12205
12451
  {
12206
12452
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12207
12453
  rule: this.taxClassificationStatusRule
12454
+ },
12455
+ {
12456
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12457
+ rule: this.applyNetValueToDocumentStatusRule
12208
12458
  }
12209
12459
  ],
12210
12460
  _e[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12250,6 +12500,16 @@
12250
12500
  {
12251
12501
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12252
12502
  rule: this.taxClassificationStatusRule
12503
+ },
12504
+ {
12505
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12506
+ rule: this.applyNetValueToDocumentStatusRule
12507
+ }
12508
+ ],
12509
+ _f[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12510
+ {
12511
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12512
+ rule: this.applyNetValueToDocumentStatusRule
12253
12513
  }
12254
12514
  ],
12255
12515
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12262,6 +12522,10 @@
12262
12522
  {
12263
12523
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12264
12524
  rule: this.taxClassificationStatusRule
12525
+ },
12526
+ {
12527
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12528
+ rule: this.applyNetValueToDocumentStatusRule
12265
12529
  }
12266
12530
  ],
12267
12531
  _f[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12307,6 +12571,16 @@
12307
12571
  {
12308
12572
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12309
12573
  rule: this.taxClassificationStatusRule
12574
+ },
12575
+ {
12576
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12577
+ rule: this.applyNetValueToDocumentStatusRule
12578
+ }
12579
+ ],
12580
+ _g[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12581
+ {
12582
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12583
+ rule: this.applyNetValueToDocumentStatusRule
12310
12584
  }
12311
12585
  ],
12312
12586
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12319,6 +12593,10 @@
12319
12593
  {
12320
12594
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12321
12595
  rule: this.taxClassificationStatusRule
12596
+ },
12597
+ {
12598
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12599
+ rule: this.applyNetValueToDocumentStatusRule
12322
12600
  }
12323
12601
  ],
12324
12602
  _g[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12364,6 +12642,16 @@
12364
12642
  {
12365
12643
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12366
12644
  rule: this.taxClassificationStatusRule
12645
+ },
12646
+ {
12647
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12648
+ rule: this.applyNetValueToDocumentStatusRule
12649
+ }
12650
+ ],
12651
+ _h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12652
+ {
12653
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12654
+ rule: this.applyNetValueToDocumentStatusRule
12367
12655
  }
12368
12656
  ],
12369
12657
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12376,6 +12664,10 @@
12376
12664
  {
12377
12665
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12378
12666
  rule: this.taxClassificationStatusRule
12667
+ },
12668
+ {
12669
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12670
+ rule: this.applyNetValueToDocumentStatusRule
12379
12671
  }
12380
12672
  ],
12381
12673
  _h[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12421,6 +12713,16 @@
12421
12713
  {
12422
12714
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12423
12715
  rule: this.taxClassificationStatusRule
12716
+ },
12717
+ {
12718
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12719
+ rule: this.applyNetValueToDocumentStatusRule
12720
+ }
12721
+ ],
12722
+ _j[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12723
+ {
12724
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12725
+ rule: this.applyNetValueToDocumentStatusRule
12424
12726
  }
12425
12727
  ],
12426
12728
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12433,6 +12735,10 @@
12433
12735
  {
12434
12736
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12435
12737
  rule: this.taxClassificationStatusRule
12738
+ },
12739
+ {
12740
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12741
+ rule: this.applyNetValueToDocumentStatusRule
12436
12742
  }
12437
12743
  ],
12438
12744
  _j[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12478,6 +12784,16 @@
12478
12784
  {
12479
12785
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12480
12786
  rule: this.taxClassificationStatusRule
12787
+ },
12788
+ {
12789
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12790
+ rule: this.applyNetValueToDocumentStatusRule
12791
+ }
12792
+ ],
12793
+ _k[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12794
+ {
12795
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12796
+ rule: this.applyNetValueToDocumentStatusRule
12481
12797
  }
12482
12798
  ],
12483
12799
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12490,6 +12806,10 @@
12490
12806
  {
12491
12807
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12492
12808
  rule: this.taxClassificationStatusRule
12809
+ },
12810
+ {
12811
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12812
+ rule: this.applyNetValueToDocumentStatusRule
12493
12813
  }
12494
12814
  ],
12495
12815
  _k[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12547,6 +12867,16 @@
12547
12867
  {
12548
12868
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12549
12869
  rule: this.taxClassificationStatusRule
12870
+ },
12871
+ {
12872
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12873
+ rule: this.applyNetValueToDocumentStatusRule
12874
+ }
12875
+ ],
12876
+ _l[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12877
+ {
12878
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12879
+ rule: this.applyNetValueToDocumentStatusRule
12550
12880
  }
12551
12881
  ],
12552
12882
  _l[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12559,6 +12889,10 @@
12559
12889
  {
12560
12890
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12561
12891
  rule: this.taxClassificationStatusRule
12892
+ },
12893
+ {
12894
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12895
+ rule: this.applyNetValueToDocumentStatusRule
12562
12896
  }
12563
12897
  ],
12564
12898
  _l[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12604,6 +12938,16 @@
12604
12938
  {
12605
12939
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12606
12940
  rule: this.taxClassificationStatusRule
12941
+ },
12942
+ {
12943
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12944
+ rule: this.applyNetValueToDocumentStatusRule
12945
+ }
12946
+ ],
12947
+ _m[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
12948
+ {
12949
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12950
+ rule: this.applyNetValueToDocumentStatusRule
12607
12951
  }
12608
12952
  ],
12609
12953
  _m[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12616,6 +12960,10 @@
12616
12960
  {
12617
12961
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12618
12962
  rule: this.taxClassificationStatusRule
12963
+ },
12964
+ {
12965
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
12966
+ rule: this.applyNetValueToDocumentStatusRule
12619
12967
  }
12620
12968
  ],
12621
12969
  _m[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12661,6 +13009,16 @@
12661
13009
  {
12662
13010
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12663
13011
  rule: this.taxClassificationStatusRule
13012
+ },
13013
+ {
13014
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13015
+ rule: this.applyNetValueToDocumentStatusRule
13016
+ }
13017
+ ],
13018
+ _o[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13019
+ {
13020
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13021
+ rule: this.applyNetValueToDocumentStatusRule
12664
13022
  }
12665
13023
  ],
12666
13024
  _o[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12673,6 +13031,10 @@
12673
13031
  {
12674
13032
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12675
13033
  rule: this.taxClassificationStatusRule
13034
+ },
13035
+ {
13036
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13037
+ rule: this.applyNetValueToDocumentStatusRule
12676
13038
  }
12677
13039
  ],
12678
13040
  _o[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12718,6 +13080,16 @@
12718
13080
  {
12719
13081
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12720
13082
  rule: this.taxClassificationStatusRule
13083
+ },
13084
+ {
13085
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13086
+ rule: this.applyNetValueToDocumentStatusRule
13087
+ }
13088
+ ],
13089
+ _p[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13090
+ {
13091
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13092
+ rule: this.applyNetValueToDocumentStatusRule
12721
13093
  }
12722
13094
  ],
12723
13095
  _p[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12730,6 +13102,10 @@
12730
13102
  {
12731
13103
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12732
13104
  rule: this.taxClassificationStatusRule
13105
+ },
13106
+ {
13107
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13108
+ rule: this.applyNetValueToDocumentStatusRule
12733
13109
  }
12734
13110
  ],
12735
13111
  _p[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12775,6 +13151,16 @@
12775
13151
  {
12776
13152
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12777
13153
  rule: this.taxClassificationStatusRule
13154
+ },
13155
+ {
13156
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13157
+ rule: this.applyNetValueToDocumentStatusRule
13158
+ }
13159
+ ],
13160
+ _q[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13161
+ {
13162
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13163
+ rule: this.applyNetValueToDocumentStatusRule
12778
13164
  }
12779
13165
  ],
12780
13166
  _q[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12787,6 +13173,10 @@
12787
13173
  {
12788
13174
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12789
13175
  rule: this.taxClassificationStatusRule
13176
+ },
13177
+ {
13178
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13179
+ rule: this.applyNetValueToDocumentStatusRule
12790
13180
  }
12791
13181
  ],
12792
13182
  _q[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12832,6 +13222,16 @@
12832
13222
  {
12833
13223
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12834
13224
  rule: this.taxClassificationStatusRule
13225
+ },
13226
+ {
13227
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13228
+ rule: this.applyNetValueToDocumentStatusRule
13229
+ }
13230
+ ],
13231
+ _r[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13232
+ {
13233
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13234
+ rule: this.applyNetValueToDocumentStatusRule
12835
13235
  }
12836
13236
  ],
12837
13237
  _r[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12844,6 +13244,10 @@
12844
13244
  {
12845
13245
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12846
13246
  rule: this.taxClassificationStatusRule
13247
+ },
13248
+ {
13249
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13250
+ rule: this.applyNetValueToDocumentStatusRule
12847
13251
  }
12848
13252
  ],
12849
13253
  _r[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12889,6 +13293,16 @@
12889
13293
  {
12890
13294
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12891
13295
  rule: this.taxClassificationStatusRule
13296
+ },
13297
+ {
13298
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13299
+ rule: this.applyNetValueToDocumentStatusRule
13300
+ }
13301
+ ],
13302
+ _s[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
13303
+ {
13304
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13305
+ rule: this.applyNetValueToDocumentStatusRule
12892
13306
  }
12893
13307
  ],
12894
13308
  _s[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -12901,6 +13315,10 @@
12901
13315
  {
12902
13316
  field: exports.EnumCampoTributo.ClassificacaoTributaria,
12903
13317
  rule: this.taxClassificationStatusRule
13318
+ },
13319
+ {
13320
+ field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
13321
+ rule: this.applyNetValueToDocumentStatusRule
12904
13322
  }
12905
13323
  ],
12906
13324
  _s[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
@@ -12948,9 +13366,10 @@
12948
13366
  return ((_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : []);
12949
13367
  };
12950
13368
  OutgoingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
12951
- { type: TaxClassificationStatusRule }
13369
+ { type: TaxClassificationStatusRule },
13370
+ { type: ApplyNetValueToDocumentStatusRule }
12952
13371
  ]; };
12953
- OutgoingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceStatusRulesRegistry_Factory() { return new OutgoingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule)); }, token: OutgoingInvoiceStatusRulesRegistry, providedIn: "root" });
13372
+ OutgoingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceStatusRulesRegistry_Factory() { return new OutgoingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule), core.ɵɵinject(ApplyNetValueToDocumentStatusRule)); }, token: OutgoingInvoiceStatusRulesRegistry, providedIn: "root" });
12954
13373
  OutgoingInvoiceStatusRulesRegistry = __decorate([
12955
13374
  core.Injectable({ providedIn: 'root' })
12956
13375
  ], OutgoingInvoiceStatusRulesRegistry);
@@ -13027,21 +13446,48 @@
13027
13446
  ApplyNetValueToDocumentRequiredValidationRule.prototype.apply = function (_a) {
13028
13447
  var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
13029
13448
  switch (taxType) {
13449
+ case exports.EnumTipoTributo.CBS:
13450
+ case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
13451
+ case exports.EnumTipoTributo.IBS_ESTADUAL:
13452
+ {
13453
+ switch (document) {
13454
+ case 'Incoming Invoice':
13455
+ case 'Outgoing Invoice':
13456
+ {
13457
+ formGroup
13458
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13459
+ .setValidators([forms.Validators.required]);
13460
+ formGroup
13461
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13462
+ .updateValueAndValidity({
13463
+ emitEvent: false
13464
+ });
13465
+ }
13466
+ break;
13467
+ default:
13468
+ throw new Error("Regra ApplyNetValueToDocumentRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
13469
+ }
13470
+ }
13471
+ break;
13030
13472
  case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
13031
13473
  {
13032
13474
  switch (document) {
13033
13475
  case 'Incoming Invoice':
13034
13476
  case 'Outgoing Invoice':
13035
13477
  {
13036
- var control_1 = formGroup.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento);
13037
- control_1.valueChanges
13038
- .pipe(operators.startWith(control_1.value))
13478
+ formGroup
13479
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13480
+ .valueChanges.pipe(operators.startWith(formGroup.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento).value))
13039
13481
  .subscribe(function (value) {
13040
13482
  var validators = value
13041
13483
  ? [forms.Validators.required]
13042
13484
  : [];
13043
- control_1.setValidators(validators);
13044
- control_1.updateValueAndValidity({
13485
+ formGroup
13486
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13487
+ .setValidators(validators);
13488
+ formGroup
13489
+ .get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
13490
+ .updateValueAndValidity({
13045
13491
  emitEvent: false
13046
13492
  });
13047
13493
  });
@@ -16145,7 +16591,7 @@
16145
16591
  },
16146
16592
  {
16147
16593
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16148
- rules: []
16594
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16149
16595
  }
16150
16596
  ],
16151
16597
  _a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -16181,7 +16627,7 @@
16181
16627
  },
16182
16628
  {
16183
16629
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16184
- rules: []
16630
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16185
16631
  }
16186
16632
  ],
16187
16633
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -16239,7 +16685,7 @@
16239
16685
  },
16240
16686
  {
16241
16687
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16242
- rules: []
16688
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16243
16689
  }
16244
16690
  ],
16245
16691
  _a[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -16449,7 +16895,7 @@
16449
16895
  },
16450
16896
  {
16451
16897
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16452
- rules: []
16898
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16453
16899
  }
16454
16900
  ],
16455
16901
  _b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -16485,7 +16931,7 @@
16485
16931
  },
16486
16932
  {
16487
16933
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16488
- rules: []
16934
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16489
16935
  }
16490
16936
  ],
16491
16937
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -16543,7 +16989,7 @@
16543
16989
  },
16544
16990
  {
16545
16991
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16546
- rules: []
16992
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16547
16993
  }
16548
16994
  ],
16549
16995
  _b[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -16753,7 +17199,7 @@
16753
17199
  },
16754
17200
  {
16755
17201
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16756
- rules: []
17202
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16757
17203
  }
16758
17204
  ],
16759
17205
  _c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -16789,7 +17235,7 @@
16789
17235
  },
16790
17236
  {
16791
17237
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16792
- rules: []
17238
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16793
17239
  }
16794
17240
  ],
16795
17241
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -16847,7 +17293,7 @@
16847
17293
  },
16848
17294
  {
16849
17295
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
16850
- rules: []
17296
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
16851
17297
  }
16852
17298
  ],
16853
17299
  _c[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -17057,7 +17503,7 @@
17057
17503
  },
17058
17504
  {
17059
17505
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17060
- rules: []
17506
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17061
17507
  }
17062
17508
  ],
17063
17509
  _d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -17093,7 +17539,7 @@
17093
17539
  },
17094
17540
  {
17095
17541
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17096
- rules: []
17542
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17097
17543
  }
17098
17544
  ],
17099
17545
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17151,7 +17597,7 @@
17151
17597
  },
17152
17598
  {
17153
17599
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17154
- rules: []
17600
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17155
17601
  }
17156
17602
  ],
17157
17603
  _d[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -17361,7 +17807,7 @@
17361
17807
  },
17362
17808
  {
17363
17809
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17364
- rules: []
17810
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17365
17811
  }
17366
17812
  ],
17367
17813
  _e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -17397,7 +17843,7 @@
17397
17843
  },
17398
17844
  {
17399
17845
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17400
- rules: []
17846
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17401
17847
  }
17402
17848
  ],
17403
17849
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17455,7 +17901,7 @@
17455
17901
  },
17456
17902
  {
17457
17903
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17458
- rules: []
17904
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17459
17905
  }
17460
17906
  ],
17461
17907
  _e[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -17665,7 +18111,7 @@
17665
18111
  },
17666
18112
  {
17667
18113
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17668
- rules: []
18114
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17669
18115
  }
17670
18116
  ],
17671
18117
  _f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -17701,7 +18147,7 @@
17701
18147
  },
17702
18148
  {
17703
18149
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17704
- rules: []
18150
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17705
18151
  }
17706
18152
  ],
17707
18153
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -17759,7 +18205,7 @@
17759
18205
  },
17760
18206
  {
17761
18207
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17762
- rules: []
18208
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17763
18209
  }
17764
18210
  ],
17765
18211
  _f[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -17969,7 +18415,7 @@
17969
18415
  },
17970
18416
  {
17971
18417
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
17972
- rules: []
18418
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
17973
18419
  }
17974
18420
  ],
17975
18421
  _g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18005,7 +18451,7 @@
18005
18451
  },
18006
18452
  {
18007
18453
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18008
- rules: []
18454
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18009
18455
  }
18010
18456
  ],
18011
18457
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18063,7 +18509,7 @@
18063
18509
  },
18064
18510
  {
18065
18511
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18066
- rules: []
18512
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18067
18513
  }
18068
18514
  ],
18069
18515
  _g[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -18273,7 +18719,7 @@
18273
18719
  },
18274
18720
  {
18275
18721
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18276
- rules: []
18722
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18277
18723
  }
18278
18724
  ],
18279
18725
  _h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18309,7 +18755,7 @@
18309
18755
  },
18310
18756
  {
18311
18757
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18312
- rules: []
18758
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18313
18759
  }
18314
18760
  ],
18315
18761
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18367,7 +18813,7 @@
18367
18813
  },
18368
18814
  {
18369
18815
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18370
- rules: []
18816
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18371
18817
  }
18372
18818
  ],
18373
18819
  _h[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -18577,7 +19023,7 @@
18577
19023
  },
18578
19024
  {
18579
19025
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18580
- rules: []
19026
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18581
19027
  }
18582
19028
  ],
18583
19029
  _j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18613,7 +19059,7 @@
18613
19059
  },
18614
19060
  {
18615
19061
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18616
- rules: []
19062
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18617
19063
  }
18618
19064
  ],
18619
19065
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18671,7 +19117,7 @@
18671
19117
  },
18672
19118
  {
18673
19119
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18674
- rules: []
19120
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18675
19121
  }
18676
19122
  ],
18677
19123
  _j[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -18881,7 +19327,7 @@
18881
19327
  },
18882
19328
  {
18883
19329
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18884
- rules: []
19330
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18885
19331
  }
18886
19332
  ],
18887
19333
  _k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -18917,7 +19363,7 @@
18917
19363
  },
18918
19364
  {
18919
19365
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18920
- rules: []
19366
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18921
19367
  }
18922
19368
  ],
18923
19369
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -18975,7 +19421,7 @@
18975
19421
  },
18976
19422
  {
18977
19423
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
18978
- rules: []
19424
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
18979
19425
  }
18980
19426
  ],
18981
19427
  _k[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -19294,7 +19740,7 @@
19294
19740
  },
19295
19741
  {
19296
19742
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19297
- rules: []
19743
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19298
19744
  }
19299
19745
  ],
19300
19746
  _a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -19330,7 +19776,7 @@
19330
19776
  },
19331
19777
  {
19332
19778
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19333
- rules: []
19779
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19334
19780
  }
19335
19781
  ],
19336
19782
  _a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -19388,7 +19834,7 @@
19388
19834
  },
19389
19835
  {
19390
19836
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19391
- rules: []
19837
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19392
19838
  }
19393
19839
  ],
19394
19840
  _a[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -19598,7 +20044,7 @@
19598
20044
  },
19599
20045
  {
19600
20046
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19601
- rules: []
20047
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19602
20048
  }
19603
20049
  ],
19604
20050
  _b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -19634,7 +20080,7 @@
19634
20080
  },
19635
20081
  {
19636
20082
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19637
- rules: []
20083
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19638
20084
  }
19639
20085
  ],
19640
20086
  _b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -19692,7 +20138,7 @@
19692
20138
  },
19693
20139
  {
19694
20140
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19695
- rules: []
20141
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19696
20142
  }
19697
20143
  ],
19698
20144
  _b[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -19902,7 +20348,7 @@
19902
20348
  },
19903
20349
  {
19904
20350
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19905
- rules: []
20351
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19906
20352
  }
19907
20353
  ],
19908
20354
  _c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -19938,7 +20384,7 @@
19938
20384
  },
19939
20385
  {
19940
20386
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19941
- rules: []
20387
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
19942
20388
  }
19943
20389
  ],
19944
20390
  _c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -19996,7 +20442,7 @@
19996
20442
  },
19997
20443
  {
19998
20444
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
19999
- rules: []
20445
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20000
20446
  }
20001
20447
  ],
20002
20448
  _c[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -20206,7 +20652,7 @@
20206
20652
  },
20207
20653
  {
20208
20654
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20209
- rules: []
20655
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20210
20656
  }
20211
20657
  ],
20212
20658
  _d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -20242,7 +20688,7 @@
20242
20688
  },
20243
20689
  {
20244
20690
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20245
- rules: []
20691
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20246
20692
  }
20247
20693
  ],
20248
20694
  _d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -20300,7 +20746,7 @@
20300
20746
  },
20301
20747
  {
20302
20748
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20303
- rules: []
20749
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20304
20750
  }
20305
20751
  ],
20306
20752
  _d[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -20510,7 +20956,7 @@
20510
20956
  },
20511
20957
  {
20512
20958
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20513
- rules: []
20959
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20514
20960
  }
20515
20961
  ],
20516
20962
  _e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -20546,7 +20992,7 @@
20546
20992
  },
20547
20993
  {
20548
20994
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20549
- rules: []
20995
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20550
20996
  }
20551
20997
  ],
20552
20998
  _e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -20604,7 +21050,7 @@
20604
21050
  },
20605
21051
  {
20606
21052
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20607
- rules: []
21053
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20608
21054
  }
20609
21055
  ],
20610
21056
  _e[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -20814,7 +21260,7 @@
20814
21260
  },
20815
21261
  {
20816
21262
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20817
- rules: []
21263
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20818
21264
  }
20819
21265
  ],
20820
21266
  _f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -20850,7 +21296,7 @@
20850
21296
  },
20851
21297
  {
20852
21298
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20853
- rules: []
21299
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20854
21300
  }
20855
21301
  ],
20856
21302
  _f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -20908,7 +21354,7 @@
20908
21354
  },
20909
21355
  {
20910
21356
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
20911
- rules: []
21357
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
20912
21358
  }
20913
21359
  ],
20914
21360
  _f[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -21118,7 +21564,7 @@
21118
21564
  },
21119
21565
  {
21120
21566
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21121
- rules: []
21567
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21122
21568
  }
21123
21569
  ],
21124
21570
  _g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -21154,7 +21600,7 @@
21154
21600
  },
21155
21601
  {
21156
21602
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21157
- rules: []
21603
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21158
21604
  }
21159
21605
  ],
21160
21606
  _g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -21212,7 +21658,7 @@
21212
21658
  },
21213
21659
  {
21214
21660
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21215
- rules: []
21661
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21216
21662
  }
21217
21663
  ],
21218
21664
  _g[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -21422,7 +21868,7 @@
21422
21868
  },
21423
21869
  {
21424
21870
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21425
- rules: []
21871
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21426
21872
  }
21427
21873
  ],
21428
21874
  _h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -21458,7 +21904,7 @@
21458
21904
  },
21459
21905
  {
21460
21906
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21461
- rules: []
21907
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21462
21908
  }
21463
21909
  ],
21464
21910
  _h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -21516,7 +21962,7 @@
21516
21962
  },
21517
21963
  {
21518
21964
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21519
- rules: []
21965
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21520
21966
  }
21521
21967
  ],
21522
21968
  _h[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -21726,7 +22172,7 @@
21726
22172
  },
21727
22173
  {
21728
22174
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21729
- rules: []
22175
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21730
22176
  }
21731
22177
  ],
21732
22178
  _j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -21762,7 +22208,7 @@
21762
22208
  },
21763
22209
  {
21764
22210
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21765
- rules: []
22211
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21766
22212
  }
21767
22213
  ],
21768
22214
  _j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -21820,7 +22266,7 @@
21820
22266
  },
21821
22267
  {
21822
22268
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
21823
- rules: []
22269
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
21824
22270
  }
21825
22271
  ],
21826
22272
  _j[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -22030,7 +22476,7 @@
22030
22476
  },
22031
22477
  {
22032
22478
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22033
- rules: []
22479
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22034
22480
  }
22035
22481
  ],
22036
22482
  _k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -22066,7 +22512,7 @@
22066
22512
  },
22067
22513
  {
22068
22514
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22069
- rules: []
22515
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22070
22516
  }
22071
22517
  ],
22072
22518
  _k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -22124,7 +22570,7 @@
22124
22570
  },
22125
22571
  {
22126
22572
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22127
- rules: []
22573
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22128
22574
  }
22129
22575
  ],
22130
22576
  _k[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -22398,7 +22844,7 @@
22398
22844
  },
22399
22845
  {
22400
22846
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22401
- rules: []
22847
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22402
22848
  }
22403
22849
  ],
22404
22850
  _l[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -22434,7 +22880,7 @@
22434
22880
  },
22435
22881
  {
22436
22882
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22437
- rules: []
22883
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22438
22884
  }
22439
22885
  ],
22440
22886
  _l[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -22492,7 +22938,7 @@
22492
22938
  },
22493
22939
  {
22494
22940
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22495
- rules: []
22941
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22496
22942
  }
22497
22943
  ],
22498
22944
  _l[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -22702,7 +23148,7 @@
22702
23148
  },
22703
23149
  {
22704
23150
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22705
- rules: []
23151
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22706
23152
  }
22707
23153
  ],
22708
23154
  _m[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -22738,7 +23184,7 @@
22738
23184
  },
22739
23185
  {
22740
23186
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22741
- rules: []
23187
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22742
23188
  }
22743
23189
  ],
22744
23190
  _m[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -22796,7 +23242,7 @@
22796
23242
  },
22797
23243
  {
22798
23244
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
22799
- rules: []
23245
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
22800
23246
  }
22801
23247
  ],
22802
23248
  _m[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -23006,7 +23452,7 @@
23006
23452
  },
23007
23453
  {
23008
23454
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23009
- rules: []
23455
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23010
23456
  }
23011
23457
  ],
23012
23458
  _o[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23042,7 +23488,7 @@
23042
23488
  },
23043
23489
  {
23044
23490
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23045
- rules: []
23491
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23046
23492
  }
23047
23493
  ],
23048
23494
  _o[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23100,7 +23546,7 @@
23100
23546
  },
23101
23547
  {
23102
23548
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23103
- rules: []
23549
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23104
23550
  }
23105
23551
  ],
23106
23552
  _o[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -23310,7 +23756,7 @@
23310
23756
  },
23311
23757
  {
23312
23758
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23313
- rules: []
23759
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23314
23760
  }
23315
23761
  ],
23316
23762
  _p[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23346,7 +23792,7 @@
23346
23792
  },
23347
23793
  {
23348
23794
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23349
- rules: []
23795
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23350
23796
  }
23351
23797
  ],
23352
23798
  _p[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23404,7 +23850,7 @@
23404
23850
  },
23405
23851
  {
23406
23852
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23407
- rules: []
23853
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23408
23854
  }
23409
23855
  ],
23410
23856
  _p[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -23614,7 +24060,7 @@
23614
24060
  },
23615
24061
  {
23616
24062
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23617
- rules: []
24063
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23618
24064
  }
23619
24065
  ],
23620
24066
  _q[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23650,7 +24096,7 @@
23650
24096
  },
23651
24097
  {
23652
24098
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23653
- rules: []
24099
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23654
24100
  }
23655
24101
  ],
23656
24102
  _q[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -23708,7 +24154,7 @@
23708
24154
  },
23709
24155
  {
23710
24156
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23711
- rules: []
24157
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23712
24158
  }
23713
24159
  ],
23714
24160
  _q[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -23918,7 +24364,7 @@
23918
24364
  },
23919
24365
  {
23920
24366
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23921
- rules: []
24367
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23922
24368
  }
23923
24369
  ],
23924
24370
  _r[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -23954,7 +24400,7 @@
23954
24400
  },
23955
24401
  {
23956
24402
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
23957
- rules: []
24403
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
23958
24404
  }
23959
24405
  ],
23960
24406
  _r[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -24012,7 +24458,7 @@
24012
24458
  },
24013
24459
  {
24014
24460
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24015
- rules: []
24461
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24016
24462
  }
24017
24463
  ],
24018
24464
  _r[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -24222,7 +24668,7 @@
24222
24668
  },
24223
24669
  {
24224
24670
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24225
- rules: []
24671
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24226
24672
  }
24227
24673
  ],
24228
24674
  _s[exports.EnumTipoTributo.CBS_DIFERIDO] = [
@@ -24258,7 +24704,7 @@
24258
24704
  },
24259
24705
  {
24260
24706
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24261
- rules: []
24707
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24262
24708
  }
24263
24709
  ],
24264
24710
  _s[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
@@ -24316,7 +24762,7 @@
24316
24762
  },
24317
24763
  {
24318
24764
  field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
24319
- rules: []
24765
+ rules: [this.applyNetValueToDocumentRequiredValidationRule]
24320
24766
  }
24321
24767
  ],
24322
24768
  _s[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
@@ -31060,7 +31506,6 @@
31060
31506
  required: function () {
31061
31507
  return _this.isFieldRequired(exports.EnumCampoTributo.AplicarValorLiquidoDocumento, tributo);
31062
31508
  },
31063
- showClear: true,
31064
31509
  options: [
31065
31510
  tributo === exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO ||
31066
31511
  tributo === exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO
@@ -31159,7 +31604,7 @@
31159
31604
  { value: false, disabled: false },
31160
31605
  forms.Validators.compose([])
31161
31606
  ] }, _a[exports.EnumCampoTributo.TipoCalculoImposto] = [
31162
- { value: null, disabled: false },
31607
+ { value: undefined, disabled: false },
31163
31608
  forms.Validators.compose([])
31164
31609
  ], _a)));
31165
31610
  return retorno;
@@ -34593,54 +35038,55 @@
34593
35038
  exports.nonNullish = nonNullish;
34594
35039
  exports.ɵa = ErpResumoComponent;
34595
35040
  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;
35041
+ exports.ɵba = TaxableBaseCalculationRule;
35042
+ exports.ɵbb = TaxAmountCalculator;
35043
+ exports.ɵbc = EffectiveTaxRateCalculator;
35044
+ exports.ɵbd = TaxRoundingService;
35045
+ exports.ɵbe = TaxStore;
35046
+ exports.ɵbf = TaxRateCalculationRule;
35047
+ exports.ɵbg = EffectiveTaxRateCalculationRule;
35048
+ exports.ɵbh = TaxAmountCalculationRule;
35049
+ exports.ɵbi = GrossAmountCalculationRule;
35050
+ exports.ɵbj = GrossAmountCalculator;
35051
+ exports.ɵbk = TaxSituationCalculationRule;
35052
+ exports.ɵbl = TaxClassificationCalculationRule;
35053
+ exports.ɵbm = TaxCalculationTypeCalculationRule;
35054
+ exports.ɵbn = ApplyNetValueToDocumentCalculationRule;
35055
+ exports.ɵbo = ManualTaxCalculationRule;
35056
+ exports.ɵbp = OutgoingInvoiceCalculationRulesRegistry;
35057
+ exports.ɵbq = AssessmentPeriodCalculationRule;
35058
+ exports.ɵbr = SaleOrderCalculationRulesRegistry;
35059
+ exports.ɵbs = PurchaseOrderCalculationRulesRegistry;
35060
+ exports.ɵbt = FocusService;
35061
+ exports.ɵbu = ErpLoteSeriesService;
35062
+ exports.ɵbv = QuantidadeDisponivelDemandaService;
35063
+ exports.ɵbw = EntityService;
35064
+ exports.ɵbx = QuantidadeDisponivelDemandaModule;
35065
+ exports.ɵby = ErpRateioEditorService;
34620
35066
  exports.ɵc = LoadingContext;
34621
35067
  exports.ɵd = ErpTributosService;
34622
35068
  exports.ɵe = RulesService;
34623
35069
  exports.ɵf = StatusRulesRegistry;
34624
35070
  exports.ɵg = IncomingInvoiceStatusRulesRegistry;
34625
35071
  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;
35072
+ exports.ɵi = ApplyNetValueToDocumentStatusRule;
35073
+ exports.ɵj = OutgoingInvoiceStatusRulesRegistry;
35074
+ exports.ɵk = SaleOrderStatusRulesRegistry;
35075
+ exports.ɵl = PurchaseOrderStatusRulesRegistry;
35076
+ exports.ɵm = ValidationRulesRegistry;
35077
+ exports.ɵn = IncomingInvoiceValidationRulesRegistry;
35078
+ exports.ɵo = TaxableBaseRequiredValidationRule;
35079
+ exports.ɵp = TaxRateRequiredValidationRule;
35080
+ exports.ɵq = TaxClassificationRequiredValidationRule;
35081
+ exports.ɵr = TaxAmountRequiredValidationRule;
35082
+ exports.ɵs = TaxSituationRequiredValidationRule;
35083
+ exports.ɵt = ApplyNetValueToDocumentRequiredValidationRule;
35084
+ exports.ɵu = OutgoingInvoiceValidationRulesRegistry;
35085
+ exports.ɵv = AssessmentPeriodRequiredValidationRule;
35086
+ exports.ɵw = SaleOrderValidationRulesRegistry;
35087
+ exports.ɵx = PurchaseOrderValidationRulesRegistry;
35088
+ exports.ɵy = CalculationRulesRegistry;
35089
+ exports.ɵz = IncomingInvoiceCalculationRulesRegistry;
34644
35090
 
34645
35091
  Object.defineProperty(exports, '__esModule', { value: true });
34646
35092