fix(分拣): 保留历史斤行无重量回退,仅单位不一致时强制重量
This commit is contained in:
@@ -353,7 +353,8 @@ export function resolvePickingSettlementQty(
|
||||
): number {
|
||||
const { picked_qty, picked_weight } = normalizePickingSavedMeasures(pickedQty, pickedWeight, unit);
|
||||
if (isPickingWeightUnit(unit)) {
|
||||
if (isPickingWeightUnit(orderUnit) === false && picked_weight <= 0) return 0;
|
||||
const hasOrderUnit = Boolean(String(orderUnit || '').trim());
|
||||
if (hasOrderUnit && !isPickingWeightUnit(orderUnit) && picked_weight <= 0) return 0;
|
||||
return picked_weight > 0 ? picked_weight : picked_qty;
|
||||
}
|
||||
return picked_qty > 0 ? picked_qty : 0;
|
||||
|
||||
Reference in New Issue
Block a user