repzo-sap-absjo 1.0.34 → 1.0.35

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.
@@ -108,7 +108,8 @@ export const sync_measureunit = async (commandEvent) => {
108
108
  const CARD = max_unit.sap_product_UoMs.find(
109
109
  (u) => u.ALTUOMCODE == "CARD"
110
110
  );
111
- max_unit.default_unit = PC || POUCH || CARD;
111
+ const KG = max_unit.sap_product_UoMs.find((u) => u.ALTUOMCODE == "Kg");
112
+ max_unit.default_unit = PC || POUCH || CARD || KG;
112
113
  if (!max_unit.default_unit) {
113
114
  // console.log(
114
115
  // "Create/Update Measure Unit Failed >> ",
package/lib/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import jwt from "jsonwebtoken";
1
+ import type * as jwt from "jsonwebtoken";
2
2
  import { Service } from "repzo/src/types";
3
3
  export interface Config {
4
4
  app_id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "repzo-sap-absjo",
3
3
  "description": "repzo SAP ABS jo integration",
4
- "version": "1.0.34",
4
+ "version": "1.0.35",
5
5
  "homepage": "",
6
6
  "keywords": [],
7
7
  "author": {
@@ -121,7 +121,8 @@ export const sync_measureunit = async (commandEvent: CommandEvent) => {
121
121
  const CARD = max_unit.sap_product_UoMs.find(
122
122
  (u) => u.ALTUOMCODE == "CARD"
123
123
  );
124
- max_unit.default_unit = PC || POUCH || CARD;
124
+ const KG = max_unit.sap_product_UoMs.find((u) => u.ALTUOMCODE == "Kg");
125
+ max_unit.default_unit = PC || POUCH || CARD || KG;
125
126
 
126
127
  if (!max_unit.default_unit) {
127
128
  // console.log(
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import jwt from "jsonwebtoken";
1
+ import type * as jwt from "jsonwebtoken";
2
2
  import { Service } from "repzo/src/types";
3
3
  export interface Config {
4
4
  app_id: string;