func (VS *Server) showPerformanceWorker(c *gin.Context) {
	service, b := VS.getOurService(c, "h_performance", "showPerformanceWorker", "service, b := VS.getOurService")
	if !b {
		return
	}
	id, _ := VS.getIDParamFromURL(c, "id")
	user := VS.getUserByID(c, id, "h_performance", "showPerformanceWorker", "user := VS.getUserByID")

	sales := VS.getAllSalesFromSpecificWorker(c, id, "h_performance", "showPerformanceWorker", "sales := VS.getAllSalesFromSpecificWorker")
	payments := VS.getAllPaymentsFromSpecificWorker(c, id, "h_performance", "showPerformanceWorker", "payments := VS.getAllPaymentsFromSpecificWorker")
	purchases := VS.getAllServicePurchasesFromSpecificWorker(c, id, "h_performance", "showPerformanceWorker", "purchases := VS.getAllServicePurchasesFromSpecificWorker")
	increase, decrease, total := VS.getTotalWorker(c, sales, purchases, payments)
	render(c, gin.H{
		"increase":    increase,
		"decrease":    decrease,
		"total":       total,
		"user":        user,
		"serviceType": service.TypeID,
	}, "performance-worker.html")
}
// Shows the performance of the specific Worker
Shows the performance of the specific Worker
// Shows the performance of the specific Worker
func (VS *Server) showPerformanceWorker(c *gin.Context) {
	service, b := VS.getOurService(c, "h_performance", "showPerformanceWorker", "service, b := VS.getOurService")
	if !b {
		return
	}
	id, _ := VS.getIDParamFromURL(c, "id")
	user := VS.getUserByID(c, id, "h_performance", "showPerformanceWorker", "user := VS.getUserByID")
	sales := VS.getAllSalesFromSpecificWorker(c, id, "h_performance", "showPerformanceWorker", "sales := VS.getAllSalesFromSpecificWorker")
	payments := VS.getAllPaymentsFromSpecificWorker(c, id, "h_performance", "showPerformanceWorker", "payments := VS.getAllPaymentsFromSpecificWorker")
	purchases := VS.getAllServicePurchasesFromSpecificWorker(c, id, "h_performance", "showPerformanceWorker", "purchases := VS.getAllServicePurchasesFromSpecificWorker")
	increase, decrease, total := VS.getTotalWorker(c, sales, purchases, payments)
	render(c, gin.H{
		"increase":    increase,
		"decrease":    decrease,
		"total":       total,
		"user":        user,
		"serviceType": service.TypeID,
	}, "performance-worker.html")
}
func ( VS * Server ) showPerformanceWorker ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } id , _ := VS . getIDParamFromURL ( c , " " ) user := VS . getUserByID ( c , id , " " , " " , " " ) sales := VS . getAllSalesFromSpecificWorker ( c , id , " " , " " , " " ) payments := VS . getAllPaymentsFromSpecificWorker ( c , id , " " , " " , " " ) purchases := VS . getAllServicePurchasesFromSpecificWorker ( c , id , " " , " " , " " ) increase , decrease , total := VS . getTotalWorker ( c , sales , purchases , payments ) render ( c , gin . H { " " : increase , " " : decrease , " " : total , " " : user , " " : service . TypeID , } , " " ) }
Shows the performance of the specific Worker
Shows the performance of the specific Worker