func (VS *Server) showPerformanceLocalService(c *gin.Context) {
	service, b := VS.getOurService(c, "h_performance", "showPerformanceLocalService", "service, _ := VS.getOurService")
	if !b {
		return
	}
	sales := VS.getAllSalesFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "sales := VS.getAllSalesFromSpecificService")
	payments := VS.getAllPaymentsFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "payments := VS.getAllPaymentsFromSpecificService")
	purchases := VS.getAllPurchasesFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "purchases := VS.getAllPurchasesFromSpecificService")
	increase, decrease, total := VS.getTotal(c, sales, purchases, payments)
	workers := VS.getWorkersFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "workers := VS.getWorkersFromSpecificService")

	render(c, gin.H{
		"increase":    increase,
		"decrease":    decrease,
		"total":       total,
		"workers":     workers,
		"serviceType": service.TypeID,
	}, "performance-service.html")
}
// Shows the performance of the Service chosen (or automatically choses the only one if there is only one)
Shows the performance of the Service chosen (or automatically choses the only one if there is only one)
// Shows the performance of the Service chosen ( or automatically choses the only one if there is only one )
func (VS *Server) showPerformanceLocalService(c *gin.Context) {
	service, b := VS.getOurService(c, "h_performance", "showPerformanceLocalService", "service, _ := VS.getOurService")
	if !b {
		return
	}
	sales := VS.getAllSalesFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "sales := VS.getAllSalesFromSpecificService")
	payments := VS.getAllPaymentsFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "payments := VS.getAllPaymentsFromSpecificService")
	purchases := VS.getAllPurchasesFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "purchases := VS.getAllPurchasesFromSpecificService")
	increase, decrease, total := VS.getTotal(c, sales, purchases, payments)
	workers := VS.getWorkersFromSpecificService(c, service.ID, "h_performance", "showPerformanceLocalService", "workers := VS.getWorkersFromSpecificService")
	render(c, gin.H{
		"increase":    increase,
		"decrease":    decrease,
		"total":       total,
		"workers":     workers,
		"serviceType": service.TypeID,
	}, "performance-service.html")
}
func ( VS * Server ) showPerformanceLocalService ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } sales := VS . getAllSalesFromSpecificService ( c , service . ID , " " , " " , " " ) payments := VS . getAllPaymentsFromSpecificService ( c , service . ID , " " , " " , " " ) purchases := VS . getAllPurchasesFromSpecificService ( c , service . ID , " " , " " , " " ) increase , decrease , total := VS . getTotal ( c , sales , purchases , payments ) workers := VS . getWorkersFromSpecificService ( c , service . ID , " " , " " , " " ) render ( c , gin . H { " " : increase , " " : decrease , " " : total , " " : workers , " " : service . TypeID , } , " " ) }
Shows the performance of the Service chosen (or automatically choses the only one if there is only one)
Shows the performance of the Service chosen ( or automatically choses the only one if there is only one )