贴标申请,仓储转运
This commit is contained in:
+9
-1
@@ -478,6 +478,14 @@ public class WarehouseTransferService {
|
||||
orderDetails.updateById(detail);
|
||||
}
|
||||
syncInboundPlanDestination(customerId, transfer);
|
||||
if (StringUtils.hasText(transfer.getRelabelNo())) {
|
||||
RelabelApplication relabel = relabelApplications.lockNo(customerId, transfer.getRelabelNo());
|
||||
if (relabel != null && "WAIT_FBA_DESTINATION".equals(relabel.getFulfillmentStatus())) {
|
||||
relabel.setFulfillmentStatus("WAIT_PRE_DISPATCH");
|
||||
relabel.setUpdatedAt(now);
|
||||
relabelApplications.updateById(relabel);
|
||||
}
|
||||
}
|
||||
insertOrderHistory(customerId, order.getId(), order.getCurrentStatus(), order.getCurrentStatus(), transferNo,
|
||||
"Warehouse transfer destination bound by " + trim(operatorId), now);
|
||||
results.add(new WarehouseTransferResponses.DestinationResult(customerId, transferNo));
|
||||
@@ -1160,7 +1168,7 @@ public class WarehouseTransferService {
|
||||
throw conflict("Source inventory balance is missing for warehouse transfer receipt");
|
||||
}
|
||||
InventoryCommandResponse result = inventory.stockIn(customerId, operatorId,
|
||||
new InventoryCommandRequests.StockIn(customerId, null,
|
||||
new InventoryCommandRequests.StockIn(customerId, sourceBalance.getCustomerName(),
|
||||
request.destinationOverseasWarehouseId().trim(), trim(request.destinationOverseasWarehouseCode()),
|
||||
trim(request.destinationOverseasWarehouseName()), trim(request.destinationWarehouseId()),
|
||||
request.destinationWarehouseCode().trim(), trim(request.destinationWarehouseName()),
|
||||
|
||||
Reference in New Issue
Block a user