Commit 07c2dc59 authored by yanghao's avatar yanghao

fix: #624 A2404786GA 麻烦看下这个单,先进仓0.3KG,申请减免泡重,按1KG收取,再进仓0.95KG,没有产生泡重异常,且整个订单都是按1KG收费

parent 8d108f6e
...@@ -4629,8 +4629,13 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI ...@@ -4629,8 +4629,13 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
throw exception(ORDER_HAS_PROCESSING_APPROVAL, orderDO.getOrderNo()); throw exception(ORDER_HAS_PROCESSING_APPROVAL, orderDO.getOrderNo());
} }
// 更新前一次打包数据 // 更新前一次打包数据。
// 这里必须要加判断,因为备货完成后再入仓修改后,若这里更新会导致sumWeightPrevPacked和sumWeightFinishedWarehouseIn值一样,
// 导致完成打包时判断的 体积/重量 一直是没有变更的,就会导致重泡货判断业务不正常。
// fix: #624 A2404786GA 麻烦看下这个单,先进仓0.3KG,申请减免泡重,按1KG收取,再进仓0.95KG,没有产生泡重异常,且整个订单都是按1KG收费
if (orderDO.getSumWeightPrevPacked() == null && orderDO.getSumWeightPrevPacked() == null) {
orderDO = this.updateOrderSumPrevPacked(orderId); orderDO = this.updateOrderSumPrevPacked(orderId);
}
// 纪录打包历史 // 纪录打包历史
savePackLog(orderId, orderItemId, true); savePackLog(orderId, orderItemId, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment