repzo-sap-absjo 1.0.59 → 1.0.62
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.
|
@@ -156,7 +156,8 @@ export const create_transfer = async (event, options) => {
|
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
158
|
let item_measure_unit;
|
|
159
|
-
|
|
159
|
+
const transfer_item_measure_unit_id = repzo_transfer_item.measure_unit_id;
|
|
160
|
+
if (transfer_item_measure_unit_id) {
|
|
160
161
|
item_measure_unit =
|
|
161
162
|
(_l =
|
|
162
163
|
measureUnits === null || measureUnits === void 0
|
|
@@ -165,14 +166,15 @@ export const create_transfer = async (event, options) => {
|
|
|
165
166
|
? void 0
|
|
166
167
|
: _l.find(
|
|
167
168
|
(mu) =>
|
|
168
|
-
mu._id.toString() ==
|
|
169
|
-
repzo_measure_unit.measure_unit_id.toString()
|
|
169
|
+
mu._id.toString() == transfer_item_measure_unit_id.toString()
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
172
|
variants.push({
|
|
173
173
|
//@ts-ignore
|
|
174
174
|
ItemCode: repzo_transfer_item.variant_name,
|
|
175
|
-
Quantity:
|
|
175
|
+
Quantity:
|
|
176
|
+
repzo_transfer_item.qty /
|
|
177
|
+
Number(repzo_transfer_item.measure_unit_factor || 1),
|
|
176
178
|
//@ts-ignore
|
|
177
179
|
FromWarehouse:
|
|
178
180
|
(_m = repzo_transfer.from) === null || _m === void 0
|
package/package.json
CHANGED
|
@@ -134,17 +134,19 @@ export const create_transfer = async (event: EVENT, options: Config) => {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
let item_measure_unit: Service.MeasureUnit.Data | undefined;
|
|
137
|
-
|
|
137
|
+
const transfer_item_measure_unit_id = repzo_transfer_item.measure_unit_id;
|
|
138
|
+
if (transfer_item_measure_unit_id) {
|
|
138
139
|
item_measure_unit = measureUnits?.data?.find(
|
|
139
|
-
(mu) =>
|
|
140
|
-
mu._id.toString() == repzo_measure_unit.measure_unit_id.toString()
|
|
140
|
+
(mu) => mu._id.toString() == transfer_item_measure_unit_id.toString()
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
variants.push({
|
|
145
145
|
//@ts-ignore
|
|
146
146
|
ItemCode: repzo_transfer_item.variant_name,
|
|
147
|
-
Quantity:
|
|
147
|
+
Quantity:
|
|
148
|
+
repzo_transfer_item.qty /
|
|
149
|
+
Number(repzo_transfer_item.measure_unit_factor || 1),
|
|
148
150
|
//@ts-ignore
|
|
149
151
|
FromWarehouse: (
|
|
150
152
|
repzo_transfer.from as Service.Warehouse.WarehouseSchema
|