func (VS *Server) showPerformanceSelf(c *gin.Context) {
	service, b := VS.getOurService(c, "h_performance", "showPerformanceSelf", "service, b := VS.getOurService")
	if !b {
		return
	}
	user := VS.getUserFomCookie(c, "h_performance", "showPerformanceSelf", "user := VS.getUserFomCookie")
	sales := VS.getAllSalesFromSpecificWorker(c, user.ID, "h_performance", "showPerformanceSelf", "sales := VS.getAllSalesFromSpecificWorker")
	payments := VS.getAllPaymentsFromSpecificWorker(c, user.ID, "h_performance", "showPerformanceSelf", "payments := VS.getAllPaymentsFromSpecificWorker")
	purchases := VS.getAllServicePurchasesFromSpecificWorker(c, user.ID, "h_performance", "showPerformanceSelf", "purchases := VS.getAllServicePurchasesFromSpecificWorker")
	increase, decrease, total := VS.getTotal(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 page with the self information to the worker
Shows the performance page with the self information to the worker
// Shows the performance page with the self information to the worker
func (VS *Server) showPerformanceSelf(c *gin.Context) {
	service, b := VS.getOurService(c, "h_performance", "showPerformanceSelf", "service, b := VS.getOurService")
	if !b {
		return
	}
	user := VS.getUserFomCookie(c, "h_performance", "showPerformanceSelf", "user := VS.getUserFomCookie")
	sales := VS.getAllSalesFromSpecificWorker(c, user.ID, "h_performance", "showPerformanceSelf", "sales := VS.getAllSalesFromSpecificWorker")
	payments := VS.getAllPaymentsFromSpecificWorker(c, user.ID, "h_performance", "showPerformanceSelf", "payments := VS.getAllPaymentsFromSpecificWorker")
	purchases := VS.getAllServicePurchasesFromSpecificWorker(c, user.ID, "h_performance", "showPerformanceSelf", "purchases := VS.getAllServicePurchasesFromSpecificWorker")
	increase, decrease, total := VS.getTotal(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 ) showPerformanceSelf ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } user := VS . getUserFomCookie ( c , " " , " " , " " ) sales := VS . getAllSalesFromSpecificWorker ( c , user . ID , " " , " " , " " ) payments := VS . getAllPaymentsFromSpecificWorker ( c , user . ID , " " , " " , " " ) purchases := VS . getAllServicePurchasesFromSpecificWorker ( c , user . ID , " " , " " , " " ) increase , decrease , total := VS . getTotal ( c , sales , purchases , payments ) render ( c , gin . H { " " : increase , " " : decrease , " " : total , " " : user , " " : service . TypeID , } , " " ) }
Shows the performance page with the self information to the worker
Shows the performance page with the self information to the worker