func (VS *Server) paymentToWalletWorker(c *gin.Context, p Payment) Wallet {
	var w Wallet
	w.ID = p.ID.Hex()
	w.Date = strconv.Itoa(time.Unix(p.Date, 0).Day()) + "/" + time.Unix(p.Date, 0).Month().String()
	w.ItemPhoto = "/static/svg/money-body.svg"
	w.Price = -p.Quantity
	w.DateUnix = time.Unix(p.Date, 0).UnixNano()
	w.ItemName = "Payment"
	w.ServiceName = VS.getServiceByID(c, p.IDService, "h_functionality", "paymentToWalletWorker", "w.ServiceName = VS.getServiceByID(c, p.", true).Name
	return w
}
// Transform the Payments information from DataBase to Human readable (in individual)
Transform the Payments information from DataBase to Human readable (in individual)
// Transform the Payments information from DataBase to Human readable ( in individual )
func (VS *Server) paymentToWalletWorker(c *gin.Context, p Payment) Wallet {
	var w Wallet
	w.ID = p.ID.Hex()
	w.Date = strconv.Itoa(time.Unix(p.Date, 0).Day()) + "/" + time.Unix(p.Date, 0).Month().String()
	w.ItemPhoto = "/static/svg/money-body.svg"
	w.Price = -p.Quantity
	w.DateUnix = time.Unix(p.Date, 0).UnixNano()
	w.ItemName = "Payment"
	w.ServiceName = VS.getServiceByID(c, p.IDService, "h_functionality", "paymentToWalletWorker", "w.ServiceName = VS.getServiceByID(c, p.", true).Name
	return w
}
func ( VS * Server ) paymentToWalletWorker ( c * gin . Context , p Payment ) Wallet { var w Wallet w . ID = p . ID . Hex ( ) w . Date = strconv . Itoa ( time . Unix ( p . Date , 0 ) . Day ( ) ) + " " + time . Unix ( p . Date , 0 ) . Month ( ) . String ( ) w . ItemPhoto = " " w . Price = - p . Quantity w . DateUnix = time . Unix ( p . Date , 0 ) . UnixNano ( ) w . ItemName = " " w . ServiceName = VS . getServiceByID ( c , p . IDService , " " , " " , " " , true ) . Name return w }
Transform the Payments information from DataBase to Human readable (in individual)
Transform the Payments information from DataBase to Human readable ( in individual )