销售订单修订项目取值调整
This commit is contained in:
		
							parent
							
								
									1b2f6d5d9c
								
							
						
					
					
						commit
						c5ea156fc5
					
				|  | @ -595,6 +595,7 @@ public class APISaleOrderMaitainImpl implements IAPISaleOrderMaitain { | ||||||
|                 String ybpk = hvo.getCorigcurrencyid(); |                 String ybpk = hvo.getCorigcurrencyid(); | ||||||
|                 SaleOrderBVO[] bvos = vo.getChildrenVO(); |                 SaleOrderBVO[] bvos = vo.getChildrenVO(); | ||||||
|                 List<SaleOrderBVO> bvoList = new ArrayList<>(Arrays.asList(bvos)); |                 List<SaleOrderBVO> bvoList = new ArrayList<>(Arrays.asList(bvos)); | ||||||
|  |                 SaleOrderBVO oneBvo = vo.getChildrenVO()[0]; | ||||||
| 
 | 
 | ||||||
|                 List<Object> bodyArr = (List<Object>) objectMap.get("so_saleorder_b"); |                 List<Object> bodyArr = (List<Object>) objectMap.get("so_saleorder_b"); | ||||||
|                 for (Object body : bodyArr) { |                 for (Object body : bodyArr) { | ||||||
|  | @ -608,7 +609,11 @@ public class APISaleOrderMaitainImpl implements IAPISaleOrderMaitain { | ||||||
|                         SaleOrderBVO newBvo = new SaleOrderBVO(); |                         SaleOrderBVO newBvo = new SaleOrderBVO(); | ||||||
|                         newBvo.setStatus(VOStatus.NEW); |                         newBvo.setStatus(VOStatus.NEW); | ||||||
|                         newBvo.setAttributeValue("pk_group", pk_group); |                         newBvo.setAttributeValue("pk_group", pk_group); | ||||||
|                         newBvo.setAttributeValue("cprojectid", bodydata.get("cprojectid")); |                         String cprojectid = bodydata.get("cprojectid") + ""; | ||||||
|  |                         if (oneBvo != null) { | ||||||
|  |                             cprojectid = oneBvo.getCprojectid(); | ||||||
|  |                         } | ||||||
|  |                         newBvo.setAttributeValue("cprojectid", cprojectid); | ||||||
|                         // newBvo.setAttributeValue("ctrafficorgvid", pkOrg); |                         // newBvo.setAttributeValue("ctrafficorgvid", pkOrg); | ||||||
|                         // newBvo.setAttributeValue("csendstockorgvid", pkOrg); |                         // newBvo.setAttributeValue("csendstockorgvid", pkOrg); | ||||||
|                         // newBvo.setAttributeValue("csendstordocid", pkOrg); |                         // newBvo.setAttributeValue("csendstordocid", pkOrg); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue