@senior-gestao-empresarial/erpx-components 4.20.0 → 4.20.2
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 +81 -30
- 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/esm2015/components/tributos/erp-tributos.component.js +4 -1
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +69 -1
- package/esm2015/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +2 -4
- package/esm2015/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +5 -11
- package/esm2015/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +4 -10
- package/esm2015/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +4 -10
- package/esm5/components/tributos/erp-tributos.component.js +4 -1
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +69 -1
- package/esm5/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +2 -4
- package/esm5/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +5 -11
- package/esm5/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +4 -10
- package/esm5/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +4 -10
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +81 -30
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +81 -30
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -2010,9 +2010,7 @@
|
|
|
2010
2010
|
.subscribe(function (taxClassification) {
|
|
2011
2011
|
formGroup
|
|
2012
2012
|
.get('classificacaoTributaria')
|
|
2013
|
-
.setValue(taxClassification
|
|
2014
|
-
emitEvent: false
|
|
2015
|
-
});
|
|
2013
|
+
.setValue(taxClassification);
|
|
2016
2014
|
});
|
|
2017
2015
|
}
|
|
2018
2016
|
break;
|
|
@@ -6197,6 +6195,10 @@
|
|
|
6197
6195
|
{
|
|
6198
6196
|
field: exports.EnumCampoTributo.Valor,
|
|
6199
6197
|
rule: this.taxAmountCalculationRule
|
|
6198
|
+
},
|
|
6199
|
+
{
|
|
6200
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
6201
|
+
rule: this.taxClassificationCalculationRule
|
|
6200
6202
|
}
|
|
6201
6203
|
],
|
|
6202
6204
|
_a[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -6455,6 +6457,10 @@
|
|
|
6455
6457
|
{
|
|
6456
6458
|
field: exports.EnumCampoTributo.Valor,
|
|
6457
6459
|
rule: this.taxAmountCalculationRule
|
|
6460
|
+
},
|
|
6461
|
+
{
|
|
6462
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
6463
|
+
rule: this.taxClassificationCalculationRule
|
|
6458
6464
|
}
|
|
6459
6465
|
],
|
|
6460
6466
|
_b[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -6713,6 +6719,10 @@
|
|
|
6713
6719
|
{
|
|
6714
6720
|
field: exports.EnumCampoTributo.Valor,
|
|
6715
6721
|
rule: this.taxAmountCalculationRule
|
|
6722
|
+
},
|
|
6723
|
+
{
|
|
6724
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
6725
|
+
rule: this.taxClassificationCalculationRule
|
|
6716
6726
|
}
|
|
6717
6727
|
],
|
|
6718
6728
|
_c[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -6971,6 +6981,10 @@
|
|
|
6971
6981
|
{
|
|
6972
6982
|
field: exports.EnumCampoTributo.Valor,
|
|
6973
6983
|
rule: this.taxAmountCalculationRule
|
|
6984
|
+
},
|
|
6985
|
+
{
|
|
6986
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
6987
|
+
rule: this.taxClassificationCalculationRule
|
|
6974
6988
|
}
|
|
6975
6989
|
],
|
|
6976
6990
|
_d[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -7229,6 +7243,10 @@
|
|
|
7229
7243
|
{
|
|
7230
7244
|
field: exports.EnumCampoTributo.Valor,
|
|
7231
7245
|
rule: this.taxAmountCalculationRule
|
|
7246
|
+
},
|
|
7247
|
+
{
|
|
7248
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
7249
|
+
rule: this.taxClassificationCalculationRule
|
|
7232
7250
|
}
|
|
7233
7251
|
],
|
|
7234
7252
|
_e[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -7487,6 +7505,10 @@
|
|
|
7487
7505
|
{
|
|
7488
7506
|
field: exports.EnumCampoTributo.Valor,
|
|
7489
7507
|
rule: this.taxAmountCalculationRule
|
|
7508
|
+
},
|
|
7509
|
+
{
|
|
7510
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
7511
|
+
rule: this.taxClassificationCalculationRule
|
|
7490
7512
|
}
|
|
7491
7513
|
],
|
|
7492
7514
|
_f[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -7745,6 +7767,10 @@
|
|
|
7745
7767
|
{
|
|
7746
7768
|
field: exports.EnumCampoTributo.Valor,
|
|
7747
7769
|
rule: this.taxAmountCalculationRule
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
7773
|
+
rule: this.taxClassificationCalculationRule
|
|
7748
7774
|
}
|
|
7749
7775
|
],
|
|
7750
7776
|
_g[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -8003,6 +8029,10 @@
|
|
|
8003
8029
|
{
|
|
8004
8030
|
field: exports.EnumCampoTributo.Valor,
|
|
8005
8031
|
rule: this.taxAmountCalculationRule
|
|
8032
|
+
},
|
|
8033
|
+
{
|
|
8034
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
8035
|
+
rule: this.taxClassificationCalculationRule
|
|
8006
8036
|
}
|
|
8007
8037
|
],
|
|
8008
8038
|
_h[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -8261,6 +8291,10 @@
|
|
|
8261
8291
|
{
|
|
8262
8292
|
field: exports.EnumCampoTributo.Valor,
|
|
8263
8293
|
rule: this.taxAmountCalculationRule
|
|
8294
|
+
},
|
|
8295
|
+
{
|
|
8296
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
8297
|
+
rule: this.taxClassificationCalculationRule
|
|
8264
8298
|
}
|
|
8265
8299
|
],
|
|
8266
8300
|
_j[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -8519,6 +8553,10 @@
|
|
|
8519
8553
|
{
|
|
8520
8554
|
field: exports.EnumCampoTributo.Valor,
|
|
8521
8555
|
rule: this.taxAmountCalculationRule
|
|
8556
|
+
},
|
|
8557
|
+
{
|
|
8558
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
8559
|
+
rule: this.taxClassificationCalculationRule
|
|
8522
8560
|
}
|
|
8523
8561
|
],
|
|
8524
8562
|
_k[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -8841,6 +8879,10 @@
|
|
|
8841
8879
|
{
|
|
8842
8880
|
field: exports.EnumCampoTributo.Valor,
|
|
8843
8881
|
rule: this.taxAmountCalculationRule
|
|
8882
|
+
},
|
|
8883
|
+
{
|
|
8884
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
8885
|
+
rule: this.taxClassificationCalculationRule
|
|
8844
8886
|
}
|
|
8845
8887
|
],
|
|
8846
8888
|
_l[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -9099,6 +9141,10 @@
|
|
|
9099
9141
|
{
|
|
9100
9142
|
field: exports.EnumCampoTributo.Valor,
|
|
9101
9143
|
rule: this.taxAmountCalculationRule
|
|
9144
|
+
},
|
|
9145
|
+
{
|
|
9146
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
9147
|
+
rule: this.taxClassificationCalculationRule
|
|
9102
9148
|
}
|
|
9103
9149
|
],
|
|
9104
9150
|
_m[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -9357,6 +9403,10 @@
|
|
|
9357
9403
|
{
|
|
9358
9404
|
field: exports.EnumCampoTributo.Valor,
|
|
9359
9405
|
rule: this.taxAmountCalculationRule
|
|
9406
|
+
},
|
|
9407
|
+
{
|
|
9408
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
9409
|
+
rule: this.taxClassificationCalculationRule
|
|
9360
9410
|
}
|
|
9361
9411
|
],
|
|
9362
9412
|
_o[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -9615,6 +9665,10 @@
|
|
|
9615
9665
|
{
|
|
9616
9666
|
field: exports.EnumCampoTributo.Valor,
|
|
9617
9667
|
rule: this.taxAmountCalculationRule
|
|
9668
|
+
},
|
|
9669
|
+
{
|
|
9670
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
9671
|
+
rule: this.taxClassificationCalculationRule
|
|
9618
9672
|
}
|
|
9619
9673
|
],
|
|
9620
9674
|
_p[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -9873,6 +9927,10 @@
|
|
|
9873
9927
|
{
|
|
9874
9928
|
field: exports.EnumCampoTributo.Valor,
|
|
9875
9929
|
rule: this.taxAmountCalculationRule
|
|
9930
|
+
},
|
|
9931
|
+
{
|
|
9932
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
9933
|
+
rule: this.taxClassificationCalculationRule
|
|
9876
9934
|
}
|
|
9877
9935
|
],
|
|
9878
9936
|
_q[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -10131,6 +10189,10 @@
|
|
|
10131
10189
|
{
|
|
10132
10190
|
field: exports.EnumCampoTributo.Valor,
|
|
10133
10191
|
rule: this.taxAmountCalculationRule
|
|
10192
|
+
},
|
|
10193
|
+
{
|
|
10194
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
10195
|
+
rule: this.taxClassificationCalculationRule
|
|
10134
10196
|
}
|
|
10135
10197
|
],
|
|
10136
10198
|
_r[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -10389,6 +10451,10 @@
|
|
|
10389
10451
|
{
|
|
10390
10452
|
field: exports.EnumCampoTributo.Valor,
|
|
10391
10453
|
rule: this.taxAmountCalculationRule
|
|
10454
|
+
},
|
|
10455
|
+
{
|
|
10456
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
10457
|
+
rule: this.taxClassificationCalculationRule
|
|
10392
10458
|
}
|
|
10393
10459
|
],
|
|
10394
10460
|
_s[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -15502,11 +15568,7 @@
|
|
|
15502
15568
|
case 'Incoming Invoice':
|
|
15503
15569
|
case 'Purchase Order':
|
|
15504
15570
|
{
|
|
15505
|
-
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
15506
15571
|
rxjs.combineLatest([
|
|
15507
|
-
baseTaxFormGroup
|
|
15508
|
-
.get('baseCalculo')
|
|
15509
|
-
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
15510
15572
|
formGroup
|
|
15511
15573
|
.get('baseCalculo')
|
|
15512
15574
|
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
@@ -15519,19 +15581,17 @@
|
|
|
15519
15581
|
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged())
|
|
15520
15582
|
])
|
|
15521
15583
|
.pipe(operators.map(function (_a) {
|
|
15522
|
-
var _b = __read(_a,
|
|
15584
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxAmount = _b[2];
|
|
15523
15585
|
return [
|
|
15524
|
-
new BigNumber(baseTaxTaxableBase),
|
|
15525
15586
|
new BigNumber(taxableBase),
|
|
15526
15587
|
new BigNumber(taxRate),
|
|
15527
15588
|
new BigNumber(taxAmount)
|
|
15528
15589
|
];
|
|
15529
15590
|
}))
|
|
15530
15591
|
.subscribe(function (_a) {
|
|
15531
|
-
var _b = __read(_a,
|
|
15592
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxAmount = _b[2];
|
|
15532
15593
|
var validators = [];
|
|
15533
|
-
if (
|
|
15534
|
-
taxableBase.isFinite() ||
|
|
15594
|
+
if (taxableBase.isFinite() ||
|
|
15535
15595
|
taxRate.isFinite() ||
|
|
15536
15596
|
taxAmount.isFinite()) {
|
|
15537
15597
|
validators = [
|
|
@@ -17062,11 +17122,7 @@
|
|
|
17062
17122
|
case 'Incoming Invoice':
|
|
17063
17123
|
case 'Purchase Order':
|
|
17064
17124
|
{
|
|
17065
|
-
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
17066
17125
|
rxjs.combineLatest([
|
|
17067
|
-
baseTaxFormGroup
|
|
17068
|
-
.get('baseCalculo')
|
|
17069
|
-
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
17070
17126
|
formGroup
|
|
17071
17127
|
.get('baseCalculo')
|
|
17072
17128
|
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
@@ -17079,19 +17135,17 @@
|
|
|
17079
17135
|
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged())
|
|
17080
17136
|
])
|
|
17081
17137
|
.pipe(operators.map(function (_a) {
|
|
17082
|
-
var _b = __read(_a,
|
|
17138
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxAmount = _b[2];
|
|
17083
17139
|
return [
|
|
17084
|
-
new BigNumber(baseTaxTaxableBase),
|
|
17085
17140
|
new BigNumber(taxableBase),
|
|
17086
17141
|
new BigNumber(taxRate),
|
|
17087
17142
|
new BigNumber(taxAmount)
|
|
17088
17143
|
];
|
|
17089
17144
|
}))
|
|
17090
17145
|
.subscribe(function (_a) {
|
|
17091
|
-
var _b = __read(_a,
|
|
17146
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxAmount = _b[2];
|
|
17092
17147
|
var validators = [];
|
|
17093
|
-
if (
|
|
17094
|
-
taxableBase.isFinite() ||
|
|
17148
|
+
if (taxableBase.isFinite() ||
|
|
17095
17149
|
taxRate.isFinite() ||
|
|
17096
17150
|
taxAmount.isFinite()) {
|
|
17097
17151
|
validators = [
|
|
@@ -18146,11 +18200,7 @@
|
|
|
18146
18200
|
case 'Incoming Invoice':
|
|
18147
18201
|
case 'Purchase Order':
|
|
18148
18202
|
{
|
|
18149
|
-
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
18150
18203
|
rxjs.combineLatest([
|
|
18151
|
-
baseTaxFormGroup
|
|
18152
|
-
.get('baseCalculo')
|
|
18153
|
-
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
18154
18204
|
formGroup
|
|
18155
18205
|
.get('baseCalculo')
|
|
18156
18206
|
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
@@ -18163,19 +18213,17 @@
|
|
|
18163
18213
|
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged())
|
|
18164
18214
|
])
|
|
18165
18215
|
.pipe(operators.map(function (_a) {
|
|
18166
|
-
var _b = __read(_a,
|
|
18216
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxAmount = _b[2];
|
|
18167
18217
|
return [
|
|
18168
|
-
new BigNumber(baseTaxTaxableBase),
|
|
18169
18218
|
new BigNumber(taxableBase),
|
|
18170
18219
|
new BigNumber(taxRate),
|
|
18171
18220
|
new BigNumber(taxAmount)
|
|
18172
18221
|
];
|
|
18173
18222
|
}))
|
|
18174
18223
|
.subscribe(function (_a) {
|
|
18175
|
-
var _b = __read(_a,
|
|
18224
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxAmount = _b[2];
|
|
18176
18225
|
var validators = [];
|
|
18177
|
-
if (
|
|
18178
|
-
taxableBase.isFinite() ||
|
|
18226
|
+
if (taxableBase.isFinite() ||
|
|
18179
18227
|
taxRate.isFinite() ||
|
|
18180
18228
|
taxAmount.isFinite()) {
|
|
18181
18229
|
validators = [
|
|
@@ -29481,18 +29529,21 @@
|
|
|
29481
29529
|
case exports.EnumTipoTributo.CIDE_TECNOLOGIA:
|
|
29482
29530
|
return 'cide';
|
|
29483
29531
|
case exports.EnumTipoTributo.CBS:
|
|
29532
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
29484
29533
|
case exports.EnumTipoTributo.CBS_DIFERIDO:
|
|
29485
29534
|
case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
|
|
29486
29535
|
case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
|
|
29487
29536
|
case exports.EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
29488
29537
|
return 'cbs';
|
|
29489
29538
|
case exports.EnumTipoTributo.IBS_ESTADUAL:
|
|
29539
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
29490
29540
|
case exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
29491
29541
|
case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
|
|
29492
29542
|
case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
|
|
29493
29543
|
case exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
29494
29544
|
return 'ibs-estadual';
|
|
29495
29545
|
case exports.EnumTipoTributo.IBS_MUNICIPAL:
|
|
29546
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
29496
29547
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
29497
29548
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
|
|
29498
29549
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|