自动暂估应付
This commit is contained in:
		
							parent
							
								
									5d24e2bf9a
								
							
						
					
					
						commit
						22c0dbfb60
					
				|  | @ -5,11 +5,13 @@ | |||
| 
 | ||||
| package nc.bs.mmpub.rule; | ||||
| 
 | ||||
| import nc.bs.mmpsc.pscsettle.bp.SettleToAPBP; | ||||
| import nc.impl.pubapp.pattern.data.vo.tool.VOConcurrentTool; | ||||
| import nc.bs.framework.common.NCLocator; | ||||
| import nc.impl.pubapp.pattern.rule.IRule; | ||||
| import nc.itf.mmpsc.pscsettle.ISettleBusiness; | ||||
| import nc.util.mmf.framework.base.MMArrayUtil; | ||||
| import nc.vo.mmpsc.pscsettle.entity.AggSettleVO; | ||||
| import nc.vo.pub.BusinessException; | ||||
| import nccloud.api.so.m30.IAPISaleOrderMaitain; | ||||
| 
 | ||||
| public class MMVOToAPRule implements IRule<AggSettleVO> { | ||||
| 
 | ||||
|  | @ -20,13 +22,13 @@ public class MMVOToAPRule implements IRule<AggSettleVO> { | |||
| 
 | ||||
|     public void process(AggSettleVO[] vos) { | ||||
|         if (!MMArrayUtil.isEmpty(vos)) { | ||||
|             (new VOConcurrentTool()).checkTSWithDB(vos[0].getItemVO()); | ||||
|             SettleToAPBP bp = new SettleToAPBP(); | ||||
|             AggSettleVO[] retBills = bp.toAP(vos); | ||||
|             if (retBills.length>0){ | ||||
|                 System.out.println(1); | ||||
|             } | ||||
|             ISettleBusiness settleBusiness= (ISettleBusiness) NCLocator.getInstance().lookup(ISettleBusiness.class); | ||||
| 
 | ||||
|             try { | ||||
|                 settleBusiness.toAP(vos); | ||||
|             } catch (BusinessException e) { | ||||
|                 throw new RuntimeException(e); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue