func (VS *Server) showWorkerSales(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "showWorkerSales", "service, _ := VS.getOurService")
	if !b {
		return
	}
	wkSales := VS.getAllSalesFromSpecificService(c, service.ID, "h_worker", "showWorkerSales", "wkSales := VS.getAllSalesFromSpecificService")

	wkSalesHTML := VS.salesToHTML(c, wkSales)
	JSON, err := json.Marshal(wkSalesHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"service":     service,
		"ordersHTML":  wkSalesHTML,
		"serviceType": service.TypeID,
		"JSON":        string(JSON),
	}, "worker-sales.html")
}
// Shows the screen with all the Worker Sales of the service
Shows the screen with all the Worker Sales of the service
// Shows the screen with all the Worker Sales of the service
func (VS *Server) showWorkerSales(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "showWorkerSales", "service, _ := VS.getOurService")
	if !b {
		return
	}
	wkSales := VS.getAllSalesFromSpecificService(c, service.ID, "h_worker", "showWorkerSales", "wkSales := VS.getAllSalesFromSpecificService")
	wkSalesHTML := VS.salesToHTML(c, wkSales)
	JSON, err := json.Marshal(wkSalesHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"service":     service,
		"ordersHTML":  wkSalesHTML,
		"serviceType": service.TypeID,
		"JSON":        string(JSON),
	}, "worker-sales.html")
}
func ( VS * Server ) showWorkerSales ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } wkSales := VS . getAllSalesFromSpecificService ( c , service . ID , " " , " " , " " ) wkSalesHTML := VS . salesToHTML ( c , wkSales ) JSON , err := json . Marshal ( wkSalesHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : service , " " : wkSalesHTML , " " : service . TypeID , " " : string ( JSON ) , } , " " ) }
Shows the screen with all the Worker Sales of the service
Shows the screen with all the Worker Sales of the service