func (VS *Server) showPerformanceSpecificService(c *gin.Context) {
	serviceID, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	service := VS.getServiceByID(c, serviceID, "h_performance", "showPerformanceSpecificService", "service := VS.getServiceByID", true)
	sales := VS.getAllSalesFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "sales := VS.getAllSalesFromSpecificService")
	payments := VS.getAllPaymentsFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "payments := VS.getAllPaymentsFromSpecificService")
	purchases := VS.getAllPurchasesFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "purchases := VS.getAllPurchasesFromSpecificService")
	increase, decrease, total := VS.getTotal(c, sales, purchases, payments)
	workers := VS.getWorkersFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "workers := VS.getWorkersFromSpecificService")
	render(c, gin.H{
		"increase":    increase,
		"decrease":    decrease,
		"total":       total,
		"wk":          service,
		"workers":     workers,
		"serviceType": service.Type,
	}, "performance-service.html")
}
// Shows the performance of the specific service
Shows the performance of the specific service
// Shows the performance of the specific service
func (VS *Server) showPerformanceSpecificService(c *gin.Context) {
	serviceID, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	service := VS.getServiceByID(c, serviceID, "h_performance", "showPerformanceSpecificService", "service := VS.getServiceByID", true)
	sales := VS.getAllSalesFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "sales := VS.getAllSalesFromSpecificService")
	payments := VS.getAllPaymentsFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "payments := VS.getAllPaymentsFromSpecificService")
	purchases := VS.getAllPurchasesFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "purchases := VS.getAllPurchasesFromSpecificService")
	increase, decrease, total := VS.getTotal(c, sales, purchases, payments)
	workers := VS.getWorkersFromSpecificService(c, serviceID, "h_performance", "showPerformanceSpecificService", "workers := VS.getWorkersFromSpecificService")
	render(c, gin.H{
		"increase":    increase,
		"decrease":    decrease,
		"total":       total,
		"wk":          service,
		"workers":     workers,
		"serviceType": service.Type,
	}, "performance-service.html")
}
func ( VS * Server ) showPerformanceSpecificService ( c * gin . Context ) { serviceID , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } service := VS . getServiceByID ( c , serviceID , " " , " " , " " , true ) sales := VS . getAllSalesFromSpecificService ( c , serviceID , " " , " " , " " ) payments := VS . getAllPaymentsFromSpecificService ( c , serviceID , " " , " " , " " ) purchases := VS . getAllPurchasesFromSpecificService ( c , serviceID , " " , " " , " " ) increase , decrease , total := VS . getTotal ( c , sales , purchases , payments ) workers := VS . getWorkersFromSpecificService ( c , serviceID , " " , " " , " " ) render ( c , gin . H { " " : increase , " " : decrease , " " : total , " " : service , " " : workers , " " : service . Type , } , " " ) }
Shows the performance of the specific service
Shows the performance of the specific service