完善单据保存的时候的判断逻辑:如果开启出入库管理,则在采购销售相关单据情况下则跳过判断
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user