'Actions after creating/updating allowance information
- update last_seen_on'

@staticmethod
def allowance_onaccept(form):

    if current.deployment_settings.get_dvr_payments_update_last_seen_on():
        form_vars = form.vars
        if ('id' in form_vars):
            record_id = form_vars.id
        elif hasattr(form, 'record_id'):
            record_id = form.record_id
        else:
            record_id = None
        if (not record_id):
            return
        if (current.response.s3.bulk and ('status' not in form_vars)):
            return
        table = current.s3db.dvr_allowance
        row = current.db((table.id == record_id)).select(table.person_id, limitby=(0, 1)).first()
        if row:
            dvr_update_last_seen(row.person_id)
