备料计划下达请购优化
This commit is contained in:
		
							parent
							
								
									569bae6fbf
								
							
						
					
					
						commit
						6388114190
					
				|  | @ -155,7 +155,7 @@ public class PickmToBuyingreqAction implements ICommonAction { | |||
|                 StringBuffer sb = new StringBuffer(); | ||||
| //                建议供供应商和招标项目号 dvaliddate价格生效时间 dinvaliddate价格失效日期 | ||||
|                 UFDate now = new UFDate(new Date()); | ||||
|                 sb.append(" SELECT pk_supplier,vbdef14  FROM purp_supplierprice  "); | ||||
|                 sb.append(" SELECT pk_supplier,vbdef14,norigtaxprice,norigprice  FROM purp_supplierprice  "); | ||||
|                 sb.append(" WHERE nvl(purp_supplierprice.dr,0)= 0  "); | ||||
|                 sb.append(" and  dvaliddate <= '" + now.toString() + "' and dinvaliddate >= '" + now.toString() + "' "+" and  pk_org = '" +head.getPk_org() + "' and pk_material = '" +  inVO.getBVO()[i].getPk_material()+ "' "); | ||||
|                 BaseDAO dao = new BaseDAO(); | ||||
|  | @ -163,6 +163,8 @@ public class PickmToBuyingreqAction implements ICommonAction { | |||
|                 if (!list.isEmpty()) { | ||||
|                     inVO.getBVO()[i].setPk_suggestsupplier(list.get(0).get("pk_supplier").toString()); | ||||
|                     inVO.getBVO()[i].setVbdef19(list.get(0).get("vbdef14").toString()); | ||||
| //                    inVO.getBVO()[i].setNtaxprice(new UFDouble(String.valueOf(list.get(0).get("norigtaxprice")))); | ||||
| //                    inVO.getBVO()[i].setNtaxmny(inVO.getBVO()[i].getNtaxprice().multiply(inVO.getBVO()[i].getNastnum())); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue