@senior-gestao-empresarial/erpx-components 3.3.3 → 3.3.4

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.
@@ -1166,7 +1166,8 @@
1166
1166
  Object.keys(it.formGroup.value).forEach(function (item) {
1167
1167
  if ((item == 'percentualReducao') ||
1168
1168
  (item == 'percentualDiferimento') ||
1169
- (item == 'percentualMargemValorAdicionado')) {
1169
+ (item == 'percentualMargemValorAdicionado') ||
1170
+ (item === 'percentualSuspensaoParcial')) {
1170
1171
  it.formGroup.controls[item].setValidators(forms.Validators.compose([
1171
1172
  forms.Validators.required,
1172
1173
  forms.Validators.max(1000)
@@ -1224,7 +1225,8 @@
1224
1225
  Object.keys(it.formGroup.value).forEach(function (item) {
1225
1226
  if ((item == 'percentualReducao') ||
1226
1227
  (item == 'percentualDiferimento') ||
1227
- (item == 'percentualMargemValorAdicionado')) {
1228
+ (item == 'percentualMargemValorAdicionado') ||
1229
+ (item === 'percentualSuspensaoParcial')) {
1228
1230
  it.formGroup.controls[item].setValidators(forms.Validators.compose([forms.Validators.max(1000)]));
1229
1231
  it.formGroup.controls[item].updateValueAndValidity({ emitEvent: false });
1230
1232
  _this.setRequired(tributo, true);