def append_locations_work_orders(config):
    """
    Append multiple work location points to each work order
    """
    work_orders = config["work_orders_signs"]["records"]
    spec_actuals = config["work_orders_signs_asset_spec_actuals"]["records"]
    join_field = config["work_orders_signs_asset_spec_actuals"]["work_order_id_field"]

    for wo in work_orders:
        geometries = []

        wo_id = wo.get(join_field)

        for sp in spec_actuals:
            if sp.get(join_field) == wo_id:
                x = sp.get("x")
                y = sp.get("y")
                if x and y:
                    geometries.append((x, y))

        # not that `points` key is required by arcgis geometry spec for multipoint features
        # https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm
        wo["points"] = geometries

    return work_orders