zwxi пре 1 година
родитељ
комит
5a3230cc60
1 измењених фајлова са 9 додато и 9 уклоњено
  1. 9 9
      controller/census/seller.go

+ 9 - 9
controller/census/seller.go

@@ -534,15 +534,15 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 	}
 	sellerIds := make([]string,0)
 
-	//if req.SellerType == 1 {
-	//	cond += ` AND b.contract_type = 1 `
-	//	historyCond += ` AND new_company = 1 `
-	//	sellerIds = ficcSellerIds
-	//} else if req.SellerType == 2 {
-	//	cond += ` AND b.contract_type IN (2,3,4) `
-	//	historyCond += ` AND new_company = 0 `
-	//	sellerIds = raiSellerIds
-	//}
+	if req.SellerType == 1 {
+		//cond += ` AND b.contract_type = 1 `
+		//historyCond += ` AND new_company = 1 `
+		sellerIds = ficcSellerIds
+	} else if req.SellerType == 2 {
+		//cond += ` AND b.contract_type IN (2,3,4) `
+		//historyCond += ` AND new_company = 0 `
+		sellerIds = raiSellerIds
+	}
 
 	st := startDate
 	ed := endDate