zet-lib 1.4.3 → 1.4.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.
package/lib/Util.js CHANGED
@@ -1542,7 +1542,9 @@ Util.tableShowInGrid = (arr, qey, MYMODEL, myCache, companyId) => {
1542
1542
  var keyFields = key + "Fields";
1543
1543
  var keyObject = key + "Object";
1544
1544
  let value = item[key];
1545
- if (mywidget[key].name == "relation") {
1545
+ if(mywidget[key].name == "select"){
1546
+ value = mywidget[key].fields[value] || ""
1547
+ } else if (mywidget[key].name == "relation") {
1546
1548
  value = value
1547
1549
  ? Util.array_id_to_zname(
1548
1550
  myCache.get(
package/lib/zRoute.js CHANGED
@@ -2279,9 +2279,9 @@ zRoute.generatePDF = async (file, layout = "pdf_bootstrap", options = {}) => {
2279
2279
  let puppeterOptions = {
2280
2280
  args: args,
2281
2281
  };
2282
- if (env === "production") {
2283
- puppeterOptions.executablePath = "/usr/bin/google-chrome-stable";
2284
- }
2282
+ //if (env === "production") {
2283
+ //puppeterOptions.executablePath = "/usr/bin/google-chrome-stable";
2284
+ //}
2285
2285
  puppeterOptions.defaultViewport = { width: 1920, height: 1080 };
2286
2286
  const browser = await puppeteer.launch(puppeterOptions);
2287
2287
  const page = await browser.newPage();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"