Changeset 17017 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 10 Jul 2022, 11:19:42 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r17016 r17017 50 50 from waeup.kofa.applicants.applicant import search 51 51 from waeup.kofa.applicants.workflow import ( 52 INITIALIZED, STARTED, PAID, SUBMITTED, ADMITTED, NOT_ADMITTED, CREATED) 52 INITIALIZED, STARTED, PAID, SUBMITTED, 53 ADMITTED, NOT_ADMITTED, CREATED, PROCESSED) 53 54 from waeup.kofa.browser import ( 54 55 # KofaPage, KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage, … … 1067 1068 pnav = 3 1068 1069 display_actions = [[_('Save'), _('Finally Submit')], 1069 [_('Add online payment ticket'),_('Remove selected tickets')]] 1070 [_('Add online payment ticket'), 1071 _('Add balance payment ticket'), 1072 _('Remove selected tickets')]] 1070 1073 1071 1074 @property … … 1255 1258 return 1256 1259 1260 @action(_('Add balance payment ticket'), style='primary') 1261 def addBalancePaymentTicket(self, **data): 1262 self.redirect(self.url(self.context, '@@addbp')) 1263 return 1264 1257 1265 @jsaction(_('Remove selected tickets')) 1258 1266 def removePaymentTickets(self, **data): … … 1280 1288 submit_state = PAID 1281 1289 mandate_days = 31 1290 balance_payments_states = () # not used in base packe 1282 1291 1283 1292 @property … … 1318 1327 actions = [[_('Save'), _('Finally Submit')], 1319 1328 [_('Remove selected tickets')]] 1329 if self.context.state in self.balance_payments_states: 1330 actions[1].append(_('Add balance payment ticket')) 1320 1331 return actions 1321 1332 … … 1357 1368 def addPaymentTicket(self, **data): 1358 1369 self.redirect(self.url(self.context, '@@addafp')) 1370 return 1371 1372 @action(_('Add balance payment ticket'), style='primary') 1373 def addBalancePaymentTicket(self, **data): 1374 self.redirect(self.url(self.context, '@@addbp')) 1359 1375 return 1360 1376
Note: See TracChangeset for help on using the changeset viewer.