Ignore:
Timestamp:
11 Jan 2013, 23:11:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Restrict balance payments to scholl fee balances.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9866 r9867  
    14831483    pnav = 4
    14841484
    1485     @property
    1486     def selectable_categories(self):
    1487         categories = getUtility(
    1488             IKofaUtils).SELECTABLE_PREVIOUS_PAYMENT_CATEGORIES
    1489         return sorted(categories.items())
    1490 
    14911485    def update(self):
    14921486        if self.context.student.before_payment:
     
    15261520    label = _('Add balance')
    15271521    pnav = 4
    1528 
    1529     @property
    1530     def selectable_categories(self):
    1531         categories = getUtility(
    1532             IKofaUtils).SELECTABLE_BALANCE_PAYMENT_CATEGORIES
    1533         return sorted(categories.items())
    15341522
    15351523    @action(_('Create ticket'), style='primary')
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r9866 r9867  
    168168    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
    169169
    170     BALANCE_PAYMENT_ITEMS = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
     170    BALANCE_PAYMENT_ITEMS = {
     171        'schoolfee': 'School Fee',
     172        }
    171173
    172174    MODE_GROUPS = {
Note: See TracChangeset for help on using the changeset viewer.