销售订单取消审核
This commit is contained in:
parent
1687efdaa6
commit
3fc080b891
|
|
@ -9,6 +9,7 @@ import java.util.ArrayList;
|
|||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import nc.bs.pub.action.N_30_UNAPPROVE;
|
||||
import nc.bs.scmpub.rule.VOSagaFrozenValidateRule;
|
||||
import nc.bs.so.m30.maintain.rule.insert.RewritePromotePriceInsertRule;
|
||||
|
|
@ -80,8 +81,8 @@ public class UnApproveSaleOrderAction {
|
|||
List<String> pk_org = new ArrayList();
|
||||
new HashMap();
|
||||
|
||||
for(SaleOrderVO vo : newbills) {
|
||||
for(SaleOrderBVO bvo : vo.getChildrenVO()) {
|
||||
for (SaleOrderVO vo : newbills) {
|
||||
for (SaleOrderBVO bvo : vo.getChildrenVO()) {
|
||||
String csettleorgid = bvo.getCsettleorgid();
|
||||
if (!pk_org.contains(csettleorgid)) {
|
||||
pk_org.add(csettleorgid);
|
||||
|
|
@ -91,12 +92,12 @@ public class UnApproveSaleOrderAction {
|
|||
|
||||
Map<String, Boolean> isEnable = SysInitGroupQuery.isRMEnabled(pk_org);
|
||||
|
||||
for(SaleOrderVO vo : newbills) {
|
||||
for (SaleOrderVO vo : newbills) {
|
||||
List<SaleOrderBVO> newbvo = new ArrayList();
|
||||
|
||||
for(SaleOrderBVO bvo : vo.getChildrenVO()) {
|
||||
for (SaleOrderBVO bvo : vo.getChildrenVO()) {
|
||||
String csettleorgid = bvo.getCsettleorgid();
|
||||
if (!isEnable.isEmpty() && !(Boolean)isEnable.get(csettleorgid)) {
|
||||
if (!isEnable.isEmpty() && !(Boolean) isEnable.get(csettleorgid)) {
|
||||
bvo.setRmcontractbflag(UFBoolean.FALSE);
|
||||
} else {
|
||||
newbvo.add(bvo);
|
||||
|
|
@ -109,11 +110,11 @@ public class UnApproveSaleOrderAction {
|
|||
List<SaleOrderBVO> listbody = new ArrayList();
|
||||
int i = 0;
|
||||
|
||||
for(SaleOrderVO ordervo : newbills) {
|
||||
for (SaleOrderVO ordervo : newbills) {
|
||||
statuschgrule.changePfToBillStatus(ordervo);
|
||||
updateheads[i] = ordervo.getParentVO();
|
||||
|
||||
for(SaleOrderBVO bvo : ordervo.getChildrenVO()) {
|
||||
for (SaleOrderBVO bvo : ordervo.getChildrenVO()) {
|
||||
listbody.add(bvo);
|
||||
}
|
||||
}
|
||||
|
|
@ -123,7 +124,7 @@ public class UnApproveSaleOrderAction {
|
|||
headupsrv.update(updateheads, headupname);
|
||||
String[] bodyupname = new String[]{"frowstatus", "rmcontractbflag"};
|
||||
VOUpdate<SaleOrderBVO> bodyupsrv = new VOUpdate();
|
||||
SaleOrderBVO[] updatebodys = (SaleOrderBVO[])listbody.toArray(new SaleOrderBVO[listbody.size()]);
|
||||
SaleOrderBVO[] updatebodys = (SaleOrderBVO[]) listbody.toArray(new SaleOrderBVO[listbody.size()]);
|
||||
bodyupsrv.update(updatebodys, bodyupname);
|
||||
}
|
||||
|
||||
|
|
@ -199,6 +200,6 @@ public class UnApproveSaleOrderAction {
|
|||
}
|
||||
|
||||
private void clearAppInfoContext() {
|
||||
AppInfoContext.setBtnCode((String)null);
|
||||
AppInfoContext.setBtnCode((String) null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue