func (VS *Server) showServiceOrders(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showServiceOrders", "service, b := VS.getOurService")
	if !b {
		return
	}
	prodOrders := VS.getAllServiceOrdersFromService(c, service.ID, "h_records", "showServiceOrders", "prodOrders := VS.getAllServiceOrdersFromService")
	prodOrdersHTML := VS.toViewWorkshopOrder(c, prodOrders)
	JSON, err := json.Marshal(prodOrdersHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"service":     service,
		"wOrders":     prodOrdersHTML,
		"serviceType": service.TypeID,
		"JSON":        string(JSON),
	}, "service-orders.html")
}
// Shows the screen with all the ServicesOrders in the database
Shows the screen with all the ServicesOrders in the database
// Shows the screen with all the ServicesOrders in the database
func (VS *Server) showServiceOrders(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showServiceOrders", "service, b := VS.getOurService")
	if !b {
		return
	}
	prodOrders := VS.getAllServiceOrdersFromService(c, service.ID, "h_records", "showServiceOrders", "prodOrders := VS.getAllServiceOrdersFromService")
	prodOrdersHTML := VS.toViewWorkshopOrder(c, prodOrders)
	JSON, err := json.Marshal(prodOrdersHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"service":     service,
		"wOrders":     prodOrdersHTML,
		"serviceType": service.TypeID,
		"JSON":        string(JSON),
	}, "service-orders.html")
}
func ( VS * Server ) showServiceOrders ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } prodOrders := VS . getAllServiceOrdersFromService ( c , service . ID , " " , " " , " " ) prodOrdersHTML := VS . toViewWorkshopOrder ( c , prodOrders ) JSON , err := json . Marshal ( prodOrdersHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : service , " " : prodOrdersHTML , " " : service . TypeID , " " : string ( JSON ) , } , " " ) }
Shows the screen with all the ServicesOrders in the database
Shows the screen with all the ServicesOrders in the database