func (VS *Server) makePayment(c *gin.Context, pay Payment) {
	// Workshop Pays
	wk := VS.getServiceByID(c, pay.IDService, "h_transactions", "makePayment", "wk := VS.getServiceByID", true)
	wk.Balance -= pay.Quantity
	VS.addServiceToDatabase(c, wk, "h_transactions", "makePayment", "VS.addServiceToDatabase")

	// Worker receives the payment
	worker := VS.getUserByID(c, pay.IDWorker, "h_transactions", "makePayment", "worker := VS.getUserByID")
	worker.Balance -= pay.Quantity
	VS.addUserToDatabase(c, worker, "h_transactions", "makePayment", "VS.addUserToDatabase")
}
// Make all the changes in the Wallet, User balance and Service balance
Make all the changes in the Wallet, User balance and Service balance
// Make all the changes in the Wallet User balance and Service balance
func (VS *Server) makePayment(c *gin.Context, pay Payment) {
	wk := VS.getServiceByID(c, pay.IDService, "h_transactions", "makePayment", "wk := VS.getServiceByID", true)
	wk.Balance -= pay.Quantity
	VS.addServiceToDatabase(c, wk, "h_transactions", "makePayment", "VS.addServiceToDatabase")
	worker := VS.getUserByID(c, pay.IDWorker, "h_transactions", "makePayment", "worker := VS.getUserByID")
	worker.Balance -= pay.Quantity
	VS.addUserToDatabase(c, worker, "h_transactions", "makePayment", "VS.addUserToDatabase")
}
func ( VS * Server ) makePayment ( c * gin . Context , pay Payment ) { wk := VS . getServiceByID ( c , pay . IDService , " " , " " , " " , true ) wk . Balance -= pay . Quantity VS . addServiceToDatabase ( c , wk , " " , " " , " " ) worker := VS . getUserByID ( c , pay . IDWorker , " " , " " , " " ) worker . Balance -= pay . Quantity VS . addUserToDatabase ( c , worker , " " , " " , " " ) }
Make all the changes in the Wallet, User balance and Service balance
Make all the changes in the Wallet User balance and Service balance
// Workshop Pays // Worker receives the payment