func (VS *Server) newServiceOrder(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "newServiceOrder", "service, b := VS.getOurService")
	if !b {
		return
	}
	serviceOrder, b := VS.getNewServiceOrder(c, bson.NewObjectId())
	if !b {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	VS.addElementToDatabaseWithRegister(c, serviceOrder, serviceOrder.ID, service.ID, "h_records", "newServiceOrder", "VS.addElementToDatabaseWithRegister(c, serviceOrder")
	VS.goodFeedback(c, "/records/service-orders/"+idservicetype.Hex())
}
// Stores the new ServiceOrder information into the DataBase
Stores the new ServiceOrder information into the DataBase
// Stores the new ServiceOrder information into the DataBase
func (VS *Server) newServiceOrder(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "newServiceOrder", "service, b := VS.getOurService")
	if !b {
		return
	}
	serviceOrder, b := VS.getNewServiceOrder(c, bson.NewObjectId())
	if !b {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	VS.addElementToDatabaseWithRegister(c, serviceOrder, serviceOrder.ID, service.ID, "h_records", "newServiceOrder", "VS.addElementToDatabaseWithRegister(c, serviceOrder")
	VS.goodFeedback(c, "/records/service-orders/"+idservicetype.Hex())
}
func ( VS * Server ) newServiceOrder ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } serviceOrder , b := VS . getNewServiceOrder ( c , bson . NewObjectId ( ) ) if ! b { return } idservicetype , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } VS . addElementToDatabaseWithRegister ( c , serviceOrder , serviceOrder . ID , service . ID , " " , " " , " " ) VS . goodFeedback ( c , " " + idservicetype . Hex ( ) ) }
Stores the new ServiceOrder information into the DataBase
Stores the new ServiceOrder information into the DataBase