fix(order): preserve tax mode in remainder child orders

This commit is contained in:
2026-10-02 15:03:09 +08:00
parent f532e5ee7e
commit 195446e532
3 changed files with 63 additions and 3 deletions
@@ -142,6 +142,7 @@ public class OrderFulfillmentSplitService {
child.setReceivingWarehouseName(root.getReceivingWarehouseName()); child.setChannelCode(root.getChannelCode());
child.setChannelName(root.getChannelName()); child.setDestinationType(root.getDestinationType());
child.setFulfillmentType(root.getFulfillmentType());
child.setTaxMode(root.getTaxMode());
child.setInboundCode(remainderInboundCode(root, sequence));
child.setCreatedBy(operatorId); child.setUpdatedBy(operatorId);
if (orders.insert(child) != 1) throw new BizException(ResultCode.CONFLICT, "余量子订单创建失败");