修改扫码单据产品出现多个供应商时没有实际数量问题

zhairh
郑明梁 2 years ago
parent e3dda6df25
commit b72ca9e07d

@ -39,10 +39,7 @@ import com.glxp.api.admin.res.inout.WarehouseUserResponse;
import com.glxp.api.admin.res.inventory.InvBusUserResponse; import com.glxp.api.admin.res.inventory.InvBusUserResponse;
import com.glxp.api.admin.service.auth.AuthAdminService; import com.glxp.api.admin.service.auth.AuthAdminService;
import com.glxp.api.admin.service.auth.CustomerService; import com.glxp.api.admin.service.auth.CustomerService;
import com.glxp.api.admin.service.basic.BasicUnitMaintainService; import com.glxp.api.admin.service.basic.*;
import com.glxp.api.admin.service.basic.BussinessTypeService;
import com.glxp.api.admin.service.basic.UdiInfoService;
import com.glxp.api.admin.service.basic.UdiRelevanceService;
import com.glxp.api.admin.service.business.StockOrderService; import com.glxp.api.admin.service.business.StockOrderService;
import com.glxp.api.admin.service.info.CompanyProductRelevanceService; import com.glxp.api.admin.service.info.CompanyProductRelevanceService;
import com.glxp.api.admin.service.info.SystemParamConfigService; import com.glxp.api.admin.service.info.SystemParamConfigService;
@ -113,6 +110,8 @@ public class WareHouseController {
private UdiInfoService udiInfoService; private UdiInfoService udiInfoService;
@Resource @Resource
private InvBusUserService invBusUserService; private InvBusUserService invBusUserService;
@Resource
private CustomService customService;
@AuthRuleAnnotation("") @AuthRuleAnnotation("")
@GetMapping("admin/warehouse/inout/list") @GetMapping("admin/warehouse/inout/list")
@ -1093,6 +1092,9 @@ public class WareHouseController {
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
} }
//计算实际数量
int reCount= customService.getActCount(warehouseEntity);
warehouseEntity.setReCount(reCount);
boolean b = codesTempService.update(warehouseEntity); boolean b = codesTempService.update(warehouseEntity);
if (warehouseEntity.getMySupId() != null) { if (warehouseEntity.getMySupId() != null) {
warehouseEntity.setSupId(warehouseEntity.getMySupId()); warehouseEntity.setSupId(warehouseEntity.getMySupId());

Loading…
Cancel
Save