Ignore:
Timestamp:
1 Nov 2013, 07:22:10 (11 years ago)
Author:
Henrik Bettermann
Message:

Extend IHostel so that we can configure maintenance fee for each hostel.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py

    r9416 r10680  
    179179        required = True,
    180180        default = u'regular',
     181        )
     182
     183    maint_fee = schema.Float(
     184        title = _(u'Rent'),
     185        default = 0.0,
     186        required = False,
    181187        )
    182188
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py

    r9706 r10680  
    462462            'beds_for_all,beds_for_final,beds_for_fresh,beds_for_pre,'
    463463            'beds_for_returning,beds_reserved,blocks_for_female,'
    464             'blocks_for_male,floors_per_block,hostel_id,hostel_name,'
     464            'blocks_for_male,floors_per_block,hostel_id,hostel_name,maint_fee,'
    465465            'rooms_per_floor,sort_id,special_handling\r\n,,,,,[],,,1,'
    466             'hall-x,Hall 1,2,10,regular\r\n'
     466            'hall-x,Hall 1,0.0,2,10,regular\r\n'
    467467            )
    468468        return
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r10631 r10680  
    682682
    683683    maint_fee = schema.Float(
    684         title = _(u'Rent'),
     684        title = _(u'Rent (fallback)'),
    685685        default = 0.0,
    686686        required = False,
Note: See TracChangeset for help on using the changeset viewer.