检验单收回库存校验调整
This commit is contained in:
		
							parent
							
								
									4e692c1e9a
								
							
						
					
					
						commit
						7e1798da60
					
				|  | @ -570,10 +570,13 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa | |||
| 					errors += "单据号:[" + jydMasterVO.getAttributeValue("code") + "]收回失败,失败原因:到货检验单已审核通过,请勿收回。\n"; | ||||
| 				} | ||||
| 			} else { | ||||
| 				String def1 = jydMasterVO.getAttributeValue("def1") + ""; | ||||
| 				// 到货检验单的校验 | ||||
| 				// 查询采购入库单是否存在该id | ||||
| 				String countSql = "select count(1) from IC_PURCHASEIN_B where csourcebillhid = '[otherId]' and dr = 0;"; | ||||
| 				String countSql = "select count(1) from IC_PURCHASEIN_B " | ||||
| 						+ "where csourcebillhid = '[otherId]' and csourcebillbid = '[def1]' and dr = 0;"; | ||||
| 				countSql = countSql.replace("[otherId]", otherId); | ||||
| 				countSql = countSql.replace("[def1]", def1); | ||||
| 				Integer num = (Integer) getBaseDAO().executeQuery(countSql, new ColumnProcessor()); | ||||
| 				if (num > 0) { | ||||
| 					errors += "单据号:[" + jydMasterVO.getAttributeValue("code") + "]收回失败,失败原因:到货单已入库,请勿收回。\n"; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue