'Bundle item has been deleted => update totals of the bundle'

@staticmethod
def budget_bundle_item_ondelete(row):

    db = current.db
    linktable = current.s3db.budget_bundle_item
    try:
        record_id = row.id
    except:
        return
    link = db((linktable.id == record_id)).select(linktable.deleted_fk, limitby=(0, 1)).first()
    if link:
        deleted_fk = json.loads(link.deleted_fk)
        bundle_id = deleted_fk.get('bundle_id')
        if bundle_id:
            budget_bundle_totals(bundle_id)
    return
