到货检验单-收回-库存校验调整

This commit is contained in:
mzr 2024-10-28 14:46:39 +08:00
parent 93a3ae946a
commit f8ff0b753d
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa
} else {
// 到货检验单的校验
// 查询采购入库单是否存在该id
String countSql = "select count(1) from IC_PURCHASEIN_B where csourcebillhid = '[otherId]';";
String countSql = "select count(1) from IC_PURCHASEIN_B where csourcebillhid = '[otherId]' and dr = 0;";
countSql = countSql.replace("[otherId]", otherId);
Integer num = (Integer) getBaseDAO().executeQuery(countSql, new ColumnProcessor());
if (num > 0) {