forked from elmau/empresa-libre
Soporte para pedimentos
This commit is contained in:
commit
aa6d317c85
|
@ -1070,12 +1070,19 @@ def _conceptos(doc, version):
|
||||||
values['noidentificacion'], values['ClaveProdServ'])
|
values['noidentificacion'], values['ClaveProdServ'])
|
||||||
values['unidad'] = '({})\n{}'.format(
|
values['unidad'] = '({})\n{}'.format(
|
||||||
values['ClaveUnidad'], values['unidad'])
|
values['ClaveUnidad'], values['unidad'])
|
||||||
|
|
||||||
n = c.find('{}CuentaPredial'.format(PRE[version]))
|
n = c.find('{}CuentaPredial'.format(PRE[version]))
|
||||||
if n is not None:
|
if n is not None:
|
||||||
v = CaseInsensitiveDict(n.attrib.copy())
|
v = CaseInsensitiveDict(n.attrib.copy())
|
||||||
info = '\nCuenta Predial Número: {}'.format(v['numero'])
|
info = '\nCuenta Predial Número: {}'.format(v['numero'])
|
||||||
values['descripcion'] += info
|
values['descripcion'] += info
|
||||||
|
|
||||||
|
n = c.find('{}InformacionAduanera'.format(PRE[version]))
|
||||||
|
if n is not None:
|
||||||
|
v = CaseInsensitiveDict(n.attrib.copy())
|
||||||
|
info = '\nNúmero Pedimento: {}'.format(v['numeropedimento'])
|
||||||
|
values['descripcion'] += info
|
||||||
|
|
||||||
data.append(values)
|
data.append(values)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -918,8 +918,8 @@ function grid_details_before_edit_stop(state, editor){
|
||||||
|
|
||||||
if(editor.column == 'pedimento'){
|
if(editor.column == 'pedimento'){
|
||||||
state.value = state.value.trim()
|
state.value = state.value.trim()
|
||||||
if(state.value.length > 21){
|
if(state.value.length != 21){
|
||||||
msg = 'El Pedimento tiene más de 21 caracteres, será '
|
msg = 'El Pedimento debe ser de 21 caracteres, será '
|
||||||
msg += 'rechazado por el SAT. Edita estalo hasta que ya '
|
msg += 'rechazado por el SAT. Edita estalo hasta que ya '
|
||||||
msg += 'no veas este mensaje de error. <BR>'
|
msg += 'no veas este mensaje de error. <BR>'
|
||||||
msg += '<BR>Caracteres: ' + state.value.length
|
msg += '<BR>Caracteres: ' + state.value.length
|
||||||
|
|
Loading…
Reference in New Issue