|
|
@@ -83,12 +83,12 @@ public abstract class BasicBill {
|
|
|
if (!status.equals("新建")) {
|
|
|
throw new YosException("单号为:【" + billno + "】的出入库单为非新建状态,无法审核");
|
|
|
}
|
|
|
- RowsMap rowsMap =dbConnect.runSqlQuery("select CONCAT(year, '-',LPAD(month, 2, '0')) period,isclose from st_period").toRowsMap("period");
|
|
|
+ RowsMap rowsMap = dbConnect.runSqlQuery("select CONCAT(year, '-',LPAD(month, 2, '0')) period,isclose from st_period").toRowsMap("period");
|
|
|
if (rowsMap.containsKey(period)) {
|
|
|
- if(rowsMap.get(period).toRowsMap("isclose").containsKey("1")){
|
|
|
+ if (rowsMap.get(period).toRowsMap("isclose").containsKey("1")) {
|
|
|
throw new YosException("原单据会计期间已关闭,不可调整");
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
throw new YosException("原单据会计期间未生成,不可调整");
|
|
|
}
|
|
|
if (itemRows.isEmpty()) {
|
|
|
@@ -184,7 +184,9 @@ public abstract class BasicBill {
|
|
|
invbalUpdate.setWhere("siteid", siteid);
|
|
|
sqlList.add(invbalUpdate.getSQL());
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
return sqlList;
|
|
|
}
|