Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

mover responsable de cuenta a alumno #17

Open
ftoledo opened this issue Sep 28, 2012 · 0 comments
Open

mover responsable de cuenta a alumno #17

ftoledo opened this issue Sep 28, 2012 · 0 comments

Comments

@ftoledo
Copy link
Contributor

ftoledo commented Sep 28, 2012

Se tiene que mover la relacion de responsable, que actualmente esta en la cuenta hacia el alumno directamente.

  • Crear tabla alumno_responsable (fk_alumno_id, fk_resposanble_id, fk_rolresponsable_id ) PK (fk_alumno_id , fk_responsable_id)

  • migrar datos:

    foreach responsable as r
       alumnos = r->cuenta->alumnos
       foreach alumnos as a
         insert into alumno_responsable (a->id, r->id, r->fk_rolresponsable_id)
       end foreach
    enforeach 
    
  • modificar pantalla de alumnos/index que tenga un icono a ver responsables donde se llega al abm solo para ese alumno, pudiendo agregar nuevos responsables o buscando en los existentes.

  • modificar el informe de resposables para que muestre x cada responsable si tiene alumnos o no, , en el caso de que tenga , mostrar dni, apellido, nombre

  • eliminar la constraint y foreignkey fk_cuenta_id de responsable (solo si se migraron los datos!)

  • corregir schema y regenerar modelo, filtros y forms

  • corregir fixtures base y ejemplo1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant