ziwen 1 tahun lalu
induk
melakukan
812facccf7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      controller/contract/register.go

+ 1 - 1
controller/contract/register.go

@@ -1258,7 +1258,7 @@ func (rg *RegisterController) Invoice(c *gin.Context) {
 	//如果是开票,强制修改到款记录的销售
 	if len(newInvoice) > 0 && req.InvoiceType == fms.ContractInvoiceTypeMake {
 		invoiceItem, err := fms.GetContractInvoiceByRegisterIdAndType(req.ContractRegisterId)
-		if err != nil {
+		if err != nil && err != utils.ErrNoRow {
 			resp.FailMsg("获取到款数据失败", "获取到款数据失败, Err: "+err.Error(), c)
 			return
 		}