func (VS *Server) showWalletWorker(c *gin.Context) {
	// service, b := VS.getOurService(c, "h_worker", "showWalletWorker", "service, b := VS.getOurService")
	// if !b {
	// 	return
	// }
	user := VS.getUserFomCookie(c, "h_worker", "showWalletWorker", "user := VS.getUserFomCookie")
	wallet := VS.getWalletSpecificWorker(c, user.ID)
	JSON, err := json.Marshal(wallet)
	VS.checkOperation(c, "h_worker", "showRecordsOrdersWorker", "JSON, err := json.Marshal(wallet)", err)
	render(c, gin.H{
		"JSON":   string(JSON),
		"wallet": wallet,
		// "serviceType": service.TypeID,
	}, "w-wallet.html")
}
// Shows all the transactions related with money to the worker (Material, products and payments)
Shows all the transactions related with money to the worker (Material, products and payments)
// Shows all the transactions related with money to the worker ( Material products and payments )
func (VS *Server) showWalletWorker(c *gin.Context) {
	user := VS.getUserFomCookie(c, "h_worker", "showWalletWorker", "user := VS.getUserFomCookie")
	wallet := VS.getWalletSpecificWorker(c, user.ID)
	JSON, err := json.Marshal(wallet)
	VS.checkOperation(c, "h_worker", "showRecordsOrdersWorker", "JSON, err := json.Marshal(wallet)", err)
	render(c, gin.H{
		"JSON":   string(JSON),
		"wallet": wallet,
	}, "w-wallet.html")
}
func ( VS * Server ) showWalletWorker ( c * gin . Context ) { user := VS . getUserFomCookie ( c , " " , " " , " " ) wallet := VS . getWalletSpecificWorker ( c , user . ID ) JSON , err := json . Marshal ( wallet ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : string ( JSON ) , " " : wallet , } , " " ) }
Shows all the transactions related with money to the worker (Material, products and payments)
Shows all the transactions related with money to the worker ( Material products and payments )
// service, b := VS.getOurService(c, "h_worker", "showWalletWorker", "service, b := VS.getOurService") // if !b { // 	return // } // "serviceType": service.TypeID,