def _process_line(request: dict, cost_price_delta: int):
    """The function that builds out the report line by line"""

    asset = request["asset"]
    created = request["created"]

    try:
        qty = int(asset["items"][0]["quantity"])  # [0] to filter out irrelevant skus
    except IndexError:
        # to handle some older requests without items
        qty = 0
    return (asset["id"], asset["tiers"]["customer"]["id"], qty, cost_price_delta * qty, created)