Commit 0131346a authored by 季圣华's avatar 季圣华
Browse files

解决采购入库单状态bug

parent de7ed4a0
...@@ -458,9 +458,12 @@ public class DepotItemService { ...@@ -458,9 +458,12 @@ public class DepotItemService {
//更新当前库存 //更新当前库存
updateCurrentStock(depotItem); updateCurrentStock(depotItem);
} }
//如果关联单据号非空则更新订单的状态 //如果关联单据号非空则更新订单的状态,单据类型:采购入库单或销售出库单
if(StringUtil.isNotEmpty(depotHead.getLinkNumber())) { if(BusinessConstants.SUB_TYPE_PURCHASE.equals(depotHead.getSubType())
changeBillStatus(depotHead, billStatus); || BusinessConstants.SUB_TYPE_SALES.equals(depotHead.getSubType())) {
if(StringUtil.isNotEmpty(depotHead.getLinkNumber())) {
changeBillStatus(depotHead, billStatus);
}
} }
} else { } else {
throw new BusinessRunTimeException(ExceptionConstants.DEPOT_HEAD_ROW_FAILED_CODE, throw new BusinessRunTimeException(ExceptionConstants.DEPOT_HEAD_ROW_FAILED_CODE,
......
Supports Markdown
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