From 9d3818e4ce570709df1902111f8ca5a858c1d504 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Sat, 10 Feb 2018 11:00:30 -0600 Subject: [PATCH] Fix - en unidades en notas --- source/app/models/main.py | 1 + source/static/js/ui/tickets.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/app/models/main.py b/source/app/models/main.py index 15cbad6..c0794e8 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -2750,6 +2750,7 @@ class Productos(BaseModel): .dicts() ) if len(row): + print(row[0]) id = row[0]['id_product'] model_pt = Productos.impuestos.get_through_model() taxes = tuple(model_pt diff --git a/source/static/js/ui/tickets.js b/source/static/js/ui/tickets.js index 56fee3f..9e51627 100644 --- a/source/static/js/ui/tickets.js +++ b/source/static/js/ui/tickets.js @@ -130,7 +130,8 @@ var grid_tdetails_cols = [ {id: "clave_sat", hidden: true}, {id: "descripcion", header:{text: 'DescripciĆ³n', css: 'center'}, fillspace: true, footer: {content: 'countRows', css: 'footer3'}}, - {id: "unidad", header:{text: 'Unidad', css: 'center'}, width: 100}, + {id: "unidad", header:{text: 'Unidad', css: 'center'}, width: 100, + editor: 'select', options: 'values/unidades'}, {id: 'cantidad', header: {text: 'Cantidad', css: 'center'}, width: 100, format: webix.i18n.numberFormat, css: 'right', editor: 'text', footer: {content: 'summColumn', css: 'right_footer3'}},