repzo-sap-absjo 1.0.34 → 1.0.36

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,11 @@ 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
+ const BAG = max_unit.sap_product_UoMs.find(
113
+ (u) => u.ALTUOMCODE == "Bag"
114
+ );
115
+ max_unit.default_unit = PC || POUCH || CARD || KG || BAG;
112
116
  if (!max_unit.default_unit) {
113
117
  // console.log(
114
118
  // "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.36",
5
5
  "homepage": "",
6
6
  "keywords": [],
7
7
  "author": {
@@ -121,7 +121,11 @@ 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
+ const BAG = max_unit.sap_product_UoMs.find(
126
+ (u) => u.ALTUOMCODE == "Bag"
127
+ );
128
+ max_unit.default_unit = PC || POUCH || CARD || KG || BAG;
125
129
 
126
130
  if (!max_unit.default_unit) {
127
131
  // 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;