@senior-gestao-empresarial/erpx-components 4.12.2 → 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.
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js +697 -139
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.d.ts +3 -1
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.d.ts +3 -1
- package/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.d.ts +3 -1
- package/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.d.ts +3 -1
- package/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.d.ts +5 -0
- package/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.d.ts +3 -1
- package/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.d.ts +3 -1
- package/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.d.ts +5 -0
- package/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.d.ts +8 -0
- package/esm2015/components/tributos/erp-tributos.component.js +3 -3
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +48 -4
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +76 -4
- package/esm2015/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +48 -0
- package/esm2015/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +108 -4
- package/esm2015/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +178 -4
- package/esm2015/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +36 -0
- package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +38 -34
- package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +59 -55
- package/esm2015/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +71 -0
- package/esm2015/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
- package/esm2015/senior-gestao-empresarial-erpx-components.js +44 -41
- package/esm5/components/tributos/erp-tributos.component.js +3 -3
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +48 -4
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +76 -4
- package/esm5/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +60 -0
- package/esm5/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +108 -4
- package/esm5/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +178 -4
- package/esm5/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +40 -0
- package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +38 -34
- package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +59 -55
- package/esm5/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +75 -0
- package/esm5/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
- package/esm5/senior-gestao-empresarial-erpx-components.js +44 -41
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +635 -100
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +655 -100
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.d.ts +43 -40
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -1288,6 +1288,68 @@
|
|
|
1288
1288
|
return group.item.find(function (item) { return item.name === getGovernamentalTaxByBaseTax(baseTax); });
|
|
1289
1289
|
};
|
|
1290
1290
|
|
|
1291
|
+
var EnumIndicativoPadrao$1;
|
|
1292
|
+
(function (EnumIndicativoPadrao) {
|
|
1293
|
+
/** 0 = Não é permitido */
|
|
1294
|
+
EnumIndicativoPadrao["NAO_PERMITIDO"] = "NAO_PERMITIDO";
|
|
1295
|
+
/** 1 = Exige */
|
|
1296
|
+
EnumIndicativoPadrao["EXIGE"] = "EXIGE";
|
|
1297
|
+
/** ? = Indiferente */
|
|
1298
|
+
EnumIndicativoPadrao["INDIFERENTE"] = "INDIFERENTE";
|
|
1299
|
+
})(EnumIndicativoPadrao$1 || (EnumIndicativoPadrao$1 = {}));
|
|
1300
|
+
|
|
1301
|
+
var ApplyNetValueToDocumentCalculationRule = /** @class */ (function () {
|
|
1302
|
+
function ApplyNetValueToDocumentCalculationRule() {
|
|
1303
|
+
}
|
|
1304
|
+
ApplyNetValueToDocumentCalculationRule.prototype.apply = function (_a) {
|
|
1305
|
+
var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup, formField = _b.formField;
|
|
1306
|
+
switch (taxType) {
|
|
1307
|
+
case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
|
|
1308
|
+
{
|
|
1309
|
+
switch (document) {
|
|
1310
|
+
case 'Incoming Invoice':
|
|
1311
|
+
case 'Outgoing Invoice':
|
|
1312
|
+
{
|
|
1313
|
+
var dataKey_1 = formField.find(function (_a) {
|
|
1314
|
+
var name = _a.name;
|
|
1315
|
+
return name === 'classificacaoTributaria';
|
|
1316
|
+
}).dataKey;
|
|
1317
|
+
rxjs.combineLatest([
|
|
1318
|
+
formGroup
|
|
1319
|
+
.get('classificacaoTributaria')
|
|
1320
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) {
|
|
1321
|
+
return (old === null || old === void 0 ? void 0 : old[dataKey_1]) === (current === null || current === void 0 ? void 0 : current[dataKey_1]);
|
|
1322
|
+
}))
|
|
1323
|
+
])
|
|
1324
|
+
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
1325
|
+
var _b = __read(_a, 1), taxClassification = _b[0];
|
|
1326
|
+
return (taxClassification === null || taxClassification === void 0 ? void 0 : taxClassification['credPresIndDeduzCredPres']) === EnumIndicativoPadrao$1.EXIGE
|
|
1327
|
+
? exports.EnumAplicarValorLiquidoDocumento.SUBTRAIR
|
|
1328
|
+
: exports.EnumAplicarValorLiquidoDocumento.NENHUM;
|
|
1329
|
+
}))
|
|
1330
|
+
.subscribe(function (applyNetValue) {
|
|
1331
|
+
formGroup
|
|
1332
|
+
.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
|
|
1333
|
+
.setValue(applyNetValue);
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
break;
|
|
1337
|
+
default:
|
|
1338
|
+
throw new Error("Regra ApplyNetValueToDocumentCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
break;
|
|
1342
|
+
default:
|
|
1343
|
+
throw new Error("Regra ApplyNetValueToDocumentCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
ApplyNetValueToDocumentCalculationRule.ɵprov = core.ɵɵdefineInjectable({ factory: function ApplyNetValueToDocumentCalculationRule_Factory() { return new ApplyNetValueToDocumentCalculationRule(); }, token: ApplyNetValueToDocumentCalculationRule, providedIn: "root" });
|
|
1347
|
+
ApplyNetValueToDocumentCalculationRule = __decorate([
|
|
1348
|
+
core.Injectable({ providedIn: 'root' })
|
|
1349
|
+
], ApplyNetValueToDocumentCalculationRule);
|
|
1350
|
+
return ApplyNetValueToDocumentCalculationRule;
|
|
1351
|
+
}());
|
|
1352
|
+
|
|
1291
1353
|
var EffectiveTaxRateCalculationRule = /** @class */ (function () {
|
|
1292
1354
|
function EffectiveTaxRateCalculationRule(effectiveTaxRateCalculator) {
|
|
1293
1355
|
this.effectiveTaxRateCalculator = effectiveTaxRateCalculator;
|
|
@@ -2631,7 +2693,7 @@
|
|
|
2631
2693
|
}());
|
|
2632
2694
|
|
|
2633
2695
|
var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
2634
|
-
function IncomingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, manualTaxCalculationRule) {
|
|
2696
|
+
function IncomingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, applyNetValueToDocumentCalculationRule, manualTaxCalculationRule) {
|
|
2635
2697
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2636
2698
|
this.taxableBaseCalculationRule = taxableBaseCalculationRule;
|
|
2637
2699
|
this.taxRateCalculationRule = taxRateCalculationRule;
|
|
@@ -2641,6 +2703,7 @@
|
|
|
2641
2703
|
this.taxSituationCalculationRule = taxSituationCalculationRule;
|
|
2642
2704
|
this.taxClassificationCalculationRule = taxClassificationCalculationRule;
|
|
2643
2705
|
this.taxCalculationTypeCalculationRule = taxCalculationTypeCalculationRule;
|
|
2706
|
+
this.applyNetValueToDocumentCalculationRule = applyNetValueToDocumentCalculationRule;
|
|
2644
2707
|
this.manualTaxCalculationRule = manualTaxCalculationRule;
|
|
2645
2708
|
this.strategies = {
|
|
2646
2709
|
Adjustment: (_a = {},
|
|
@@ -2850,6 +2913,10 @@
|
|
|
2850
2913
|
{
|
|
2851
2914
|
field: exports.EnumCampoTributo.Valor,
|
|
2852
2915
|
rule: this.taxAmountCalculationRule
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
2919
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
2853
2920
|
}
|
|
2854
2921
|
],
|
|
2855
2922
|
_a[exports.EnumTipoTributo.IS] = [
|
|
@@ -3098,6 +3165,10 @@
|
|
|
3098
3165
|
{
|
|
3099
3166
|
field: exports.EnumCampoTributo.Valor,
|
|
3100
3167
|
rule: this.taxAmountCalculationRule
|
|
3168
|
+
},
|
|
3169
|
+
{
|
|
3170
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
3171
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
3101
3172
|
}
|
|
3102
3173
|
],
|
|
3103
3174
|
_b[exports.EnumTipoTributo.IS] = [
|
|
@@ -3346,6 +3417,10 @@
|
|
|
3346
3417
|
{
|
|
3347
3418
|
field: exports.EnumCampoTributo.Valor,
|
|
3348
3419
|
rule: this.taxAmountCalculationRule
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
3423
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
3349
3424
|
}
|
|
3350
3425
|
],
|
|
3351
3426
|
_c[exports.EnumTipoTributo.IS] = [
|
|
@@ -3594,6 +3669,10 @@
|
|
|
3594
3669
|
{
|
|
3595
3670
|
field: exports.EnumCampoTributo.Valor,
|
|
3596
3671
|
rule: this.taxAmountCalculationRule
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
3675
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
3597
3676
|
}
|
|
3598
3677
|
],
|
|
3599
3678
|
_d[exports.EnumTipoTributo.IS] = [
|
|
@@ -3842,6 +3921,10 @@
|
|
|
3842
3921
|
{
|
|
3843
3922
|
field: exports.EnumCampoTributo.Valor,
|
|
3844
3923
|
rule: this.taxAmountCalculationRule
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
3927
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
3845
3928
|
}
|
|
3846
3929
|
],
|
|
3847
3930
|
_e[exports.EnumTipoTributo.IS] = [
|
|
@@ -4090,6 +4173,10 @@
|
|
|
4090
4173
|
{
|
|
4091
4174
|
field: exports.EnumCampoTributo.Valor,
|
|
4092
4175
|
rule: this.taxAmountCalculationRule
|
|
4176
|
+
},
|
|
4177
|
+
{
|
|
4178
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4179
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
4093
4180
|
}
|
|
4094
4181
|
],
|
|
4095
4182
|
_f[exports.EnumTipoTributo.IS] = [
|
|
@@ -4338,6 +4425,10 @@
|
|
|
4338
4425
|
{
|
|
4339
4426
|
field: exports.EnumCampoTributo.Valor,
|
|
4340
4427
|
rule: this.taxAmountCalculationRule
|
|
4428
|
+
},
|
|
4429
|
+
{
|
|
4430
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4431
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
4341
4432
|
}
|
|
4342
4433
|
],
|
|
4343
4434
|
_g[exports.EnumTipoTributo.IS] = [
|
|
@@ -4586,6 +4677,10 @@
|
|
|
4586
4677
|
{
|
|
4587
4678
|
field: exports.EnumCampoTributo.Valor,
|
|
4588
4679
|
rule: this.taxAmountCalculationRule
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4683
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
4589
4684
|
}
|
|
4590
4685
|
],
|
|
4591
4686
|
_h[exports.EnumTipoTributo.IS] = [
|
|
@@ -4834,6 +4929,10 @@
|
|
|
4834
4929
|
{
|
|
4835
4930
|
field: exports.EnumCampoTributo.Valor,
|
|
4836
4931
|
rule: this.taxAmountCalculationRule
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4935
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
4837
4936
|
}
|
|
4838
4937
|
],
|
|
4839
4938
|
_j[exports.EnumTipoTributo.IS] = [
|
|
@@ -5082,6 +5181,10 @@
|
|
|
5082
5181
|
{
|
|
5083
5182
|
field: exports.EnumCampoTributo.Valor,
|
|
5084
5183
|
rule: this.taxAmountCalculationRule
|
|
5184
|
+
},
|
|
5185
|
+
{
|
|
5186
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
5187
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
5085
5188
|
}
|
|
5086
5189
|
],
|
|
5087
5190
|
_k[exports.EnumTipoTributo.IS] = [
|
|
@@ -5138,9 +5241,10 @@
|
|
|
5138
5241
|
{ type: TaxSituationCalculationRule },
|
|
5139
5242
|
{ type: TaxClassificationCalculationRule },
|
|
5140
5243
|
{ type: TaxCalculationTypeCalculationRule },
|
|
5244
|
+
{ type: ApplyNetValueToDocumentCalculationRule },
|
|
5141
5245
|
{ type: ManualTaxCalculationRule }
|
|
5142
5246
|
]; };
|
|
5143
|
-
IncomingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceCalculationRulesRegistry_Factory() { return new IncomingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: IncomingInvoiceCalculationRulesRegistry, providedIn: "root" });
|
|
5247
|
+
IncomingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceCalculationRulesRegistry_Factory() { return new IncomingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(ApplyNetValueToDocumentCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: IncomingInvoiceCalculationRulesRegistry, providedIn: "root" });
|
|
5144
5248
|
IncomingInvoiceCalculationRulesRegistry = __decorate([
|
|
5145
5249
|
core.Injectable({ providedIn: 'root' })
|
|
5146
5250
|
], IncomingInvoiceCalculationRulesRegistry);
|
|
@@ -5217,7 +5321,7 @@
|
|
|
5217
5321
|
}());
|
|
5218
5322
|
|
|
5219
5323
|
var OutgoingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
5220
|
-
function OutgoingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, assessmentPeriodCalculationRule, manualTaxCalculationRule) {
|
|
5324
|
+
function OutgoingInvoiceCalculationRulesRegistry(taxableBaseCalculationRule, taxRateCalculationRule, effectiveTaxRateCalculationRule, taxAmountCalculationRule, grossAmountCalculationRule, taxSituationCalculationRule, taxClassificationCalculationRule, taxCalculationTypeCalculationRule, assessmentPeriodCalculationRule, applyNetValueToDocumentCalculationRule, manualTaxCalculationRule) {
|
|
5221
5325
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
5222
5326
|
this.taxableBaseCalculationRule = taxableBaseCalculationRule;
|
|
5223
5327
|
this.taxRateCalculationRule = taxRateCalculationRule;
|
|
@@ -5228,6 +5332,7 @@
|
|
|
5228
5332
|
this.taxClassificationCalculationRule = taxClassificationCalculationRule;
|
|
5229
5333
|
this.taxCalculationTypeCalculationRule = taxCalculationTypeCalculationRule;
|
|
5230
5334
|
this.assessmentPeriodCalculationRule = assessmentPeriodCalculationRule;
|
|
5335
|
+
this.applyNetValueToDocumentCalculationRule = applyNetValueToDocumentCalculationRule;
|
|
5231
5336
|
this.manualTaxCalculationRule = manualTaxCalculationRule;
|
|
5232
5337
|
this.strategies = {
|
|
5233
5338
|
'Product And Service Sale': (_a = {},
|
|
@@ -5433,6 +5538,10 @@
|
|
|
5433
5538
|
{
|
|
5434
5539
|
field: exports.EnumCampoTributo.Valor,
|
|
5435
5540
|
rule: this.taxAmountCalculationRule
|
|
5541
|
+
},
|
|
5542
|
+
{
|
|
5543
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
5544
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
5436
5545
|
}
|
|
5437
5546
|
],
|
|
5438
5547
|
_a[exports.EnumTipoTributo.IS] = [
|
|
@@ -5677,6 +5786,10 @@
|
|
|
5677
5786
|
{
|
|
5678
5787
|
field: exports.EnumCampoTributo.Valor,
|
|
5679
5788
|
rule: this.taxAmountCalculationRule
|
|
5789
|
+
},
|
|
5790
|
+
{
|
|
5791
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
5792
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
5680
5793
|
}
|
|
5681
5794
|
],
|
|
5682
5795
|
_b[exports.EnumTipoTributo.IS] = [
|
|
@@ -5921,6 +6034,10 @@
|
|
|
5921
6034
|
{
|
|
5922
6035
|
field: exports.EnumCampoTributo.Valor,
|
|
5923
6036
|
rule: this.taxAmountCalculationRule
|
|
6037
|
+
},
|
|
6038
|
+
{
|
|
6039
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
6040
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
5924
6041
|
}
|
|
5925
6042
|
],
|
|
5926
6043
|
_c[exports.EnumTipoTributo.IS] = [
|
|
@@ -6165,6 +6282,10 @@
|
|
|
6165
6282
|
{
|
|
6166
6283
|
field: exports.EnumCampoTributo.Valor,
|
|
6167
6284
|
rule: this.taxAmountCalculationRule
|
|
6285
|
+
},
|
|
6286
|
+
{
|
|
6287
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
6288
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
6168
6289
|
}
|
|
6169
6290
|
],
|
|
6170
6291
|
_d[exports.EnumTipoTributo.IS] = [
|
|
@@ -6409,6 +6530,10 @@
|
|
|
6409
6530
|
{
|
|
6410
6531
|
field: exports.EnumCampoTributo.Valor,
|
|
6411
6532
|
rule: this.taxAmountCalculationRule
|
|
6533
|
+
},
|
|
6534
|
+
{
|
|
6535
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
6536
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
6412
6537
|
}
|
|
6413
6538
|
],
|
|
6414
6539
|
_e[exports.EnumTipoTributo.IS] = [
|
|
@@ -6653,6 +6778,10 @@
|
|
|
6653
6778
|
{
|
|
6654
6779
|
field: exports.EnumCampoTributo.Valor,
|
|
6655
6780
|
rule: this.taxAmountCalculationRule
|
|
6781
|
+
},
|
|
6782
|
+
{
|
|
6783
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
6784
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
6656
6785
|
}
|
|
6657
6786
|
],
|
|
6658
6787
|
_f[exports.EnumTipoTributo.IS] = [
|
|
@@ -6897,6 +7026,10 @@
|
|
|
6897
7026
|
{
|
|
6898
7027
|
field: exports.EnumCampoTributo.Valor,
|
|
6899
7028
|
rule: this.taxAmountCalculationRule
|
|
7029
|
+
},
|
|
7030
|
+
{
|
|
7031
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
7032
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
6900
7033
|
}
|
|
6901
7034
|
],
|
|
6902
7035
|
_g[exports.EnumTipoTributo.IS] = [
|
|
@@ -7141,6 +7274,10 @@
|
|
|
7141
7274
|
{
|
|
7142
7275
|
field: exports.EnumCampoTributo.Valor,
|
|
7143
7276
|
rule: this.taxAmountCalculationRule
|
|
7277
|
+
},
|
|
7278
|
+
{
|
|
7279
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
7280
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
7144
7281
|
}
|
|
7145
7282
|
],
|
|
7146
7283
|
_h[exports.EnumTipoTributo.IS] = [
|
|
@@ -7385,6 +7522,10 @@
|
|
|
7385
7522
|
{
|
|
7386
7523
|
field: exports.EnumCampoTributo.Valor,
|
|
7387
7524
|
rule: this.taxAmountCalculationRule
|
|
7525
|
+
},
|
|
7526
|
+
{
|
|
7527
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
7528
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
7388
7529
|
}
|
|
7389
7530
|
],
|
|
7390
7531
|
_j[exports.EnumTipoTributo.IS] = [
|
|
@@ -7629,6 +7770,10 @@
|
|
|
7629
7770
|
{
|
|
7630
7771
|
field: exports.EnumCampoTributo.Valor,
|
|
7631
7772
|
rule: this.taxAmountCalculationRule
|
|
7773
|
+
},
|
|
7774
|
+
{
|
|
7775
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
7776
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
7632
7777
|
}
|
|
7633
7778
|
],
|
|
7634
7779
|
_k[exports.EnumTipoTributo.IS] = [
|
|
@@ -7937,6 +8082,10 @@
|
|
|
7937
8082
|
{
|
|
7938
8083
|
field: exports.EnumCampoTributo.Valor,
|
|
7939
8084
|
rule: this.taxAmountCalculationRule
|
|
8085
|
+
},
|
|
8086
|
+
{
|
|
8087
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
8088
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
7940
8089
|
}
|
|
7941
8090
|
],
|
|
7942
8091
|
_l[exports.EnumTipoTributo.IS] = [
|
|
@@ -8181,6 +8330,10 @@
|
|
|
8181
8330
|
{
|
|
8182
8331
|
field: exports.EnumCampoTributo.Valor,
|
|
8183
8332
|
rule: this.taxAmountCalculationRule
|
|
8333
|
+
},
|
|
8334
|
+
{
|
|
8335
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
8336
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
8184
8337
|
}
|
|
8185
8338
|
],
|
|
8186
8339
|
_m[exports.EnumTipoTributo.IS] = [
|
|
@@ -8425,6 +8578,10 @@
|
|
|
8425
8578
|
{
|
|
8426
8579
|
field: exports.EnumCampoTributo.Valor,
|
|
8427
8580
|
rule: this.taxAmountCalculationRule
|
|
8581
|
+
},
|
|
8582
|
+
{
|
|
8583
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
8584
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
8428
8585
|
}
|
|
8429
8586
|
],
|
|
8430
8587
|
_o[exports.EnumTipoTributo.IS] = [
|
|
@@ -8669,6 +8826,10 @@
|
|
|
8669
8826
|
{
|
|
8670
8827
|
field: exports.EnumCampoTributo.Valor,
|
|
8671
8828
|
rule: this.taxAmountCalculationRule
|
|
8829
|
+
},
|
|
8830
|
+
{
|
|
8831
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
8832
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
8672
8833
|
}
|
|
8673
8834
|
],
|
|
8674
8835
|
_p[exports.EnumTipoTributo.IS] = [
|
|
@@ -8913,6 +9074,10 @@
|
|
|
8913
9074
|
{
|
|
8914
9075
|
field: exports.EnumCampoTributo.Valor,
|
|
8915
9076
|
rule: this.taxAmountCalculationRule
|
|
9077
|
+
},
|
|
9078
|
+
{
|
|
9079
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
9080
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
8916
9081
|
}
|
|
8917
9082
|
],
|
|
8918
9083
|
_q[exports.EnumTipoTributo.IS] = [
|
|
@@ -9157,6 +9322,10 @@
|
|
|
9157
9322
|
{
|
|
9158
9323
|
field: exports.EnumCampoTributo.Valor,
|
|
9159
9324
|
rule: this.taxAmountCalculationRule
|
|
9325
|
+
},
|
|
9326
|
+
{
|
|
9327
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
9328
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
9160
9329
|
}
|
|
9161
9330
|
],
|
|
9162
9331
|
_r[exports.EnumTipoTributo.IS] = [
|
|
@@ -9401,6 +9570,10 @@
|
|
|
9401
9570
|
{
|
|
9402
9571
|
field: exports.EnumCampoTributo.Valor,
|
|
9403
9572
|
rule: this.taxAmountCalculationRule
|
|
9573
|
+
},
|
|
9574
|
+
{
|
|
9575
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
9576
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
9404
9577
|
}
|
|
9405
9578
|
],
|
|
9406
9579
|
_s[exports.EnumTipoTributo.IS] = [
|
|
@@ -9458,9 +9631,10 @@
|
|
|
9458
9631
|
{ type: TaxClassificationCalculationRule },
|
|
9459
9632
|
{ type: TaxCalculationTypeCalculationRule },
|
|
9460
9633
|
{ type: AssessmentPeriodCalculationRule },
|
|
9634
|
+
{ type: ApplyNetValueToDocumentCalculationRule },
|
|
9461
9635
|
{ type: ManualTaxCalculationRule }
|
|
9462
9636
|
]; };
|
|
9463
|
-
OutgoingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceCalculationRulesRegistry_Factory() { return new OutgoingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(AssessmentPeriodCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: OutgoingInvoiceCalculationRulesRegistry, providedIn: "root" });
|
|
9637
|
+
OutgoingInvoiceCalculationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceCalculationRulesRegistry_Factory() { return new OutgoingInvoiceCalculationRulesRegistry(core.ɵɵinject(TaxableBaseCalculationRule), core.ɵɵinject(TaxRateCalculationRule), core.ɵɵinject(EffectiveTaxRateCalculationRule), core.ɵɵinject(TaxAmountCalculationRule), core.ɵɵinject(GrossAmountCalculationRule), core.ɵɵinject(TaxSituationCalculationRule), core.ɵɵinject(TaxClassificationCalculationRule), core.ɵɵinject(TaxCalculationTypeCalculationRule), core.ɵɵinject(AssessmentPeriodCalculationRule), core.ɵɵinject(ApplyNetValueToDocumentCalculationRule), core.ɵɵinject(ManualTaxCalculationRule)); }, token: OutgoingInvoiceCalculationRulesRegistry, providedIn: "root" });
|
|
9464
9638
|
OutgoingInvoiceCalculationRulesRegistry = __decorate([
|
|
9465
9639
|
core.Injectable({ providedIn: 'root' })
|
|
9466
9640
|
], OutgoingInvoiceCalculationRulesRegistry);
|
|
@@ -11103,6 +11277,41 @@
|
|
|
11103
11277
|
return CalculationRulesRegistry;
|
|
11104
11278
|
}());
|
|
11105
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
|
+
|
|
11106
11315
|
var TaxClassificationStatusRule = /** @class */ (function () {
|
|
11107
11316
|
function TaxClassificationStatusRule() {
|
|
11108
11317
|
}
|
|
@@ -11203,15 +11412,26 @@
|
|
|
11203
11412
|
}());
|
|
11204
11413
|
|
|
11205
11414
|
var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
11206
|
-
function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule) {
|
|
11415
|
+
function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
|
|
11207
11416
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
11208
11417
|
this.taxClassificationStatusRule = taxClassificationStatusRule;
|
|
11418
|
+
this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
|
|
11209
11419
|
this.strategies = {
|
|
11210
11420
|
Adjustment: (_a = {},
|
|
11211
11421
|
_a[exports.EnumTipoTributo.CBS] = [
|
|
11212
11422
|
{
|
|
11213
11423
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11214
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
|
|
11215
11435
|
}
|
|
11216
11436
|
],
|
|
11217
11437
|
_a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11269,6 +11489,16 @@
|
|
|
11269
11489
|
{
|
|
11270
11490
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11271
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
|
|
11272
11502
|
}
|
|
11273
11503
|
],
|
|
11274
11504
|
_b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11326,6 +11556,16 @@
|
|
|
11326
11556
|
{
|
|
11327
11557
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11328
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
|
|
11329
11569
|
}
|
|
11330
11570
|
],
|
|
11331
11571
|
_c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11383,6 +11623,16 @@
|
|
|
11383
11623
|
{
|
|
11384
11624
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11385
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
|
|
11386
11636
|
}
|
|
11387
11637
|
],
|
|
11388
11638
|
_d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11440,6 +11690,16 @@
|
|
|
11440
11690
|
{
|
|
11441
11691
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11442
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
|
|
11443
11703
|
}
|
|
11444
11704
|
],
|
|
11445
11705
|
_e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11497,6 +11757,16 @@
|
|
|
11497
11757
|
{
|
|
11498
11758
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11499
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
|
|
11500
11770
|
}
|
|
11501
11771
|
],
|
|
11502
11772
|
_f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11542,6 +11812,16 @@
|
|
|
11542
11812
|
{
|
|
11543
11813
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11544
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
|
|
11545
11825
|
}
|
|
11546
11826
|
],
|
|
11547
11827
|
_g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11599,6 +11879,16 @@
|
|
|
11599
11879
|
{
|
|
11600
11880
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11601
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
|
|
11602
11892
|
}
|
|
11603
11893
|
],
|
|
11604
11894
|
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11656,6 +11946,16 @@
|
|
|
11656
11946
|
{
|
|
11657
11947
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11658
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
|
|
11659
11959
|
}
|
|
11660
11960
|
],
|
|
11661
11961
|
_j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11713,6 +12013,16 @@
|
|
|
11713
12013
|
{
|
|
11714
12014
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11715
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
|
|
11716
12026
|
}
|
|
11717
12027
|
],
|
|
11718
12028
|
_k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11772,9 +12082,10 @@
|
|
|
11772
12082
|
return (_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : [];
|
|
11773
12083
|
};
|
|
11774
12084
|
IncomingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
|
|
11775
|
-
{ type: TaxClassificationStatusRule }
|
|
12085
|
+
{ type: TaxClassificationStatusRule },
|
|
12086
|
+
{ type: ApplyNetValueToDocumentStatusRule }
|
|
11776
12087
|
]; };
|
|
11777
|
-
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" });
|
|
11778
12089
|
IncomingInvoiceStatusRulesRegistry = __decorate([
|
|
11779
12090
|
core.Injectable({ providedIn: 'root' })
|
|
11780
12091
|
], IncomingInvoiceStatusRulesRegistry);
|
|
@@ -11782,15 +12093,26 @@
|
|
|
11782
12093
|
}());
|
|
11783
12094
|
|
|
11784
12095
|
var OutgoingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
11785
|
-
function OutgoingInvoiceStatusRulesRegistry(taxClassificationStatusRule) {
|
|
12096
|
+
function OutgoingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
|
|
11786
12097
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
11787
12098
|
this.taxClassificationStatusRule = taxClassificationStatusRule;
|
|
12099
|
+
this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
|
|
11788
12100
|
this.strategies = {
|
|
11789
12101
|
'Product And Service Sale': (_a = {},
|
|
11790
12102
|
_a[exports.EnumTipoTributo.CBS] = [
|
|
11791
12103
|
{
|
|
11792
12104
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11793
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
|
|
11794
12116
|
}
|
|
11795
12117
|
],
|
|
11796
12118
|
_a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11848,6 +12170,16 @@
|
|
|
11848
12170
|
{
|
|
11849
12171
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11850
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
|
|
11851
12183
|
}
|
|
11852
12184
|
],
|
|
11853
12185
|
_b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11905,6 +12237,16 @@
|
|
|
11905
12237
|
{
|
|
11906
12238
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11907
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
|
|
11908
12250
|
}
|
|
11909
12251
|
],
|
|
11910
12252
|
_c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -11962,6 +12304,16 @@
|
|
|
11962
12304
|
{
|
|
11963
12305
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
11964
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
|
|
11965
12317
|
}
|
|
11966
12318
|
],
|
|
11967
12319
|
_d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12019,6 +12371,16 @@
|
|
|
12019
12371
|
{
|
|
12020
12372
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12021
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
|
|
12022
12384
|
}
|
|
12023
12385
|
],
|
|
12024
12386
|
_e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12076,6 +12438,16 @@
|
|
|
12076
12438
|
{
|
|
12077
12439
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12078
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
|
|
12079
12451
|
}
|
|
12080
12452
|
],
|
|
12081
12453
|
_f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12133,6 +12505,16 @@
|
|
|
12133
12505
|
{
|
|
12134
12506
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12135
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
|
|
12136
12518
|
}
|
|
12137
12519
|
],
|
|
12138
12520
|
_g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12190,6 +12572,16 @@
|
|
|
12190
12572
|
{
|
|
12191
12573
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12192
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
|
|
12193
12585
|
}
|
|
12194
12586
|
],
|
|
12195
12587
|
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12247,6 +12639,16 @@
|
|
|
12247
12639
|
{
|
|
12248
12640
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12249
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
|
|
12250
12652
|
}
|
|
12251
12653
|
],
|
|
12252
12654
|
_j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12304,6 +12706,16 @@
|
|
|
12304
12706
|
{
|
|
12305
12707
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12306
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
|
|
12307
12719
|
}
|
|
12308
12720
|
],
|
|
12309
12721
|
_k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12373,6 +12785,16 @@
|
|
|
12373
12785
|
{
|
|
12374
12786
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12375
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
|
|
12376
12798
|
}
|
|
12377
12799
|
],
|
|
12378
12800
|
_l[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12430,6 +12852,16 @@
|
|
|
12430
12852
|
{
|
|
12431
12853
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12432
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
|
|
12433
12865
|
}
|
|
12434
12866
|
],
|
|
12435
12867
|
_m[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12487,6 +12919,16 @@
|
|
|
12487
12919
|
{
|
|
12488
12920
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12489
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
|
|
12490
12932
|
}
|
|
12491
12933
|
],
|
|
12492
12934
|
_o[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12544,6 +12986,16 @@
|
|
|
12544
12986
|
{
|
|
12545
12987
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12546
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
|
|
12547
12999
|
}
|
|
12548
13000
|
],
|
|
12549
13001
|
_p[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12601,6 +13053,16 @@
|
|
|
12601
13053
|
{
|
|
12602
13054
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12603
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
|
|
12604
13066
|
}
|
|
12605
13067
|
],
|
|
12606
13068
|
_q[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12658,6 +13120,16 @@
|
|
|
12658
13120
|
{
|
|
12659
13121
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12660
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
|
|
12661
13133
|
}
|
|
12662
13134
|
],
|
|
12663
13135
|
_r[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12715,6 +13187,16 @@
|
|
|
12715
13187
|
{
|
|
12716
13188
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
12717
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
|
|
12718
13200
|
}
|
|
12719
13201
|
],
|
|
12720
13202
|
_s[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -12774,9 +13256,10 @@
|
|
|
12774
13256
|
return ((_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : []);
|
|
12775
13257
|
};
|
|
12776
13258
|
OutgoingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
|
|
12777
|
-
{ type: TaxClassificationStatusRule }
|
|
13259
|
+
{ type: TaxClassificationStatusRule },
|
|
13260
|
+
{ type: ApplyNetValueToDocumentStatusRule }
|
|
12778
13261
|
]; };
|
|
12779
|
-
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" });
|
|
12780
13263
|
OutgoingInvoiceStatusRulesRegistry = __decorate([
|
|
12781
13264
|
core.Injectable({ providedIn: 'root' })
|
|
12782
13265
|
], OutgoingInvoiceStatusRulesRegistry);
|
|
@@ -12847,6 +13330,74 @@
|
|
|
12847
13330
|
return StatusRulesRegistry;
|
|
12848
13331
|
}());
|
|
12849
13332
|
|
|
13333
|
+
var ApplyNetValueToDocumentRequiredValidationRule = /** @class */ (function () {
|
|
13334
|
+
function ApplyNetValueToDocumentRequiredValidationRule() {
|
|
13335
|
+
}
|
|
13336
|
+
ApplyNetValueToDocumentRequiredValidationRule.prototype.apply = function (_a) {
|
|
13337
|
+
var document = _a.context.document, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
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;
|
|
13361
|
+
case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
|
|
13362
|
+
{
|
|
13363
|
+
switch (document) {
|
|
13364
|
+
case 'Incoming Invoice':
|
|
13365
|
+
case 'Outgoing Invoice':
|
|
13366
|
+
{
|
|
13367
|
+
formGroup
|
|
13368
|
+
.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
|
|
13369
|
+
.valueChanges.pipe(operators.startWith(formGroup.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento).value))
|
|
13370
|
+
.subscribe(function (value) {
|
|
13371
|
+
var validators = value
|
|
13372
|
+
? [forms.Validators.required]
|
|
13373
|
+
: [];
|
|
13374
|
+
formGroup
|
|
13375
|
+
.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
|
|
13376
|
+
.setValidators(validators);
|
|
13377
|
+
formGroup
|
|
13378
|
+
.get(exports.EnumCampoTributo.AplicarValorLiquidoDocumento)
|
|
13379
|
+
.updateValueAndValidity({
|
|
13380
|
+
emitEvent: false
|
|
13381
|
+
});
|
|
13382
|
+
});
|
|
13383
|
+
}
|
|
13384
|
+
break;
|
|
13385
|
+
default:
|
|
13386
|
+
throw new Error("Regra ApplyNetValueToDocumentRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
13387
|
+
}
|
|
13388
|
+
}
|
|
13389
|
+
break;
|
|
13390
|
+
default:
|
|
13391
|
+
throw new Error("Regra ApplyNetValueToDocumentRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
13392
|
+
}
|
|
13393
|
+
};
|
|
13394
|
+
ApplyNetValueToDocumentRequiredValidationRule.ɵprov = core.ɵɵdefineInjectable({ factory: function ApplyNetValueToDocumentRequiredValidationRule_Factory() { return new ApplyNetValueToDocumentRequiredValidationRule(); }, token: ApplyNetValueToDocumentRequiredValidationRule, providedIn: "root" });
|
|
13395
|
+
ApplyNetValueToDocumentRequiredValidationRule = __decorate([
|
|
13396
|
+
core.Injectable({ providedIn: 'root' })
|
|
13397
|
+
], ApplyNetValueToDocumentRequiredValidationRule);
|
|
13398
|
+
return ApplyNetValueToDocumentRequiredValidationRule;
|
|
13399
|
+
}());
|
|
13400
|
+
|
|
12850
13401
|
var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
12851
13402
|
function TaxAmountRequiredValidationRule() {
|
|
12852
13403
|
}
|
|
@@ -15896,13 +16447,14 @@
|
|
|
15896
16447
|
}());
|
|
15897
16448
|
|
|
15898
16449
|
var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
15899
|
-
function IncomingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule) {
|
|
16450
|
+
function IncomingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule, applyNetValueToDocumentRequiredValidationRule) {
|
|
15900
16451
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
15901
16452
|
this.taxableBaseRequiredValidationRule = taxableBaseRequiredValidationRule;
|
|
15902
16453
|
this.taxRateRequiredValidationRule = taxRateRequiredValidationRule;
|
|
15903
16454
|
this.taxClassificationRequiredValidationRule = taxClassificationRequiredValidationRule;
|
|
15904
16455
|
this.taxAmountRequiredValidationRule = taxAmountRequiredValidationRule;
|
|
15905
16456
|
this.taxSituationRequiredValidationRule = taxSituationRequiredValidationRule;
|
|
16457
|
+
this.applyNetValueToDocumentRequiredValidationRule = applyNetValueToDocumentRequiredValidationRule;
|
|
15906
16458
|
this.strategies = {
|
|
15907
16459
|
'Producer Invoice': (_a = {},
|
|
15908
16460
|
_a[exports.EnumTipoTributo.CBS] = [
|
|
@@ -15928,7 +16480,7 @@
|
|
|
15928
16480
|
},
|
|
15929
16481
|
{
|
|
15930
16482
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
15931
|
-
rules: []
|
|
16483
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
15932
16484
|
}
|
|
15933
16485
|
],
|
|
15934
16486
|
_a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -15964,7 +16516,7 @@
|
|
|
15964
16516
|
},
|
|
15965
16517
|
{
|
|
15966
16518
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
15967
|
-
rules: []
|
|
16519
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
15968
16520
|
}
|
|
15969
16521
|
],
|
|
15970
16522
|
_a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -16150,7 +16702,7 @@
|
|
|
16150
16702
|
},
|
|
16151
16703
|
{
|
|
16152
16704
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16153
|
-
rules: []
|
|
16705
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16154
16706
|
}
|
|
16155
16707
|
],
|
|
16156
16708
|
_a[exports.EnumTipoTributo.IS] = [
|
|
@@ -16232,7 +16784,7 @@
|
|
|
16232
16784
|
},
|
|
16233
16785
|
{
|
|
16234
16786
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16235
|
-
rules: []
|
|
16787
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16236
16788
|
}
|
|
16237
16789
|
],
|
|
16238
16790
|
_b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -16268,7 +16820,7 @@
|
|
|
16268
16820
|
},
|
|
16269
16821
|
{
|
|
16270
16822
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16271
|
-
rules: []
|
|
16823
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16272
16824
|
}
|
|
16273
16825
|
],
|
|
16274
16826
|
_b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -16454,7 +17006,7 @@
|
|
|
16454
17006
|
},
|
|
16455
17007
|
{
|
|
16456
17008
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16457
|
-
rules: []
|
|
17009
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16458
17010
|
}
|
|
16459
17011
|
],
|
|
16460
17012
|
_b[exports.EnumTipoTributo.IS] = [
|
|
@@ -16536,7 +17088,7 @@
|
|
|
16536
17088
|
},
|
|
16537
17089
|
{
|
|
16538
17090
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16539
|
-
rules: []
|
|
17091
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16540
17092
|
}
|
|
16541
17093
|
],
|
|
16542
17094
|
_c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -16572,7 +17124,7 @@
|
|
|
16572
17124
|
},
|
|
16573
17125
|
{
|
|
16574
17126
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16575
|
-
rules: []
|
|
17127
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16576
17128
|
}
|
|
16577
17129
|
],
|
|
16578
17130
|
_c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -16758,7 +17310,7 @@
|
|
|
16758
17310
|
},
|
|
16759
17311
|
{
|
|
16760
17312
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16761
|
-
rules: []
|
|
17313
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16762
17314
|
}
|
|
16763
17315
|
],
|
|
16764
17316
|
_c[exports.EnumTipoTributo.IS] = [
|
|
@@ -16840,7 +17392,7 @@
|
|
|
16840
17392
|
},
|
|
16841
17393
|
{
|
|
16842
17394
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16843
|
-
rules: []
|
|
17395
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16844
17396
|
}
|
|
16845
17397
|
],
|
|
16846
17398
|
_d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -16876,7 +17428,7 @@
|
|
|
16876
17428
|
},
|
|
16877
17429
|
{
|
|
16878
17430
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
16879
|
-
rules: []
|
|
17431
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16880
17432
|
}
|
|
16881
17433
|
],
|
|
16882
17434
|
_d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -17062,7 +17614,7 @@
|
|
|
17062
17614
|
},
|
|
17063
17615
|
{
|
|
17064
17616
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17065
|
-
rules: []
|
|
17617
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17066
17618
|
}
|
|
17067
17619
|
],
|
|
17068
17620
|
_d[exports.EnumTipoTributo.IS] = [
|
|
@@ -17144,7 +17696,7 @@
|
|
|
17144
17696
|
},
|
|
17145
17697
|
{
|
|
17146
17698
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17147
|
-
rules: []
|
|
17699
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17148
17700
|
}
|
|
17149
17701
|
],
|
|
17150
17702
|
_e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -17180,7 +17732,7 @@
|
|
|
17180
17732
|
},
|
|
17181
17733
|
{
|
|
17182
17734
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17183
|
-
rules: []
|
|
17735
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17184
17736
|
}
|
|
17185
17737
|
],
|
|
17186
17738
|
_e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -17366,7 +17918,7 @@
|
|
|
17366
17918
|
},
|
|
17367
17919
|
{
|
|
17368
17920
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17369
|
-
rules: []
|
|
17921
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17370
17922
|
}
|
|
17371
17923
|
],
|
|
17372
17924
|
_e[exports.EnumTipoTributo.IS] = [
|
|
@@ -17448,7 +18000,7 @@
|
|
|
17448
18000
|
},
|
|
17449
18001
|
{
|
|
17450
18002
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17451
|
-
rules: []
|
|
18003
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17452
18004
|
}
|
|
17453
18005
|
],
|
|
17454
18006
|
_f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -17484,7 +18036,7 @@
|
|
|
17484
18036
|
},
|
|
17485
18037
|
{
|
|
17486
18038
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17487
|
-
rules: []
|
|
18039
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17488
18040
|
}
|
|
17489
18041
|
],
|
|
17490
18042
|
_f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -17670,7 +18222,7 @@
|
|
|
17670
18222
|
},
|
|
17671
18223
|
{
|
|
17672
18224
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17673
|
-
rules: []
|
|
18225
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17674
18226
|
}
|
|
17675
18227
|
],
|
|
17676
18228
|
_f[exports.EnumTipoTributo.IS] = [
|
|
@@ -17752,7 +18304,7 @@
|
|
|
17752
18304
|
},
|
|
17753
18305
|
{
|
|
17754
18306
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17755
|
-
rules: []
|
|
18307
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17756
18308
|
}
|
|
17757
18309
|
],
|
|
17758
18310
|
_g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -17788,7 +18340,7 @@
|
|
|
17788
18340
|
},
|
|
17789
18341
|
{
|
|
17790
18342
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17791
|
-
rules: []
|
|
18343
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17792
18344
|
}
|
|
17793
18345
|
],
|
|
17794
18346
|
_g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -17974,7 +18526,7 @@
|
|
|
17974
18526
|
},
|
|
17975
18527
|
{
|
|
17976
18528
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
17977
|
-
rules: []
|
|
18529
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17978
18530
|
}
|
|
17979
18531
|
],
|
|
17980
18532
|
_g[exports.EnumTipoTributo.IS] = [
|
|
@@ -18056,7 +18608,7 @@
|
|
|
18056
18608
|
},
|
|
18057
18609
|
{
|
|
18058
18610
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18059
|
-
rules: []
|
|
18611
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18060
18612
|
}
|
|
18061
18613
|
],
|
|
18062
18614
|
_h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -18092,7 +18644,7 @@
|
|
|
18092
18644
|
},
|
|
18093
18645
|
{
|
|
18094
18646
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18095
|
-
rules: []
|
|
18647
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18096
18648
|
}
|
|
18097
18649
|
],
|
|
18098
18650
|
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -18278,7 +18830,7 @@
|
|
|
18278
18830
|
},
|
|
18279
18831
|
{
|
|
18280
18832
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18281
|
-
rules: []
|
|
18833
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18282
18834
|
}
|
|
18283
18835
|
],
|
|
18284
18836
|
_h[exports.EnumTipoTributo.IS] = [
|
|
@@ -18360,7 +18912,7 @@
|
|
|
18360
18912
|
},
|
|
18361
18913
|
{
|
|
18362
18914
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18363
|
-
rules: []
|
|
18915
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18364
18916
|
}
|
|
18365
18917
|
],
|
|
18366
18918
|
_j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -18396,7 +18948,7 @@
|
|
|
18396
18948
|
},
|
|
18397
18949
|
{
|
|
18398
18950
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18399
|
-
rules: []
|
|
18951
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18400
18952
|
}
|
|
18401
18953
|
],
|
|
18402
18954
|
_j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -18582,7 +19134,7 @@
|
|
|
18582
19134
|
},
|
|
18583
19135
|
{
|
|
18584
19136
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18585
|
-
rules: []
|
|
19137
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18586
19138
|
}
|
|
18587
19139
|
],
|
|
18588
19140
|
_j[exports.EnumTipoTributo.IS] = [
|
|
@@ -18664,7 +19216,7 @@
|
|
|
18664
19216
|
},
|
|
18665
19217
|
{
|
|
18666
19218
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18667
|
-
rules: []
|
|
19219
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18668
19220
|
}
|
|
18669
19221
|
],
|
|
18670
19222
|
_k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -18700,7 +19252,7 @@
|
|
|
18700
19252
|
},
|
|
18701
19253
|
{
|
|
18702
19254
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18703
|
-
rules: []
|
|
19255
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18704
19256
|
}
|
|
18705
19257
|
],
|
|
18706
19258
|
_k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -18886,7 +19438,7 @@
|
|
|
18886
19438
|
},
|
|
18887
19439
|
{
|
|
18888
19440
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
18889
|
-
rules: []
|
|
19441
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18890
19442
|
}
|
|
18891
19443
|
],
|
|
18892
19444
|
_k[exports.EnumTipoTributo.IS] = [
|
|
@@ -18955,9 +19507,10 @@
|
|
|
18955
19507
|
{ type: TaxRateRequiredValidationRule },
|
|
18956
19508
|
{ type: TaxClassificationRequiredValidationRule },
|
|
18957
19509
|
{ type: TaxAmountRequiredValidationRule },
|
|
18958
|
-
{ type: TaxSituationRequiredValidationRule }
|
|
19510
|
+
{ type: TaxSituationRequiredValidationRule },
|
|
19511
|
+
{ type: ApplyNetValueToDocumentRequiredValidationRule }
|
|
18959
19512
|
]; };
|
|
18960
|
-
IncomingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceValidationRulesRegistry_Factory() { return new IncomingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule)); }, token: IncomingInvoiceValidationRulesRegistry, providedIn: "root" });
|
|
19513
|
+
IncomingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceValidationRulesRegistry_Factory() { return new IncomingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule), core.ɵɵinject(ApplyNetValueToDocumentRequiredValidationRule)); }, token: IncomingInvoiceValidationRulesRegistry, providedIn: "root" });
|
|
18961
19514
|
IncomingInvoiceValidationRulesRegistry = __decorate([
|
|
18962
19515
|
core.Injectable({ providedIn: 'root' })
|
|
18963
19516
|
], IncomingInvoiceValidationRulesRegistry);
|
|
@@ -19042,7 +19595,7 @@
|
|
|
19042
19595
|
}());
|
|
19043
19596
|
|
|
19044
19597
|
var OutgoingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
19045
|
-
function OutgoingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule, assessmentPeriodRequiredValidationRule) {
|
|
19598
|
+
function OutgoingInvoiceValidationRulesRegistry(taxableBaseRequiredValidationRule, taxRateRequiredValidationRule, taxClassificationRequiredValidationRule, taxAmountRequiredValidationRule, taxSituationRequiredValidationRule, assessmentPeriodRequiredValidationRule, applyNetValueToDocumentRequiredValidationRule) {
|
|
19046
19599
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
19047
19600
|
this.taxableBaseRequiredValidationRule = taxableBaseRequiredValidationRule;
|
|
19048
19601
|
this.taxRateRequiredValidationRule = taxRateRequiredValidationRule;
|
|
@@ -19050,6 +19603,7 @@
|
|
|
19050
19603
|
this.taxAmountRequiredValidationRule = taxAmountRequiredValidationRule;
|
|
19051
19604
|
this.taxSituationRequiredValidationRule = taxSituationRequiredValidationRule;
|
|
19052
19605
|
this.assessmentPeriodRequiredValidationRule = assessmentPeriodRequiredValidationRule;
|
|
19606
|
+
this.applyNetValueToDocumentRequiredValidationRule = applyNetValueToDocumentRequiredValidationRule;
|
|
19053
19607
|
this.strategies = {
|
|
19054
19608
|
'Product And Service Sale': (_a = {},
|
|
19055
19609
|
_a[exports.EnumTipoTributo.CBS] = [
|
|
@@ -19075,7 +19629,7 @@
|
|
|
19075
19629
|
},
|
|
19076
19630
|
{
|
|
19077
19631
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19078
|
-
rules: []
|
|
19632
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19079
19633
|
}
|
|
19080
19634
|
],
|
|
19081
19635
|
_a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -19111,7 +19665,7 @@
|
|
|
19111
19665
|
},
|
|
19112
19666
|
{
|
|
19113
19667
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19114
|
-
rules: []
|
|
19668
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19115
19669
|
}
|
|
19116
19670
|
],
|
|
19117
19671
|
_a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -19297,7 +19851,7 @@
|
|
|
19297
19851
|
},
|
|
19298
19852
|
{
|
|
19299
19853
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19300
|
-
rules: []
|
|
19854
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19301
19855
|
}
|
|
19302
19856
|
],
|
|
19303
19857
|
_a[exports.EnumTipoTributo.IS] = [
|
|
@@ -19379,7 +19933,7 @@
|
|
|
19379
19933
|
},
|
|
19380
19934
|
{
|
|
19381
19935
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19382
|
-
rules: []
|
|
19936
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19383
19937
|
}
|
|
19384
19938
|
],
|
|
19385
19939
|
_b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -19415,7 +19969,7 @@
|
|
|
19415
19969
|
},
|
|
19416
19970
|
{
|
|
19417
19971
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19418
|
-
rules: []
|
|
19972
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19419
19973
|
}
|
|
19420
19974
|
],
|
|
19421
19975
|
_b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -19601,7 +20155,7 @@
|
|
|
19601
20155
|
},
|
|
19602
20156
|
{
|
|
19603
20157
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19604
|
-
rules: []
|
|
20158
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19605
20159
|
}
|
|
19606
20160
|
],
|
|
19607
20161
|
_b[exports.EnumTipoTributo.IS] = [
|
|
@@ -19683,7 +20237,7 @@
|
|
|
19683
20237
|
},
|
|
19684
20238
|
{
|
|
19685
20239
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19686
|
-
rules: []
|
|
20240
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19687
20241
|
}
|
|
19688
20242
|
],
|
|
19689
20243
|
_c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -19719,7 +20273,7 @@
|
|
|
19719
20273
|
},
|
|
19720
20274
|
{
|
|
19721
20275
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19722
|
-
rules: []
|
|
20276
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19723
20277
|
}
|
|
19724
20278
|
],
|
|
19725
20279
|
_c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -19905,7 +20459,7 @@
|
|
|
19905
20459
|
},
|
|
19906
20460
|
{
|
|
19907
20461
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19908
|
-
rules: []
|
|
20462
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19909
20463
|
}
|
|
19910
20464
|
],
|
|
19911
20465
|
_c[exports.EnumTipoTributo.IS] = [
|
|
@@ -19987,7 +20541,7 @@
|
|
|
19987
20541
|
},
|
|
19988
20542
|
{
|
|
19989
20543
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
19990
|
-
rules: []
|
|
20544
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19991
20545
|
}
|
|
19992
20546
|
],
|
|
19993
20547
|
_d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -20023,7 +20577,7 @@
|
|
|
20023
20577
|
},
|
|
20024
20578
|
{
|
|
20025
20579
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20026
|
-
rules: []
|
|
20580
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20027
20581
|
}
|
|
20028
20582
|
],
|
|
20029
20583
|
_d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -20209,7 +20763,7 @@
|
|
|
20209
20763
|
},
|
|
20210
20764
|
{
|
|
20211
20765
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20212
|
-
rules: []
|
|
20766
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20213
20767
|
}
|
|
20214
20768
|
],
|
|
20215
20769
|
_d[exports.EnumTipoTributo.IS] = [
|
|
@@ -20291,7 +20845,7 @@
|
|
|
20291
20845
|
},
|
|
20292
20846
|
{
|
|
20293
20847
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20294
|
-
rules: []
|
|
20848
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20295
20849
|
}
|
|
20296
20850
|
],
|
|
20297
20851
|
_e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -20327,7 +20881,7 @@
|
|
|
20327
20881
|
},
|
|
20328
20882
|
{
|
|
20329
20883
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20330
|
-
rules: []
|
|
20884
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20331
20885
|
}
|
|
20332
20886
|
],
|
|
20333
20887
|
_e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -20513,7 +21067,7 @@
|
|
|
20513
21067
|
},
|
|
20514
21068
|
{
|
|
20515
21069
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20516
|
-
rules: []
|
|
21070
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20517
21071
|
}
|
|
20518
21072
|
],
|
|
20519
21073
|
_e[exports.EnumTipoTributo.IS] = [
|
|
@@ -20595,7 +21149,7 @@
|
|
|
20595
21149
|
},
|
|
20596
21150
|
{
|
|
20597
21151
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20598
|
-
rules: []
|
|
21152
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20599
21153
|
}
|
|
20600
21154
|
],
|
|
20601
21155
|
_f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -20631,7 +21185,7 @@
|
|
|
20631
21185
|
},
|
|
20632
21186
|
{
|
|
20633
21187
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20634
|
-
rules: []
|
|
21188
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20635
21189
|
}
|
|
20636
21190
|
],
|
|
20637
21191
|
_f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -20817,7 +21371,7 @@
|
|
|
20817
21371
|
},
|
|
20818
21372
|
{
|
|
20819
21373
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20820
|
-
rules: []
|
|
21374
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20821
21375
|
}
|
|
20822
21376
|
],
|
|
20823
21377
|
_f[exports.EnumTipoTributo.IS] = [
|
|
@@ -20899,7 +21453,7 @@
|
|
|
20899
21453
|
},
|
|
20900
21454
|
{
|
|
20901
21455
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20902
|
-
rules: []
|
|
21456
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20903
21457
|
}
|
|
20904
21458
|
],
|
|
20905
21459
|
_g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -20935,7 +21489,7 @@
|
|
|
20935
21489
|
},
|
|
20936
21490
|
{
|
|
20937
21491
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
20938
|
-
rules: []
|
|
21492
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
20939
21493
|
}
|
|
20940
21494
|
],
|
|
20941
21495
|
_g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -21121,7 +21675,7 @@
|
|
|
21121
21675
|
},
|
|
21122
21676
|
{
|
|
21123
21677
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21124
|
-
rules: []
|
|
21678
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21125
21679
|
}
|
|
21126
21680
|
],
|
|
21127
21681
|
_g[exports.EnumTipoTributo.IS] = [
|
|
@@ -21203,7 +21757,7 @@
|
|
|
21203
21757
|
},
|
|
21204
21758
|
{
|
|
21205
21759
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21206
|
-
rules: []
|
|
21760
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21207
21761
|
}
|
|
21208
21762
|
],
|
|
21209
21763
|
_h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -21239,7 +21793,7 @@
|
|
|
21239
21793
|
},
|
|
21240
21794
|
{
|
|
21241
21795
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21242
|
-
rules: []
|
|
21796
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21243
21797
|
}
|
|
21244
21798
|
],
|
|
21245
21799
|
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -21425,7 +21979,7 @@
|
|
|
21425
21979
|
},
|
|
21426
21980
|
{
|
|
21427
21981
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21428
|
-
rules: []
|
|
21982
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21429
21983
|
}
|
|
21430
21984
|
],
|
|
21431
21985
|
_h[exports.EnumTipoTributo.IS] = [
|
|
@@ -21507,7 +22061,7 @@
|
|
|
21507
22061
|
},
|
|
21508
22062
|
{
|
|
21509
22063
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21510
|
-
rules: []
|
|
22064
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21511
22065
|
}
|
|
21512
22066
|
],
|
|
21513
22067
|
_j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -21543,7 +22097,7 @@
|
|
|
21543
22097
|
},
|
|
21544
22098
|
{
|
|
21545
22099
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21546
|
-
rules: []
|
|
22100
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21547
22101
|
}
|
|
21548
22102
|
],
|
|
21549
22103
|
_j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -21729,7 +22283,7 @@
|
|
|
21729
22283
|
},
|
|
21730
22284
|
{
|
|
21731
22285
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21732
|
-
rules: []
|
|
22286
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21733
22287
|
}
|
|
21734
22288
|
],
|
|
21735
22289
|
_j[exports.EnumTipoTributo.IS] = [
|
|
@@ -21811,7 +22365,7 @@
|
|
|
21811
22365
|
},
|
|
21812
22366
|
{
|
|
21813
22367
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21814
|
-
rules: []
|
|
22368
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21815
22369
|
}
|
|
21816
22370
|
],
|
|
21817
22371
|
_k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -21847,7 +22401,7 @@
|
|
|
21847
22401
|
},
|
|
21848
22402
|
{
|
|
21849
22403
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
21850
|
-
rules: []
|
|
22404
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
21851
22405
|
}
|
|
21852
22406
|
],
|
|
21853
22407
|
_k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -22033,7 +22587,7 @@
|
|
|
22033
22587
|
},
|
|
22034
22588
|
{
|
|
22035
22589
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22036
|
-
rules: []
|
|
22590
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22037
22591
|
}
|
|
22038
22592
|
],
|
|
22039
22593
|
_k[exports.EnumTipoTributo.IS] = [
|
|
@@ -22179,7 +22733,7 @@
|
|
|
22179
22733
|
},
|
|
22180
22734
|
{
|
|
22181
22735
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22182
|
-
rules: []
|
|
22736
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22183
22737
|
}
|
|
22184
22738
|
],
|
|
22185
22739
|
_l[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -22215,7 +22769,7 @@
|
|
|
22215
22769
|
},
|
|
22216
22770
|
{
|
|
22217
22771
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22218
|
-
rules: []
|
|
22772
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22219
22773
|
}
|
|
22220
22774
|
],
|
|
22221
22775
|
_l[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -22401,7 +22955,7 @@
|
|
|
22401
22955
|
},
|
|
22402
22956
|
{
|
|
22403
22957
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22404
|
-
rules: []
|
|
22958
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22405
22959
|
}
|
|
22406
22960
|
],
|
|
22407
22961
|
_l[exports.EnumTipoTributo.IS] = [
|
|
@@ -22483,7 +23037,7 @@
|
|
|
22483
23037
|
},
|
|
22484
23038
|
{
|
|
22485
23039
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22486
|
-
rules: []
|
|
23040
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22487
23041
|
}
|
|
22488
23042
|
],
|
|
22489
23043
|
_m[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -22519,7 +23073,7 @@
|
|
|
22519
23073
|
},
|
|
22520
23074
|
{
|
|
22521
23075
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22522
|
-
rules: []
|
|
23076
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22523
23077
|
}
|
|
22524
23078
|
],
|
|
22525
23079
|
_m[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -22705,7 +23259,7 @@
|
|
|
22705
23259
|
},
|
|
22706
23260
|
{
|
|
22707
23261
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22708
|
-
rules: []
|
|
23262
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22709
23263
|
}
|
|
22710
23264
|
],
|
|
22711
23265
|
_m[exports.EnumTipoTributo.IS] = [
|
|
@@ -22787,7 +23341,7 @@
|
|
|
22787
23341
|
},
|
|
22788
23342
|
{
|
|
22789
23343
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22790
|
-
rules: []
|
|
23344
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22791
23345
|
}
|
|
22792
23346
|
],
|
|
22793
23347
|
_o[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -22823,7 +23377,7 @@
|
|
|
22823
23377
|
},
|
|
22824
23378
|
{
|
|
22825
23379
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
22826
|
-
rules: []
|
|
23380
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
22827
23381
|
}
|
|
22828
23382
|
],
|
|
22829
23383
|
_o[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -23009,7 +23563,7 @@
|
|
|
23009
23563
|
},
|
|
23010
23564
|
{
|
|
23011
23565
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23012
|
-
rules: []
|
|
23566
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23013
23567
|
}
|
|
23014
23568
|
],
|
|
23015
23569
|
_o[exports.EnumTipoTributo.IS] = [
|
|
@@ -23091,7 +23645,7 @@
|
|
|
23091
23645
|
},
|
|
23092
23646
|
{
|
|
23093
23647
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23094
|
-
rules: []
|
|
23648
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23095
23649
|
}
|
|
23096
23650
|
],
|
|
23097
23651
|
_p[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -23127,7 +23681,7 @@
|
|
|
23127
23681
|
},
|
|
23128
23682
|
{
|
|
23129
23683
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23130
|
-
rules: []
|
|
23684
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23131
23685
|
}
|
|
23132
23686
|
],
|
|
23133
23687
|
_p[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -23313,7 +23867,7 @@
|
|
|
23313
23867
|
},
|
|
23314
23868
|
{
|
|
23315
23869
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23316
|
-
rules: []
|
|
23870
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23317
23871
|
}
|
|
23318
23872
|
],
|
|
23319
23873
|
_p[exports.EnumTipoTributo.IS] = [
|
|
@@ -23395,7 +23949,7 @@
|
|
|
23395
23949
|
},
|
|
23396
23950
|
{
|
|
23397
23951
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23398
|
-
rules: []
|
|
23952
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23399
23953
|
}
|
|
23400
23954
|
],
|
|
23401
23955
|
_q[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -23431,7 +23985,7 @@
|
|
|
23431
23985
|
},
|
|
23432
23986
|
{
|
|
23433
23987
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23434
|
-
rules: []
|
|
23988
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23435
23989
|
}
|
|
23436
23990
|
],
|
|
23437
23991
|
_q[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -23617,7 +24171,7 @@
|
|
|
23617
24171
|
},
|
|
23618
24172
|
{
|
|
23619
24173
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23620
|
-
rules: []
|
|
24174
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23621
24175
|
}
|
|
23622
24176
|
],
|
|
23623
24177
|
_q[exports.EnumTipoTributo.IS] = [
|
|
@@ -23699,7 +24253,7 @@
|
|
|
23699
24253
|
},
|
|
23700
24254
|
{
|
|
23701
24255
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23702
|
-
rules: []
|
|
24256
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23703
24257
|
}
|
|
23704
24258
|
],
|
|
23705
24259
|
_r[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -23735,7 +24289,7 @@
|
|
|
23735
24289
|
},
|
|
23736
24290
|
{
|
|
23737
24291
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23738
|
-
rules: []
|
|
24292
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23739
24293
|
}
|
|
23740
24294
|
],
|
|
23741
24295
|
_r[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -23921,7 +24475,7 @@
|
|
|
23921
24475
|
},
|
|
23922
24476
|
{
|
|
23923
24477
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
23924
|
-
rules: []
|
|
24478
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
23925
24479
|
}
|
|
23926
24480
|
],
|
|
23927
24481
|
_r[exports.EnumTipoTributo.IS] = [
|
|
@@ -24003,7 +24557,7 @@
|
|
|
24003
24557
|
},
|
|
24004
24558
|
{
|
|
24005
24559
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
24006
|
-
rules: []
|
|
24560
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
24007
24561
|
}
|
|
24008
24562
|
],
|
|
24009
24563
|
_s[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
@@ -24039,7 +24593,7 @@
|
|
|
24039
24593
|
},
|
|
24040
24594
|
{
|
|
24041
24595
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
24042
|
-
rules: []
|
|
24596
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
24043
24597
|
}
|
|
24044
24598
|
],
|
|
24045
24599
|
_s[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
@@ -24225,7 +24779,7 @@
|
|
|
24225
24779
|
},
|
|
24226
24780
|
{
|
|
24227
24781
|
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
24228
|
-
rules: []
|
|
24782
|
+
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
24229
24783
|
}
|
|
24230
24784
|
],
|
|
24231
24785
|
_s[exports.EnumTipoTributo.IS] = [
|
|
@@ -24295,9 +24849,10 @@
|
|
|
24295
24849
|
{ type: TaxClassificationRequiredValidationRule },
|
|
24296
24850
|
{ type: TaxAmountRequiredValidationRule },
|
|
24297
24851
|
{ type: TaxSituationRequiredValidationRule },
|
|
24298
|
-
{ type: AssessmentPeriodRequiredValidationRule }
|
|
24852
|
+
{ type: AssessmentPeriodRequiredValidationRule },
|
|
24853
|
+
{ type: ApplyNetValueToDocumentRequiredValidationRule }
|
|
24299
24854
|
]; };
|
|
24300
|
-
OutgoingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceValidationRulesRegistry_Factory() { return new OutgoingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule), core.ɵɵinject(AssessmentPeriodRequiredValidationRule)); }, token: OutgoingInvoiceValidationRulesRegistry, providedIn: "root" });
|
|
24855
|
+
OutgoingInvoiceValidationRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function OutgoingInvoiceValidationRulesRegistry_Factory() { return new OutgoingInvoiceValidationRulesRegistry(core.ɵɵinject(TaxableBaseRequiredValidationRule), core.ɵɵinject(TaxRateRequiredValidationRule), core.ɵɵinject(TaxClassificationRequiredValidationRule), core.ɵɵinject(TaxAmountRequiredValidationRule), core.ɵɵinject(TaxSituationRequiredValidationRule), core.ɵɵinject(AssessmentPeriodRequiredValidationRule), core.ɵɵinject(ApplyNetValueToDocumentRequiredValidationRule)); }, token: OutgoingInvoiceValidationRulesRegistry, providedIn: "root" });
|
|
24301
24856
|
OutgoingInvoiceValidationRulesRegistry = __decorate([
|
|
24302
24857
|
core.Injectable({ providedIn: 'root' })
|
|
24303
24858
|
], OutgoingInvoiceValidationRulesRegistry);
|
|
@@ -30840,7 +31395,6 @@
|
|
|
30840
31395
|
required: function () {
|
|
30841
31396
|
return _this.isFieldRequired(exports.EnumCampoTributo.AplicarValorLiquidoDocumento, tributo);
|
|
30842
31397
|
},
|
|
30843
|
-
showClear: true,
|
|
30844
31398
|
options: [
|
|
30845
31399
|
tributo === exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO ||
|
|
30846
31400
|
tributo === exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO
|
|
@@ -30897,6 +31451,7 @@
|
|
|
30897
31451
|
prefix: 'erpx_cpl_imp.impostos',
|
|
30898
31452
|
entity: 'classificacaoTributaria',
|
|
30899
31453
|
formGroup: 'classificacaoTributaria',
|
|
31454
|
+
queryFields: ['credPresIndDeduzCredPres'],
|
|
30900
31455
|
defaultFilter: [
|
|
30901
31456
|
{
|
|
30902
31457
|
field: 'situacao',
|
|
@@ -30938,7 +31493,7 @@
|
|
|
30938
31493
|
{ value: false, disabled: false },
|
|
30939
31494
|
forms.Validators.compose([])
|
|
30940
31495
|
] }, _a[exports.EnumCampoTributo.TipoCalculoImposto] = [
|
|
30941
|
-
{ value:
|
|
31496
|
+
{ value: undefined, disabled: false },
|
|
30942
31497
|
forms.Validators.compose([])
|
|
30943
31498
|
], _a)));
|
|
30944
31499
|
return retorno;
|
|
@@ -34372,52 +34927,55 @@
|
|
|
34372
34927
|
exports.nonNullish = nonNullish;
|
|
34373
34928
|
exports.ɵa = ErpResumoComponent;
|
|
34374
34929
|
exports.ɵb = ErpResumoService;
|
|
34375
|
-
exports.ɵba =
|
|
34376
|
-
exports.ɵbb =
|
|
34377
|
-
exports.ɵbc =
|
|
34378
|
-
exports.ɵbd =
|
|
34379
|
-
exports.ɵbe =
|
|
34380
|
-
exports.ɵbf =
|
|
34381
|
-
exports.ɵbg =
|
|
34382
|
-
exports.ɵbh =
|
|
34383
|
-
exports.ɵbi =
|
|
34384
|
-
exports.ɵbj =
|
|
34385
|
-
exports.ɵbk =
|
|
34386
|
-
exports.ɵbl =
|
|
34387
|
-
exports.ɵbm =
|
|
34388
|
-
exports.ɵbn =
|
|
34389
|
-
exports.ɵbo =
|
|
34390
|
-
exports.ɵbp =
|
|
34391
|
-
exports.ɵbq =
|
|
34392
|
-
exports.ɵbr =
|
|
34393
|
-
exports.ɵbs =
|
|
34394
|
-
exports.ɵbt =
|
|
34395
|
-
exports.ɵbu =
|
|
34396
|
-
exports.ɵbv =
|
|
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;
|
|
34397
34955
|
exports.ɵc = LoadingContext;
|
|
34398
34956
|
exports.ɵd = ErpTributosService;
|
|
34399
34957
|
exports.ɵe = RulesService;
|
|
34400
34958
|
exports.ɵf = StatusRulesRegistry;
|
|
34401
34959
|
exports.ɵg = IncomingInvoiceStatusRulesRegistry;
|
|
34402
34960
|
exports.ɵh = TaxClassificationStatusRule;
|
|
34403
|
-
exports.ɵi =
|
|
34404
|
-
exports.ɵj =
|
|
34405
|
-
exports.ɵk =
|
|
34406
|
-
exports.ɵl =
|
|
34407
|
-
exports.ɵm =
|
|
34408
|
-
exports.ɵn =
|
|
34409
|
-
exports.ɵo =
|
|
34410
|
-
exports.ɵp =
|
|
34411
|
-
exports.ɵq =
|
|
34412
|
-
exports.ɵr =
|
|
34413
|
-
exports.ɵs =
|
|
34414
|
-
exports.ɵt =
|
|
34415
|
-
exports.ɵu =
|
|
34416
|
-
exports.ɵv =
|
|
34417
|
-
exports.ɵw =
|
|
34418
|
-
exports.ɵx =
|
|
34419
|
-
exports.ɵy =
|
|
34420
|
-
exports.ɵz =
|
|
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;
|
|
34421
34979
|
|
|
34422
34980
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
34423
34981
|
|