func (VS *Server) showRecordsPayments(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showRecordsPayments", "service, b := VS.getOurService")
	if !b {
		return
	}
	payments := VS.getAllPaymentsFromSpecificService(c, service.ID, "h_records", "showRecordsPayments", "payments := VS.getAllPaymentsFromSpecificService")
	paymentsHTML := VS.toViewPayments(c, revertPayments(payments))
	JSON, err := json.Marshal(paymentsHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"paymentsHTML": paymentsHTML,
		"service":      service,
		"serviceType":  service.TypeID,
		"JSON":         string(JSON),
	}, "service-payments.html")
}
// Shows the screen with all the payments in the database of the specific service
Shows the screen with all the payments in the database of the specific service
// Shows the screen with all the payments in the database of the specific service
func (VS *Server) showRecordsPayments(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showRecordsPayments", "service, b := VS.getOurService")
	if !b {
		return
	}
	payments := VS.getAllPaymentsFromSpecificService(c, service.ID, "h_records", "showRecordsPayments", "payments := VS.getAllPaymentsFromSpecificService")
	paymentsHTML := VS.toViewPayments(c, revertPayments(payments))
	JSON, err := json.Marshal(paymentsHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"paymentsHTML": paymentsHTML,
		"service":      service,
		"serviceType":  service.TypeID,
		"JSON":         string(JSON),
	}, "service-payments.html")
}
func ( VS * Server ) showRecordsPayments ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } payments := VS . getAllPaymentsFromSpecificService ( c , service . ID , " " , " " , " " ) paymentsHTML := VS . toViewPayments ( c , revertPayments ( payments ) ) JSON , err := json . Marshal ( paymentsHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : paymentsHTML , " " : service , " " : service . TypeID , " " : string ( JSON ) , } , " " ) }
Shows the screen with all the payments in the database of the specific service
Shows the screen with all the payments in the database of the specific service