EDU - Quitar RFC como obligatorio
This commit is contained in:
commit
2141f84402
|
@ -2175,7 +2175,7 @@ class Alumnos(BaseModel):
|
||||||
|
|
||||||
def _clean(self, values):
|
def _clean(self, values):
|
||||||
fields = util.clean(util.loads(values))
|
fields = util.clean(util.loads(values))
|
||||||
fields['rfc'] = fields['rfc'].upper()
|
fields['rfc'] = fields['rfc'].upper().strip()
|
||||||
fields['curp'] = fields['curp'].upper()
|
fields['curp'] = fields['curp'].upper()
|
||||||
fields['nombre'] = util.spaces(fields['nombre'])
|
fields['nombre'] = util.spaces(fields['nombre'])
|
||||||
fields['paterno'] = util.spaces(fields['paterno'])
|
fields['paterno'] = util.spaces(fields['paterno'])
|
||||||
|
|
|
@ -107,6 +107,7 @@ function cmd_cancel_student_click(){
|
||||||
|
|
||||||
|
|
||||||
function cmd_save_student_click(){
|
function cmd_save_student_click(){
|
||||||
|
msg = ''
|
||||||
var form = this.getFormView();
|
var form = this.getFormView();
|
||||||
|
|
||||||
if (!form.validate()) {
|
if (!form.validate()) {
|
||||||
|
|
|
@ -67,7 +67,7 @@ var student_controls_generales = [
|
||||||
label: 'Apellido Materno: '},
|
label: 'Apellido Materno: '},
|
||||||
{cols: [
|
{cols: [
|
||||||
{view: 'text', id: 'student_rfc', name: 'rfc', label: 'RFC: ',
|
{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}},
|
attributes: {maxlength: 13}},
|
||||||
{view: 'text', id: 'student_curp', name: 'curp', label: 'CURP: ',
|
{view: 'text', id: 'student_curp', name: 'curp', label: 'CURP: ',
|
||||||
required: true, invalidMessage: 'CURP inválido', adjust: 'data',
|
required: true, invalidMessage: 'CURP inválido', adjust: 'data',
|
||||||
|
@ -118,7 +118,6 @@ var form_student = {
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
nombre: function(value){ return value.trim() != '';},
|
nombre: function(value){ return value.trim() != '';},
|
||||||
rfc: validate_rfc,
|
|
||||||
curp: validate_curp,
|
curp: validate_curp,
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue