Browse Source

去掉保存即审批

yaoyu 1 year ago
parent
commit
84792956f6

+ 10 - 10
xh/so/src/private/nc/bs/pu/m25/pfxx/M25PfxxPlugin.java

@@ -135,16 +135,16 @@ public class M25PfxxPlugin extends AbstractPuPfxxPlugin {
 		orderHVO.setFinvoicetype(0);
 		vo.setParentVO(orderHVO);
 		AggregatedValueObject[]  savedVos = (new InvoiceInsertAction()).insert(new InvoiceVO[]{(InvoiceVO) vo}, (InvoiceUIToBSEnv) null);
-		try {
-			HashMap<String, Object> pfparam = new HashMap<String, Object>(); // 该参数用于控制自动审批时按钮的审批状态 
-			pfparam.put(PfParameterUtil.ORIGIN_VO_PARAMETER, CloneUtil.deepClone(savedVos)); 
-			//采购发票审批
-			NCLocator.getInstance().lookup(IPFBusiAction.class) .processBatch("APPROVE", "25",savedVos, null, null, pfparam);
-		} catch (BusinessException e) {
-			// TODO 自动生成的 catch 块
-			ExceptionUtils.wrappException(e);
-			return null;
-		}
+//		try {
+//			HashMap<String, Object> pfparam = new HashMap<String, Object>(); // 该参数用于控制自动审批时按钮的审批状态 
+//			pfparam.put(PfParameterUtil.ORIGIN_VO_PARAMETER, CloneUtil.deepClone(savedVos)); 
+//			//采购发票审批
+//			NCLocator.getInstance().lookup(IPFBusiAction.class) .processBatch("APPROVE", "25",savedVos, null, null, pfparam);
+//		} catch (BusinessException e) {
+//			// TODO 自动生成的 catch 块
+//			ExceptionUtils.wrappException(e);
+//			return null;
+//		}
 		return savedVos[0];
 	}
 

+ 8 - 8
xh/so/src/private/nc/pubimpl/so/m32/pfxx/M32PfxxPlugin.java

@@ -44,14 +44,14 @@ public class M32PfxxPlugin extends AbstractSOPfxxPlugin
         };
         SaleInvoiceVO retvos[] = (SaleInvoiceVO[])(SaleInvoiceVO[])PfServiceScmUtil.processBatch("WRITE", SOBillType.Invoice.getCode(), insertvo, null, null);
         IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
-        try {
-			service.processAction(IPFActionName.APPROVE,
-			        "F3", null, retvos[0], null, null);
-		} catch (BusinessException e) {
-			// TODO 自动生成的 catch 块
-			ExceptionUtils.wrappException(e);
-			return null;
-		}
+//        try {
+//			service.processAction(IPFActionName.APPROVE,
+//			        "F3", null, retvos[0], null, null);
+//		} catch (BusinessException e) {
+//			// TODO 自动生成的 catch 块
+//			ExceptionUtils.wrappException(e);
+//			return null;
+//		}
 		if(null == retvos || retvos.length == 0)
             return null;
         else