@senior-gestao-empresarial/erpx-components 3.24.0 → 3.24.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 +35 -16
- 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 +5 -5
- package/esm2015/components/tributos/rules/calculation/effective-tax-rate-calculation-rule.js +2 -2
- package/esm5/components/tributos/erp-tributos.component.js +35 -16
- package/esm5/components/tributos/rules/calculation/effective-tax-rate-calculation-rule.js +2 -2
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +5 -5
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +35 -16
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -1135,7 +1135,7 @@
|
|
|
1135
1135
|
taxRateReduction: taxRateReduction,
|
|
1136
1136
|
governamentalTaxRateReduction: governamentalTaxRateReduction
|
|
1137
1137
|
});
|
|
1138
|
-
return effectiveTaxRate.decimalPlaces(
|
|
1138
|
+
return effectiveTaxRate.decimalPlaces(4).toNumber();
|
|
1139
1139
|
}), operators.filter(function (effectiveTaxRate) { return effectiveTaxRate !== formGroup.get('aliquotaEfetiva').value; }))
|
|
1140
1140
|
.subscribe(function (effectiveTaxRate) {
|
|
1141
1141
|
formGroup.get('aliquotaEfetiva').setValue(effectiveTaxRate);
|
|
@@ -5856,16 +5856,35 @@
|
|
|
5856
5856
|
});
|
|
5857
5857
|
};
|
|
5858
5858
|
ErpTributosComponent.prototype.readOnlyTributos = function () {
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5859
|
+
var e_1, _a, e_2, _b;
|
|
5860
|
+
try {
|
|
5861
|
+
for (var _c = __values(this.grupos), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
5862
|
+
var group = _d.value;
|
|
5863
|
+
try {
|
|
5864
|
+
for (var _e = (e_2 = void 0, __values(group.item)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
5865
|
+
var item = _f.value;
|
|
5866
|
+
item.formGroup.disable({ emitEvent: false });
|
|
5867
|
+
}
|
|
5868
|
+
}
|
|
5869
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
5870
|
+
finally {
|
|
5871
|
+
try {
|
|
5872
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
5873
|
+
}
|
|
5874
|
+
finally { if (e_2) throw e_2.error; }
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5879
|
+
finally {
|
|
5880
|
+
try {
|
|
5881
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
5882
|
+
}
|
|
5883
|
+
finally { if (e_1) throw e_1.error; }
|
|
5865
5884
|
}
|
|
5866
5885
|
};
|
|
5867
5886
|
ErpTributosComponent.prototype.setTributos = function () {
|
|
5868
|
-
var
|
|
5887
|
+
var e_3, _a, e_4, _b;
|
|
5869
5888
|
var _this = this;
|
|
5870
5889
|
var _c;
|
|
5871
5890
|
if (((_c = this.grupos) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
@@ -5888,7 +5907,7 @@
|
|
|
5888
5907
|
for (var _d = __values(this.grupos), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
5889
5908
|
var group = _e.value;
|
|
5890
5909
|
try {
|
|
5891
|
-
for (var _f = (
|
|
5910
|
+
for (var _f = (e_4 = void 0, __values(group.item)), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
5892
5911
|
var item = _g.value;
|
|
5893
5912
|
this.initializeValueChanges({
|
|
5894
5913
|
group: group,
|
|
@@ -5896,22 +5915,22 @@
|
|
|
5896
5915
|
});
|
|
5897
5916
|
}
|
|
5898
5917
|
}
|
|
5899
|
-
catch (
|
|
5918
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
5900
5919
|
finally {
|
|
5901
5920
|
try {
|
|
5902
5921
|
if (_g && !_g.done && (_b = _f.return)) _b.call(_f);
|
|
5903
5922
|
}
|
|
5904
|
-
finally { if (
|
|
5923
|
+
finally { if (e_4) throw e_4.error; }
|
|
5905
5924
|
}
|
|
5906
5925
|
this.rulesService.apply({ groups: this.grupos, group: group, documentType: this.documento });
|
|
5907
5926
|
}
|
|
5908
5927
|
}
|
|
5909
|
-
catch (
|
|
5928
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
5910
5929
|
finally {
|
|
5911
5930
|
try {
|
|
5912
5931
|
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
5913
5932
|
}
|
|
5914
|
-
finally { if (
|
|
5933
|
+
finally { if (e_3) throw e_3.error; }
|
|
5915
5934
|
}
|
|
5916
5935
|
}
|
|
5917
5936
|
};
|
|
@@ -6134,7 +6153,7 @@
|
|
|
6134
6153
|
this.tributosChange.emit(arrItens);
|
|
6135
6154
|
};
|
|
6136
6155
|
ErpTributosComponent.prototype.novoImpostoManual = function (item, singleChange) {
|
|
6137
|
-
var
|
|
6156
|
+
var e_5, _a;
|
|
6138
6157
|
var _b;
|
|
6139
6158
|
try {
|
|
6140
6159
|
for (var _c = __values(item.formField), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
@@ -6142,12 +6161,12 @@
|
|
|
6142
6161
|
(_b = formField.onBlur) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
6143
6162
|
}
|
|
6144
6163
|
}
|
|
6145
|
-
catch (
|
|
6164
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
6146
6165
|
finally {
|
|
6147
6166
|
try {
|
|
6148
6167
|
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
6149
6168
|
}
|
|
6150
|
-
finally { if (
|
|
6169
|
+
finally { if (e_5) throw e_5.error; }
|
|
6151
6170
|
}
|
|
6152
6171
|
if (!singleChange) {
|
|
6153
6172
|
var group = this.grupos.find(function (group) { return group.item.includes(item); });
|