@staticmethod
    def allowance_onaccept(form):

        if current.deployment_settings.get_dvr_payments_update_last_seen_on():

            # Read form data
            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

            # Get the person ID
            table = current.s3db.dvr_allowance
            row = current.db(table.id == record_id).select(table.person_id,
                                                           limitby = (0, 1),
                                                           ).first()
            # Update last_seen_on
            if row:
                dvr_update_last_seen(row.person_id)

    # -------------------------------------------------------------------------
Returns minutes and seconds string for given time in seconds
dataset/ETHPy150Open sahana/eden/modules/s3db/dvr.py/DVRCaseAllowanceModel.allowance_onaccept--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/search/es_utils.py/format_time