func (VS *Server) showRecordsSalesWorkerService(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "showRecordsSalesWorkerService", "service, _ := VS.getOurService")
	if !b {
		return
	}
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsSalesWorkerService", "user := v.getUserFomCookie")
	purchases := VS.getAllStockGeneratedFromSpecificWorkerAndService(c, user.ID, service.ID, "handlers_workshop", "showRecordsSalesWorkerService", "purchases := VS.getAllStockGeneratedFromSpecificWorkerAndService")
	fmt.Print("longitude of purchases:")
	fmt.Print(len(purchases))

	purchasesHTML := VS.stocksToHTML(c, purchases)
	JSON, err := json.Marshal(purchasesHTML)
	VS.checkOperation(c, "h_worker", "showRecordsSalesWorkerService", "JSON, err := json.Marshal(purchasesHTML", err)
	render(c, gin.H{
		"sales":       purchasesHTML,
		"JSON":        string(JSON),
		"fromService": true,
		"serviceType": service.TypeID,
	}, "w-records-sales.html")
}
// Shows the stock generated of the worker in the service
Shows the stock generated of the worker in the service
// Shows the stock generated of the worker in the service
func (VS *Server) showRecordsSalesWorkerService(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "showRecordsSalesWorkerService", "service, _ := VS.getOurService")
	if !b {
		return
	}
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsSalesWorkerService", "user := v.getUserFomCookie")
	purchases := VS.getAllStockGeneratedFromSpecificWorkerAndService(c, user.ID, service.ID, "handlers_workshop", "showRecordsSalesWorkerService", "purchases := VS.getAllStockGeneratedFromSpecificWorkerAndService")
	fmt.Print("longitude of purchases:")
	fmt.Print(len(purchases))
	purchasesHTML := VS.stocksToHTML(c, purchases)
	JSON, err := json.Marshal(purchasesHTML)
	VS.checkOperation(c, "h_worker", "showRecordsSalesWorkerService", "JSON, err := json.Marshal(purchasesHTML", err)
	render(c, gin.H{
		"sales":       purchasesHTML,
		"JSON":        string(JSON),
		"fromService": true,
		"serviceType": service.TypeID,
	}, "w-records-sales.html")
}
func ( VS * Server ) showRecordsSalesWorkerService ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } user := VS . getUserFomCookie ( c , " " , " " , " " ) purchases := VS . getAllStockGeneratedFromSpecificWorkerAndService ( c , user . ID , service . ID , " " , " " , " " ) fmt . Print ( " " ) fmt . Print ( len ( purchases ) ) purchasesHTML := VS . stocksToHTML ( c , purchases ) JSON , err := json . Marshal ( purchasesHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : purchasesHTML , " " : string ( JSON ) , " " : true , " " : service . TypeID , } , " " ) }
Shows the stock generated of the worker in the service
Shows the stock generated of the worker in the service