func (VS *Server) showStockGenerated(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showStockGenerated", "service, b := VS.getOurService")
	if !b {
		return
	}
	wkPurchases := VS.getAllPurchasesFromSpecificService(c, service.ID, "h_records", "showStockGenerated", "wkPurchases := VS.getAllPurchasesFromSpecificService")
	stockHTML := VS.stocksToHTML(c, revertServicePurchase(wkPurchases))
	JSON, err := json.Marshal(stockHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"stock":       stockHTML,
		"JSON":        string(JSON),
		"serviceType": service.TypeID,
	}, "purchases-service.html")
}
// Shows the Stock generated inside the service
Shows the Stock generated inside the service
// Shows the Stock generated inside the service
func (VS *Server) showStockGenerated(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showStockGenerated", "service, b := VS.getOurService")
	if !b {
		return
	}
	wkPurchases := VS.getAllPurchasesFromSpecificService(c, service.ID, "h_records", "showStockGenerated", "wkPurchases := VS.getAllPurchasesFromSpecificService")
	stockHTML := VS.stocksToHTML(c, revertServicePurchase(wkPurchases))
	JSON, err := json.Marshal(stockHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"stock":       stockHTML,
		"JSON":        string(JSON),
		"serviceType": service.TypeID,
	}, "purchases-service.html")
}
func ( VS * Server ) showStockGenerated ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } wkPurchases := VS . getAllPurchasesFromSpecificService ( c , service . ID , " " , " " , " " ) stockHTML := VS . stocksToHTML ( c , revertServicePurchase ( wkPurchases ) ) JSON , err := json . Marshal ( stockHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : stockHTML , " " : string ( JSON ) , " " : service . TypeID , } , " " ) }
Shows the Stock generated inside the service
Shows the Stock generated inside the service