Ignore:
Timestamp:
14 Nov 2015, 07:55:17 (9 years ago)
Author:
Henrik Bettermann
Message:

Move student relocation code to BedTicket?.relocateStudent method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/docs/source/userdocs/students/browser.rst

    r13170 r13455  
    361361------------------
    362362
    363 Officers with `ManageHostels` permission do see a 'Relocate student'
    364 link button which calls the `BedTicketRelocationView`. This view
    365 relocates the student if student parameters or the bed type of the
    366 bed have changed. The `update` method of this view checks first, if
    367 the student has a 'reserved' bed space. Students in reserved beds
    368 are never subject to relocation. It checks secondly, if booking has
    369 been cancelled in the accommodation section but other bed space has
    370 been manually allocated after cancellation. Then this bed is used,
    371 no matter whether the bed meets the bed type criteria or not. If
    372 both checks are negative, Kofa searches for a free bed space, which
    373 meets the student's bed type criteria. Only if it finds a new and
    374 free bed space, it starts the relocation process by releasing the
    375 old bed, booking the new bed and designating the new bed in the bed
    376 ticket.
     363Officers with `ManageHostels` permission do see a 'Relocate student' link
     364button which calls the `BedTicketRelocationView`. This view relocates the
     365student if student parameters or the bed type of the bed have changed. The
     366`update` method of this view calls the
     367:py:meth:`BedTicket.relocateStudent<waeup.kofa.students.accommodation.BedTicket.relocateStudent>`
     368method which checks first, if the student has a 'reserved' bed space.
     369Students in reserved beds are never subject to relocation. It checks secondly,
     370if booking has been cancelled in the accommodation section but other bed space
     371has been manually allocated after cancellation. Then this bed is used, no
     372matter whether the bed meets the bed type criteria or not. If both checks are
     373negative, Kofa searches for a free bed space, which meets the student's bed
     374type criteria. Only if it finds a new and free bed space, it starts the
     375relocation process by releasing the old bed, booking the new bed and
     376designating the new bed in the bed ticket.
    377377
    378378.. seealso::
Note: See TracChangeset for help on using the changeset viewer.