完善单据保存的时候的判断逻辑:如果开启出入库管理,则在采购销售相关单据情况下则跳过判断

This commit is contained in:
季圣华
2023-12-05 23:36:48 +08:00
parent a0745cf4c7
commit 8693a61129
2 changed files with 53 additions and 9 deletions

View File

@@ -464,4 +464,21 @@ public class SystemConfigService {
}
return multiLevelApprovalFlag;
}
/**
* 获取出入库管理开关
* @return
* @throws Exception
*/
public boolean getInOutManageFlag() throws Exception {
boolean inOutManageFlag = false;
List<SystemConfig> list = getSystemConfig();
if(list.size()>0) {
String flag = list.get(0).getInOutManageFlag();
if(("1").equals(flag)) {
inOutManageFlag = true;
}
}
return inOutManageFlag;
}
}