EDU - Quitar RFC como obligatorio

This commit is contained in:
Mauricio Baeza 2018-01-29 14:23:37 -06:00
commit 2141f84402
3 changed files with 3 additions and 3 deletions

View File

@ -2175,7 +2175,7 @@ class Alumnos(BaseModel):
def _clean(self, values):
fields = util.clean(util.loads(values))
fields['rfc'] = fields['rfc'].upper()
fields['rfc'] = fields['rfc'].upper().strip()
fields['curp'] = fields['curp'].upper()
fields['nombre'] = util.spaces(fields['nombre'])
fields['paterno'] = util.spaces(fields['paterno'])

View File

@ -107,6 +107,7 @@ function cmd_cancel_student_click(){
function cmd_save_student_click(){
msg = ''
var form = this.getFormView();
if (!form.validate()) {

View File

@ -67,7 +67,7 @@ var student_controls_generales = [
label: 'Apellido Materno: '},
{cols: [
{view: 'text', id: 'student_rfc', name: 'rfc', label: 'RFC: ',
required: true, invalidMessage: 'RFC inválido', adjust: 'data',
invalidMessage: 'RFC inválido', adjust: 'data',
attributes: {maxlength: 13}},
{view: 'text', id: 'student_curp', name: 'curp', label: 'CURP: ',
required: true, invalidMessage: 'CURP inválido', adjust: 'data',
@ -118,7 +118,6 @@ var form_student = {
},
rules: {
nombre: function(value){ return value.trim() != '';},
rfc: validate_rfc,
curp: validate_curp,
}
}]