func (VS *Server) showNewPurchase(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showNewPurchase", "service, b := VS.getOurService")
	if !b {
		return
	}
	workerID, _ := VS.getIDParamFromURL(c, "idworker")
	user := VS.getUserByID(c, workerID, "h_records", "showNewPurchase", "user := VS.getUserByID")
	orders := VS.getWorkerOrderByWorkerID(c, workerID, "h_records", "showNewPurchase", "orders := VS.getWorkerOrderByWorkerID")
	ordersClean := cleanWorkerOrders(orders)
	wkOrdersHTML := VS.toViewWorkerOrders(c, ordersClean)
	render(c, gin.H{
		"orders":      wkOrdersHTML,
		"user":        user,
		"serviceType": service.TypeID,
	}, "new-purchase.html")
}
// Shows the page to introduce the information of the new Purchase
Shows the page to introduce the information of the new Purchase
// Shows the page to introduce the information of the new Purchase
func (VS *Server) showNewPurchase(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showNewPurchase", "service, b := VS.getOurService")
	if !b {
		return
	}
	workerID, _ := VS.getIDParamFromURL(c, "idworker")
	user := VS.getUserByID(c, workerID, "h_records", "showNewPurchase", "user := VS.getUserByID")
	orders := VS.getWorkerOrderByWorkerID(c, workerID, "h_records", "showNewPurchase", "orders := VS.getWorkerOrderByWorkerID")
	ordersClean := cleanWorkerOrders(orders)
	wkOrdersHTML := VS.toViewWorkerOrders(c, ordersClean)
	render(c, gin.H{
		"orders":      wkOrdersHTML,
		"user":        user,
		"serviceType": service.TypeID,
	}, "new-purchase.html")
}
func ( VS * Server ) showNewPurchase ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } workerID , _ := VS . getIDParamFromURL ( c , " " ) user := VS . getUserByID ( c , workerID , " " , " " , " " ) orders := VS . getWorkerOrderByWorkerID ( c , workerID , " " , " " , " " ) ordersClean := cleanWorkerOrders ( orders ) wkOrdersHTML := VS . toViewWorkerOrders ( c , ordersClean ) render ( c , gin . H { " " : wkOrdersHTML , " " : user , " " : service . TypeID , } , " " ) }
Shows the page to introduce the information of the new Purchase
Shows the page to introduce the information of the new Purchase