yuansh 1 rok pred
rodič
commit
4787830cf1

+ 2 - 2
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/oa/controller/IncidentTicketController.java

@@ -425,7 +425,7 @@ public class IncidentTicketController {
 			String planNumber = o.getPlanNumber();//计划单号
 			String practicalSum = o.getPracticalSum();//实际事故金额
 			String zhanghaoId = o.getZhanghaoId();//账套号
-			String accidentType = o.getAccidentType();//事故类型 应补(负数) 扣款正数 不涉及金额(0)
+			String accidentType = o.getAccidentType();//事故类型 应补(负数) 扣款正数 不涉及金额/公司承担(0)
 			String moneyType = o.getMoneyType();//币种
 			if(StringUtils.isNotBlank(u8Invoice)){
 				continue;
@@ -486,7 +486,7 @@ public class IncidentTicketController {
 			for (IncidentTicketChildren o:childrenList2){
 				String accidentType = o.getAccidentType();//事故类型 应补(负数) 扣款 正数 不涉及金额(0)
 				String U8Invoice = o.getU8Invoice();//账套号
-				if(StringUtils.isBlank(U8Invoice) && !accidentType.equals("不涉及金额")){
+				if(StringUtils.isBlank(U8Invoice) && !accidentType.equals("不涉及金额") && !accidentType.equals("公司承担")){
 					fnl = false;
 					break;
 				}

+ 3 - 3
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/oa/service/impl/IncidentTicketServiceImpl.java

@@ -98,7 +98,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
 		String accidentType = children.getAccidentType();//事故类型 应补(负数) 扣款 正数 不涉及金额(0)
 		String accidentNumber = incidentTicket.getAccidentNumber();//质量事故单号
 		map.put("cPBVMemo", accidentNumber);//质量事故单号
-		if(accidentType.equals("不涉及金额")){
+		if(accidentType.equals("不涉及金额") || accidentType.equals("公司承担")){
 			resMap.put("res","noneTrue");
 			return resMap;
 		}else if(accidentType.equals("扣款")){
@@ -315,7 +315,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
 		String accidentType = children.getAccidentType();//事故类型 应补(负数) 扣款 正数 不涉及金额(0)
 		String accidentNumber = incidentTicket.getAccidentNumber();//质量事故单号
 		map.put("cPBVMemo", accidentNumber);//质量事故单号
-		if(accidentType.equals("不涉及金额")){
+		if(accidentType.equals("不涉及金额") || accidentType.equals("公司承担")){
 			resMap.put("res","noneTrue");
 			return resMap;
 		}else if(accidentType.equals("扣款")){
@@ -524,7 +524,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
 		String accidentType = children.getAccidentType();//事故类型 应补(负数) 扣款 正数 不涉及金额(0)
 		String accidentNumber = incidentTicket.getAccidentNumber();//质量事故单号
 		map.put("cPBVMemo", accidentNumber);//质量事故单号
-		if(accidentType.equals("不涉及金额")){
+		if(accidentType.equals("不涉及金额") || accidentType.equals("公司承担")){
 			resMap.put("res","noneTrue");
 			return resMap;
 		}else if(accidentType.equals("扣款")){