def group_trans_by_budget_line(trans):
    """
    Group transactions by the budget line.

    :param trans: The transactions to group.
    :returns: A dictionary mapping budget line to a list of transactions.
    """
    transgrp = {}
    for t in trans:
        transgrp.setdefault(t.budget, []).append(t)
    return transgrp
