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.
- package/lib/commands/measureunit.js +2 -1
- package/lib/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/commands/measureunit.ts +2 -1
- package/src/types.ts +1 -1
|
@@ -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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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