Fix - Ajuste al agregar producto

This commit is contained in:
Mauricio Baeza 2018-01-08 13:57:15 -06:00
parent 6de21e75bd
commit 19c0ec91af
3 changed files with 3 additions and 1 deletions

View File

@ -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']

View File

@ -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)
} }
}) })

View File

@ -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, {}]}
] ]