func (VS *Server) showRecordsPaymentsWorkerGlobal(c *gin.Context) {
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsPaymentsWorkerGlobal", "user := v.getUserFomCookie")
	payments := VS.getAllPaymentsFromSpecificWorker(c, user.ID, "h_worker", "showRecordsPaymentsWorkerGlobal", "payments := v.getAllPaymentsFromSpecificWorker")
	paymentsHTML := VS.toViewPayments(c, payments)
	JSON, err := json.Marshal(paymentsHTML)
	VS.checkOperation(c, "h_worker", "showRecordsPaymentsWorkerGlobal", "JSON, err := json.Marshal(paymentsHTML)", err)
	render(c, gin.H{
		"payments": paymentsHTML,
		"JSON":     string(JSON),
	}, "w-records-payments.html")
}
// Shows all the Payments from the specific worker
Shows all the Payments from the specific worker
// Shows all the Payments from the specific worker
func (VS *Server) showRecordsPaymentsWorkerGlobal(c *gin.Context) {
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsPaymentsWorkerGlobal", "user := v.getUserFomCookie")
	payments := VS.getAllPaymentsFromSpecificWorker(c, user.ID, "h_worker", "showRecordsPaymentsWorkerGlobal", "payments := v.getAllPaymentsFromSpecificWorker")
	paymentsHTML := VS.toViewPayments(c, payments)
	JSON, err := json.Marshal(paymentsHTML)
	VS.checkOperation(c, "h_worker", "showRecordsPaymentsWorkerGlobal", "JSON, err := json.Marshal(paymentsHTML)", err)
	render(c, gin.H{
		"payments": paymentsHTML,
		"JSON":     string(JSON),
	}, "w-records-payments.html")
}
func ( VS * Server ) showRecordsPaymentsWorkerGlobal ( c * gin . Context ) { user := VS . getUserFomCookie ( c , " " , " " , " " ) payments := VS . getAllPaymentsFromSpecificWorker ( c , user . ID , " " , " " , " " ) paymentsHTML := VS . toViewPayments ( c , payments ) JSON , err := json . Marshal ( paymentsHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : paymentsHTML , " " : string ( JSON ) , } , " " ) }
Shows all the Payments from the specific worker
Shows all the Payments from the specific worker