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 +29 -29
- package/dist/js-gei.umd.js +2 -2
- package/package.json +1 -1
- package/src/Structure/InvoiceObj.ts +4 -5
- package/src/main.ts +12 -8
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
|
|
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.
|
|
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
|
|
37497
|
+
const h6 = async (r, e) => {
|
|
37499
37498
|
Vr.config = {}, Vr.config.url = r + "/json.rpc", Vr.config.cors = !0;
|
|
37500
|
-
var
|
|
37501
|
-
Vr.call(
|
|
37502
|
-
return
|
|
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
|
|
37503
|
+
}, w6 = async (r, e) => {
|
|
37505
37504
|
Vr.config = {}, Vr.config.url = r + "/json.rpc", Vr.config.cors = !0;
|
|
37506
|
-
var
|
|
37507
|
-
Vr.call(
|
|
37508
|
-
return
|
|
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
|
|
37517
|
-
|
|
37518
|
-
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37524
|
-
|
|
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
|
|
37610
|
-
var
|
|
37611
|
-
if (
|
|
37612
|
-
var
|
|
37613
|
-
|
|
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,
|
|
37615
|
+
h6(r, n);
|
|
37616
37616
|
} else {
|
|
37617
|
-
var
|
|
37618
|
-
|
|
37617
|
+
var a = JSON.parse(t);
|
|
37618
|
+
e(a);
|
|
37619
37619
|
}
|
|
37620
37620
|
}, x6 = (r) => {
|
|
37621
37621
|
Th.setToSessionStorage("ClientInfo", r);
|