@senior-gestao-empresarial/erpx-components 1.18.4 → 1.18.5

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.
@@ -798,11 +798,11 @@
798
798
  var tributo = this.idsTaxesMemoriaCalculo.find(function (element) { return element.tipoTributo == imposto.name; });
799
799
  this.abrirWindowUrlMemoriaCalculo(tributo);
800
800
  };
801
- ErpTributosComponent.prototype.makeUrlWindow = function (params) {
801
+ ErpTributosComponent.prototype.makeUrlWindow = function (params, tributo) {
802
802
  this.erpTributosService.getFrontend(params).subscribe(function (response) {
803
803
  window.open("" + response.frontends[0].embeddedURL, '_blank');
804
804
  });
805
- this.gTag.sendEvent('ButtonViewCalculationMemory', '');
805
+ this.gTag.sendEvent('share', { method: tributo.fromScreen, content_type: tributo.tipoTributo });
806
806
  };
807
807
  ErpTributosComponent.prototype.disabledButton = function (imposto) {
808
808
  return this.idsTaxesMemoriaCalculo == undefined || !this.idsTaxesMemoriaCalculo.find(function (element) {
@@ -835,7 +835,7 @@
835
835
  "route": "" + this.validaTela(tributo)
836
836
  }]
837
837
  };
838
- this.makeUrlWindow(params);
838
+ this.makeUrlWindow(params, tributo);
839
839
  };
840
840
  ErpTributosComponent.prototype.validaTela = function (taxes) {
841
841
  if (this.isStTaxes(taxes.tipoTributo)) {