- Timestamp:
- 5 Mar 2015, 07:28:31 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports/contract_statistics.py
r12660 r12663 22 22 from zope.interface import implementer, Interface, Attribute 23 23 from waeup.ikoba.interfaces import ( 24 IIkobaUtils, CREATED, APPROVED, SUBMITTED, EXPIRED, REJECTED) 24 IIkobaUtils, 25 CREATED, APPROVED, 26 SUBMITTED, EXPIRED, 27 REJECTED, AWAITING) 25 28 from waeup.ikoba.customers.interfaces import ICustomersUtils 26 29 from waeup.ikoba.interfaces import MessageFactory as _ … … 54 57 types = TYPES.keys() 55 58 type_names = tuple(TYPES.values()) + (u'All',) 56 states = (CREATED, SUBMITTED, APPROVED, EXPIRED, REJECTED)59 states = (CREATED, AWAITING, SUBMITTED, APPROVED, EXPIRED, REJECTED) 57 60 STATES = getUtility(ICustomersUtils).TRANSLATED_CONTRACT_STATES 58 61 state_names = tuple([STATES[state] for state in states]) + (u'Total',) … … 108 111 ('LINEAFTER', (-1,0), (-1,-1), 0.25, colors.black), 109 112 ('LINEBEFORE', (-1,0), (-1,-1), 1.0, colors.black), 110 #('LINEABOVE', (0,-1), (-1,-1), 1.0, colors.black),113 ('LINEABOVE', (0,-1), (-1,-1), 1.0, colors.black), 111 114 #('LINEABOVE', (0,0), (-1,0), 0.25, colors.black), 112 115 ] -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports/tests/test_contract_statistics.py
r12659 r12663 17 17 layer = FunctionalLayer 18 18 19 states = ('created', 'submitted for approval', 'approved', 'expired', 19 states = ('created', 'awaiting payment', 20 'submitted for approval', 21 'approved', 'expired', 20 22 'rejected', 'Total') 21 23 … … 34 36 ((u'Sample Contract', u'All'), 35 37 self.states, 36 ((1, 0, 0, 0, 0, 1),37 (1, 0, 0, 0, 0, 1),))38 ((1, 0, 0, 0, 0, 0, 1), 39 (1, 0, 0, 0, 0, 0, 1),)) 38 40 ) 39 41 return
Note: See TracChangeset for help on using the changeset viewer.