forked from elmau/empresa-libre
Fix - Ajuste al agregar producto
This commit is contained in:
commit
8c8c3afd30
|
@ -3252,6 +3252,7 @@ class Facturas(BaseModel):
|
||||||
anticipo = False
|
anticipo = False
|
||||||
msg = 'Factura timbrada correctamente'
|
msg = 'Factura timbrada correctamente'
|
||||||
result = util.timbra_xml(obj.xml, auth)
|
result = util.timbra_xml(obj.xml, auth)
|
||||||
|
# ~ print (result)
|
||||||
if result['ok']:
|
if result['ok']:
|
||||||
obj.xml = result['xml']
|
obj.xml = result['xml']
|
||||||
obj.uuid = result['uuid']
|
obj.uuid = result['uuid']
|
||||||
|
|
|
@ -436,6 +436,7 @@ function send_timbrar(id){
|
||||||
text: values.msg,
|
text: values.msg,
|
||||||
type: 'alert-error'
|
type: 'alert-error'
|
||||||
})
|
})
|
||||||
|
gi.updateItem(id, values.row)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ var controls_generals = [
|
||||||
disabled: true},
|
disabled: true},
|
||||||
{view: 'counter', id: 'txt_minimo', name: 'minimo', hidden: true,
|
{view: 'counter', id: 'txt_minimo', name: 'minimo', hidden: true,
|
||||||
label: 'Mínimo', step: 5, value: 0, min: 0, disabled: true},
|
label: 'Mínimo', step: 5, value: 0, min: 0, disabled: true},
|
||||||
]},
|
{},]},
|
||||||
{cols:[{view:'label', label:'Impuestos', width: 300, align:'center'}, {}]},
|
{cols:[{view:'label', label:'Impuestos', width: 300, align:'center'}, {}]},
|
||||||
{cols:[grid_product_taxes, {}]}
|
{cols:[grid_product_taxes, {}]}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue