销售退货

This commit is contained in:
王帅 2025-05-15 19:44:03 +08:00
parent 72b3c89815
commit 2146620d74
3 changed files with 9 additions and 3 deletions

View File

@ -519,6 +519,7 @@ public class MaterialReceiveActController {
String commitDate = trackOutBoDto.getCommitDate();
String erpLocation = trackOutBoDto.getErpLocation();
String erpFactory1 = trackOutBoDto.getErpFactory();
String sign = trackOutBoDto.getSign();
// 采购单处理
for (MaterialReceiveRequest request : requests) {
String receiveRequestName = request.getReceiveRequestName();
@ -563,9 +564,12 @@ public class MaterialReceiveActController {
SDKMaterialPackingServiceImpl.updateMaterialPackingUndoIdByReceive(receiveRequestName, undoId);
// 更新库存状态
SDKMaterialPackingServiceImpl.SaveUnDoInfo( undoId,commitDate);
// SDKMaterialPackingServiceImpl.updateStockState(makeEventInfo, undoId,opCode,erpLocation, erpFactory1);
if ("app".equals(sign)) {
SDKMaterialPackingServiceImpl.updateStockStateNew(makeEventInfo, undoId,opCode,erpLocation, erpFactory1);
} else {
SDKMaterialPackingServiceImpl.updateStockState(makeEventInfo, undoId, opCode);
}
}
// 到货单据更新状态
if (Objects.nonNull(materialDelivery)) {
DeliveryEditDto deliveryEditDto = new DeliveryEditDto();

View File

@ -15,6 +15,8 @@ public class TrackOutBoDto {
private String erpLocation;
/**组织*/
private String erpFactory;
/**标识*/
private String sign;
}

View File

@ -324,7 +324,7 @@ public class SDKMaterialPackingServiceImpl extends CommonServiceDAO<MaterialPack
* @param erpLocation 仓库
* @param erpFactory 组织
*/
public void updateStockState(EventInfo eventInfo, String UNDOID,String opCode, String erpLocation, String erpFactory) throws CustomException {
public void updateStockStateNew(EventInfo eventInfo, String UNDOID,String opCode, String erpLocation, String erpFactory) throws CustomException {
// 查询仓库类型
String sqlErp = "SELECT TYPE FROM BS_ERPLOCATION WHERE ERPFACTORYNAME = :ERPFACTORYNAME AND ERPLOCATIONNAME = :ERPLOCATIONNAME";
Map<String, Object> hashMapErp = new HashMap<String, Object> ();