ziwen 1 rok pred
rodič
commit
96ab20f148
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      services/cygx/activity_special.go

+ 3 - 1
services/cygx/activity_special.go

@@ -683,7 +683,9 @@ func GetSpecialSurplusByCompanyNew(companyId int) (specialSurplus string, err er
 			err = e
 			return
 		}
-		specialSurplus = billItem.Total
+		if billItem != nil {
+			specialSurplus = billItem.Total
+		}
 		return
 	}
 	return