- Timestamp:
- 20 Jan 2015, 08:31:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/interfaces.py
r12488 r12499 54 54 55 55 class IRONContract(IContract): 56 """A Retention Of Namecontract.56 """A Retention of Name contract. 57 57 58 58 """ … … 149 149 # required = True, 150 150 # ) 151 152 153 class IROPContract(IContract): 154 """A Registration of Premises contract. 155 156 """ 157 158 date_of_birth = FormattedDate( 159 title = _(u'Date of Birth'), 160 required = True, 161 show_year = True, 162 ) 163 164 state_of_origin = schema.Choice( 165 vocabulary = nats_vocab, 166 title = _(u'State of Origin'), 167 required = False, 168 ) 169 170 lga = schema.Choice( 171 source = LGASource(), 172 title = _(u'State / LGA'), 173 required = True, 174 ) 175 176 year_qualification = schema.Choice( 177 title = _(u'Year of Qualification'), 178 required = True, 179 values = year_range(), 180 ) 181 182 res_address = schema.Text( 183 title = _(u'Residential Address'), 184 required = True, 185 ) 186 187 res_address = schema.Text( 188 title = _(u'Residential Address'), 189 required = False, 190 ) 191 192 work_address = schema.Text( 193 title = _(u'Work Address'), 194 required = False, 195 ) 196 197 work_email = schema.ASCIILine( 198 title = _(u'Work Email Address'), 199 required = False, 200 constraint=validate_email, 201 ) 202 203 work_phone = PhoneNumber( 204 title = _(u'Work Phone'), 205 description = u'', 206 required = False, 207 ) 208 209 category_practice = schema.TextLine( 210 title = _(u'Category of Practice'), 211 description = _(u'academic, retail and dispensing, hospital, administrative, wholesale, importation, manufacturing, etc.'), 212 required = False, 213 ) 214 215 superintendent = schema.Bool( 216 title= _('Superintendent'), 217 description= _('Tick box if you are a superintendent pharamcist.'), 218 required = False, 219 ) 220 221 #document_object = schema.Choice( 222 # title = _(u'Document'), 223 # source = CustomerDocumentSource(), 224 # required = False, 225 # ) 226 227 class IROPContractProcess(IROPContract): 228 """Interface for processing RON data. 229 """ 230 231 product_options = schema.List( 232 title = _(u'Options/Fees'), 233 value_type = ProductOptionField(), 234 required = False, 235 readonly = False, 236 default = [], 237 ) 238 239 class IROPContractEdit(IROPContract): 240 """Interface for editing RON data by customers. 241 242 """ 243 244 #document_object = schema.Choice( 245 # title = _(u'Document'), 246 # source = CustomerDocumentSource(), 247 # required = True, 248 # )
Note: See TracChangeset for help on using the changeset viewer.