Browse Source

Merge branch 'bugfix_3403' into debug

# Conflicts:
#	controller/contract/register.go
ziwen 1 year ago
parent
commit
44c3274ecd
1 changed files with 7 additions and 5 deletions
  1. 7 5
      controller/contract/register.go

+ 7 - 5
controller/contract/register.go

@@ -724,11 +724,11 @@ func (rg *RegisterController) Add(c *gin.Context) {
 			}
 			}
 		}
 		}
 		// 修改summary表,把旧合同id变成新的
 		// 修改summary表,把旧合同id变成新的
-		err = fms.UpdateInvoicePaymentSummaryByRegisterId(ob.ContractRegisterId, dupRegisterIds)
-		if err != nil {
-			err = fmt.Errorf("获取开票到款列表失败, Err: %s", err.Error())
-			return
-		}
+		//err = fms.UpdateInvoicePaymentSummaryByRegisterId(ob.ContractRegisterId, dupRegisterIds)
+		//if err != nil {
+		//	err = fmt.Errorf("获取开票到款列表失败, Err: %s", err.Error())
+		//	return
+		//}
 
 
 		//先遍历一遍拿到开票销售信息
 		//先遍历一遍拿到开票销售信息
 		for _, ppItem := range nDupList {
 		for _, ppItem := range nDupList {
@@ -853,6 +853,8 @@ func (rg *RegisterController) Add(c *gin.Context) {
 			resp.FailMsg("操作失败", "更新合同登记失败, Err:"+e.Error(), c)
 			resp.FailMsg("操作失败", "更新合同登记失败, Err:"+e.Error(), c)
 			return
 			return
 		}
 		}
+		// 开票到款汇总
+		go fmsService.SummaryInvoicePaymentByContractRegisterId(ob.ContractRegisterId)
 		// 操作日志
 		// 操作日志
 		go func() {
 		go func() {
 			logOB := new(fms.ContractRegisterLog)
 			logOB := new(fms.ContractRegisterLog)