负计划备料重算优化关闭最终需求数量为0请购单备注
This commit is contained in:
parent
48bb70f9e8
commit
f3744b0b7b
|
|
@ -125,7 +125,7 @@ public class AfterPickmRecalUpdateBuyingreqRule implements IRule<PMOAggVO> {
|
|||
}
|
||||
|
||||
private void buyingreqRowClose(List<String> pmobids, List<String> pmoids) throws BusinessException {
|
||||
String reason = "¸º¼Æ»®";
|
||||
String reason = "运算BOM变更失败";
|
||||
IBuyingReqQueryCardInfoService query = NCLocator.getInstance().lookup(IBuyingReqQueryCardInfoService.class);
|
||||
PraybillVO[] rvo = query.queryVOs(pmoids.toArray(new String[0]));
|
||||
if (null == rvo || rvo.length == 0) {
|
||||
|
|
@ -135,23 +135,26 @@ public class AfterPickmRecalUpdateBuyingreqRule implements IRule<PMOAggVO> {
|
|||
for (PraybillVO vo : rvo) {
|
||||
ClientBillToServer<PraybillVO> tool = new ClientBillToServer<PraybillVO>();
|
||||
PraybillVO[] lightVOs = (PraybillVO[])tool.construct(new PraybillVO[]{vo}, new PraybillVO[]{vo});
|
||||
|
||||
// 过滤需要关闭的请购单行
|
||||
for(PraybillVO storeReqAppVO : lightVOs) {
|
||||
PraybillItemVO[] bvos = storeReqAppVO.getBVO();
|
||||
List<PraybillItemVO> newItemVo = new ArrayList<>(lightVOs.length);
|
||||
if (bvos != null && bvos.length > 0) {
|
||||
for(PraybillItemVO bvo : bvos) {
|
||||
bvo.setAttributeValue("vclosereason", reason);
|
||||
for(int i = 0; i < bvos.length; ++i) {
|
||||
if (pmobids.contains(bvos[i].getPk_praybill_b()) ) {
|
||||
bvos[i].setAttributeValue("vclosereason", reason);
|
||||
newItemVo.add(bvos[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
storeReqAppVO.setBVO(newItemVo.toArray(new PraybillItemVO[0]));
|
||||
}
|
||||
|
||||
IPraybillMaintain orderCloseService =NCLocator.getInstance().lookup(IPraybillMaintain.class);
|
||||
// lightVOs[0].getParent().setAttributeValue("ts", info.getTs());
|
||||
// lightVOs[0].getBVO()[0].setAttributeValue("ts", info.getBts());
|
||||
PraybillVO[] returnVos = orderCloseService.closeBillRow(lightVOs);
|
||||
orderCloseService.closeBillRow(lightVOs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue