js-gei 1.1.2 → 1.1.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.
package/dist/js-gei.es.js CHANGED
@@ -35870,15 +35870,14 @@ class Ts {
35870
35870
  }
35871
35871
  }
35872
35872
  class _h {
35873
- constructor(e, t, n) {
35874
- this.rootLevel = null, this.LeftObject = null, this.ExternalTables = {}, this.Settings = null, this._dicValues = {}, this.EvalType = "Init", this.Mappings = null, this.CodeListCache = {}, this.InvoiceStructure = {}, this.Legislation = e, this.LeftObject = t, this.ObjectInfo = (n == null ? void 0 : n.OI) ?? {}, this.CodeListCache = (n == null ? void 0 : n.CodeList) ?? {}, this.InvoiceStructure = (n == null ? void 0 : n.InvoiceStructure) ?? {}, this.ExternalTables = (n == null ? void 0 : n.External) ?? {}, this.Settings = (n == null ? void 0 : n.Settings) ?? {}, this.prepareValues();
35873
+ constructor(e, t) {
35874
+ this.rootLevel = null, this.LeftObject = null, this.ExternalTables = {}, this.Settings = null, this._dicValues = {}, this.EvalType = "Init", this.Mappings = null, this.CodeListCache = {}, this.InvoiceStructure = {}, this.LeftObject = e, this.ObjectInfo = (t == null ? void 0 : t.OI) ?? {}, this.CodeListCache = (t == null ? void 0 : t.CodeList) ?? {}, this.InvoiceStructure = (t == null ? void 0 : t.InvoiceStructure) ?? {}, this.ExternalTables = (t == null ? void 0 : t.External) ?? {}, this.Settings = (t == null ? void 0 : t.Settings) ?? {}, this.prepareValues();
35875
35875
  }
35876
35876
  prepareValues() {
35877
35877
  const e = /* @__PURE__ */ new Date();
35878
35878
  this._dicValues = {
35879
35879
  NOW: this.formatDateTime(e),
35880
- DATE: this.formatDate(e),
35881
- LEGISLATION: this.Legislation
35880
+ DATE: this.formatDate(e)
35882
35881
  };
35883
35882
  }
35884
35883
  static isMultiple(e) {
@@ -37495,17 +37494,17 @@ function d6() {
37495
37494
  }
37496
37495
  };
37497
37496
  }
37498
- const h6 = async (r, e, t) => {
37497
+ const h6 = async (r, e) => {
37499
37498
  Vr.config = {}, Vr.config.url = r + "/json.rpc", Vr.config.cors = !0;
37500
- var n = "GEI.GetClientLibObj", a = { Legislation: e };
37501
- Vr.call(n, a).done(function(i) {
37502
- return t != null && t(i), i;
37499
+ var t = "EOL.GetClientInfoForLib", n = {};
37500
+ Vr.call(t, n).done(function(a) {
37501
+ return e != null && e(a), a;
37503
37502
  }).post(Su());
37504
- }, w6 = async (r, e, t) => {
37503
+ }, w6 = async (r, e) => {
37505
37504
  Vr.config = {}, Vr.config.url = r + "/json.rpc", Vr.config.cors = !0;
37506
- var n = "EOLN.GetNewEditObj", a = {};
37507
- Vr.call(n, a).done(function(i) {
37508
- return t != null && t(i), i;
37505
+ var t = "EOLN.GetNewEditObj", n = {};
37506
+ Vr.call(t, n).done(function(a) {
37507
+ return e != null && e(a), a;
37509
37508
  }).post(Su());
37510
37509
  }, D6 = async (r, e, t, n, a) => {
37511
37510
  Vr.config = {}, Vr.config.url = r + "/json.rpc", Vr.config.cors = !0;
@@ -37513,15 +37512,16 @@ const h6 = async (r, e, t) => {
37513
37512
  Vr.call(i, o).done(function(l) {
37514
37513
  return a != null && a(l), l;
37515
37514
  }).post(Su());
37516
- }, N6 = (r, e, t) => {
37517
- var n = Fh(e);
37518
- console.log("Tech obj:"), console.log(n);
37519
- var a = new _h(r, n, t);
37520
- a.Evaluate() || console.log("Errors:");
37521
- const i = a.getAliasObject();
37522
- console.log("Aliased obj:"), console.log(i);
37523
- const o = y6(i, e);
37524
- return console.log("Edit obj new:"), console.log(o), o;
37515
+ }, N6 = (r, e) => {
37516
+ r.Invoice == null && (r.Invoice = r);
37517
+ var t = Fh(r);
37518
+ console.log("Tech obj:"), console.log(t);
37519
+ var n = new _h(t, e);
37520
+ n.Evaluate() || console.log("Errors:");
37521
+ const a = n.getAliasObject();
37522
+ console.log("Aliased obj:"), console.log(a);
37523
+ const i = y6(a, r);
37524
+ return console.log("Edit obj new:"), console.log(i), i;
37525
37525
  }, E6 = (r, e) => {
37526
37526
  var t = Eu("Invoice", e.Invoice);
37527
37527
  return t;
@@ -37606,16 +37606,16 @@ const h6 = async (r, e, t) => {
37606
37606
  }
37607
37607
  e[n] = r[n].Value;
37608
37608
  }), e;
37609
- }, A6 = (r, e, t) => {
37610
- var n = Th.getFromSessionStorage("ClientInfo");
37611
- if (n == null) {
37612
- var a = (o) => {
37613
- o.result != null ? o.result.Status == "OK" ? (x6(o.result.Result), t(o.result.Result)) : console.error("Error getting client info from server: " + o.result.Reason) : console.error("Error getting client info from server:" + o.error.data);
37609
+ }, A6 = (r, e) => {
37610
+ var t = Th.getFromSessionStorage("ClientInfo");
37611
+ if (t == null) {
37612
+ var n = (i) => {
37613
+ i.result != null ? i.result.Status == "OK" ? (x6(i.result.Result), e(i.result.Result)) : console.error("Error getting client info from server: " + i.result.Reason) : console.error("Error getting client info from server:" + i.error.data);
37614
37614
  };
37615
- h6(r, e, a);
37615
+ h6(r, n);
37616
37616
  } else {
37617
- var i = JSON.parse(n);
37618
- t(i);
37617
+ var a = JSON.parse(t);
37618
+ e(a);
37619
37619
  }
37620
37620
  }, x6 = (r) => {
37621
37621
  Th.setToSessionStorage("ClientInfo", r);