repzo-sap-absjo 1.0.50 → 1.0.51

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.
@@ -93,7 +93,7 @@ export const sync_measureunit = async (commandEvent) => {
93
93
  default_unit: null,
94
94
  };
95
95
  units.forEach((unit) => {
96
- if (max_unit.value == null || unit.BASEQTY < max_unit.value) {
96
+ if (max_unit.value == null || unit.BASEQTY > max_unit.value) {
97
97
  max_unit.value = unit.BASEQTY;
98
98
  max_unit.sap_product_UoMs.push(unit);
99
99
  } else if (unit.BASEQTY == max_unit.value) {
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.50",
4
+ "version": "1.0.51",
5
5
  "homepage": "",
6
6
  "keywords": [],
7
7
  "author": {
@@ -105,7 +105,7 @@ export const sync_measureunit = async (commandEvent: CommandEvent) => {
105
105
  default_unit: null,
106
106
  };
107
107
  units.forEach((unit) => {
108
- if (max_unit.value == null || unit.BASEQTY < max_unit.value) {
108
+ if (max_unit.value == null || unit.BASEQTY > max_unit.value) {
109
109
  max_unit.value = unit.BASEQTY;
110
110
  max_unit.sap_product_UoMs.push(unit);
111
111
  } else if (unit.BASEQTY == max_unit.value) {