Changeset 7717 for main/waeup.sirp/trunk/src/waeup/sirp/payments
- Timestamp:
- 28 Feb 2012, 11:50:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/payments/interfaces.py
r7627 r7717 19 19 from zope import schema 20 20 from waeup.sirp.interfaces import ISIRPObject, SimpleSIRPVocabulary 21 from waeup.sirp.interfaces import MessageFactory as _ 21 22 22 23 payment_states = SimpleSIRPVocabulary( 23 ( 'Not yet paid','unpaid'),24 ( 'Paid','paid'),25 ( 'Failed','failed'),24 (_('Not yet paid'),'unpaid'), 25 (_('Paid'),'paid'), 26 (_('Failed'),'failed'), 26 27 ) 27 28 28 29 payment_categories = SimpleSIRPVocabulary( 29 ( 'School Fee','schoolfee'),30 ( 'Clearance','clearance'),31 ( 'Bed Allocation','bed_allocation'),32 ( 'Hostel Maintenance','hostel_maintenance'),33 ( 'Transfer','transfer'),34 ( 'Gown','gown'),35 ( 'Acceptance Fee', 'acceptance'),30 (_('School Fee'),'schoolfee'), 31 (_('Clearance'),'clearance'), 32 (_('Bed Allocation'),'bed_allocation'), 33 (_('Hostel Maintenance'),'hostel_maintenance'), 34 (_('Transfer'),'transfer'), 35 (_('Gown'),'gown'), 36 (_('Acceptance Fee'), 'acceptance'), 36 37 ) 37 38 … … 48 49 49 50 p_category = schema.Choice( 50 title = u'Payment Category',51 title = _(u'Payment Category'), 51 52 default = u'schoolfee', 52 53 vocabulary = payment_categories, … … 55 56 56 57 p_item = schema.TextLine( 57 title = u'Payment Item',58 title = _(u'Payment Item'), 58 59 default = None, 59 60 required = False, … … 61 62 62 63 p_state = schema.Choice( 63 title = u'Payment State',64 title = _(u'Payment State'), 64 65 default = u'unpaid', 65 66 vocabulary = payment_states, … … 68 69 69 70 creation_date = schema.Datetime( 70 title = u'Ticket Creation Date',71 title = _(u'Ticket Creation Date'), 71 72 readonly = False, 72 73 ) 73 74 74 75 payment_date = schema.Datetime( 75 title = u'Payment Date',76 title = _(u'Payment Date'), 76 77 required = False, 77 78 readonly = False, … … 79 80 80 81 amount_auth = schema.Int( 81 title = u'Amount Authorized',82 title = _(u'Amount Authorized'), 82 83 default = 0, 83 84 required = True, … … 91 92 92 93 p_code = schema.TextLine( 93 title = u'Payment Access Code',94 default = u'Certificate XYZ',94 title = _(u'Payment Access Code'), 95 #default = u'Certificate XYZ', 95 96 required = False, 96 97 readonly = True, … … 103 104 104 105 surcharge_1 = schema.Int( 105 title = u'Surcharge 1',106 title = _(u'Surcharge 1'), 106 107 default = 0, 107 108 required = False, … … 110 111 111 112 surcharge_2 = schema.Int( 112 title = u'Surcharge 2',113 title = _(u'Surcharge 2'), 113 114 default = 0, 114 115 required = False, … … 117 118 118 119 surcharge_3 = schema.Int( 119 title = u'Surcharge 3',120 title = _(u'Surcharge 3'), 120 121 default = 0, 121 122 required = False, … … 130 131 131 132 ac = schema.TextLine( 132 title = u'Activation Code',133 title = _(u'Activation Code'), 133 134 default = None, 134 135 required = False, … … 137 138 138 139 r_amount_approved = schema.Int( 139 title = u'Response Amount Approved',140 title = _(u'Response Amount Approved'), 140 141 default = 0, 141 142 required = False, … … 144 145 145 146 r_desc = schema.TextLine( 146 title = u'Response Description',147 title = _(u'Response Description'), 147 148 default = None, 148 149 required = False, … … 151 152 152 153 r_pay_reference = schema.TextLine( 153 title = u'Response Payment Reference',154 title = _(u'Response Payment Reference'), 154 155 default = None, 155 156 required = False, … … 158 159 159 160 r_code = schema.TextLine( 160 title = u'Response Code',161 title = _(u'Response Code'), 161 162 default = None, 162 163 required = False, … … 165 166 166 167 r_card_num = schema.TextLine( 167 title = u'Response Card Number',168 title = _(u'Response Card Number'), 168 169 default = None, 169 170 required = False,
Note: See TracChangeset for help on using the changeset viewer.