Commit 47df200c authored by zhengyi's avatar zhengyi

Merge branch 'master-fix'

parents 7c8c2333 07c2dc59
......@@ -4629,8 +4629,13 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
throw exception(ORDER_HAS_PROCESSING_APPROVAL, orderDO.getOrderNo());
}
// 更新前一次打包数据
orderDO = this.updateOrderSumPrevPacked(orderId);
// 更新前一次打包数据。
// 这里必须要加判断,因为备货完成后再入仓修改后,若这里更新会导致sumWeightPrevPacked和sumWeightFinishedWarehouseIn值一样,
// 导致完成打包时判断的 体积/重量 一直是没有变更的,就会导致重泡货判断业务不正常。
// fix: #624 A2404786GA 麻烦看下这个单,先进仓0.3KG,申请减免泡重,按1KG收取,再进仓0.95KG,没有产生泡重异常,且整个订单都是按1KG收费
if (orderDO.getSumWeightPrevPacked() == null && orderDO.getSumWeightPrevPacked() == null) {
orderDO = this.updateOrderSumPrevPacked(orderId);
}
// 纪录打包历史
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