func (VS *Server) showStockService(c *gin.Context) {
	iType, b := VS.getParamFromURL(c, "itemtype")
	if !b {
		return
	}
	itemType := TypeOfItem(iType)
	service, b := VS.getOurService(c, "h_records", "showStockService", "service, b := VS.getOurService")
	if !b {
		return
	}
	stocks := VS.getAllStockByServiceIDandTypeOfItem(c, service.ID, itemType, "h_records", "showStockService", "stocks := VS.getAllStockByServiceIDandTypeOfItem")
	stocksHTML := VS.stocksToHTML(c, stocks)
	JSON, err := json.Marshal(stocksHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)

	render(c, gin.H{
		"stock":       stocksHTML,
		"itemType":    iType,
		"serviceType": service.TypeID,
		"JSON":        string(JSON),
	}, "purchases-service.html")
}
// This handler shows the current Stock of the service given
This handler shows the current Stock of the service given
// This handler shows the current Stock of the service given
func (VS *Server) showStockService(c *gin.Context) {
	iType, b := VS.getParamFromURL(c, "itemtype")
	if !b {
		return
	}
	itemType := TypeOfItem(iType)
	service, b := VS.getOurService(c, "h_records", "showStockService", "service, b := VS.getOurService")
	if !b {
		return
	}
	stocks := VS.getAllStockByServiceIDandTypeOfItem(c, service.ID, itemType, "h_records", "showStockService", "stocks := VS.getAllStockByServiceIDandTypeOfItem")
	stocksHTML := VS.stocksToHTML(c, stocks)
	JSON, err := json.Marshal(stocksHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"stock":       stocksHTML,
		"itemType":    iType,
		"serviceType": service.TypeID,
		"JSON":        string(JSON),
	}, "purchases-service.html")
}
func ( VS * Server ) showStockService ( c * gin . Context ) { iType , b := VS . getParamFromURL ( c , " " ) if ! b { return } itemType := TypeOfItem ( iType ) service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } stocks := VS . getAllStockByServiceIDandTypeOfItem ( c , service . ID , itemType , " " , " " , " " ) stocksHTML := VS . stocksToHTML ( c , stocks ) JSON , err := json . Marshal ( stocksHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : stocksHTML , " " : iType , " " : service . TypeID , " " : string ( JSON ) , } , " " ) }
This handler shows the current Stock of the service given
This handler shows the current Stock of the service given