Fix - en notas

This commit is contained in:
Mauricio Baeza 2018-02-10 10:57:40 -06:00
parent cdd97416ab
commit 8db62db775
5 changed files with 9 additions and 7 deletions

View File

@ -3,6 +3,7 @@ Description=uWSGI instance to serve Empresa Libre
[Service]
ExecStart=/usr/bin/uwsgi /opt/empresa-libre/app/main.ini
KillSignal=SIGQUIT
[Install]
WantedBy=multi-user.target

View File

@ -4979,7 +4979,7 @@ class Tickets(BaseModel):
total_trasladados = None
for producto in productos:
id_producto = producto.pop('id')
id_producto = producto.pop('id_product')
p = Productos.get(Productos.id==id_producto)
producto['descripcion'] = p.descripcion
producto['ticket'] = ticket.id

View File

@ -221,6 +221,7 @@ function guardar_ticket(values){
var rows = gd.data.getRange()
for (i = 0; i < rows.length; i++) {
delete rows[i]['id']
delete rows[i]['delete']
delete rows[i]['clave']
delete rows[i]['clave_sat']

View File

@ -560,6 +560,11 @@ var options_templates = [
label: 'Plantilla Factura v3.3 (JSON): ', labelPosition: 'top',
icon: 'file'}, {}]},
{maxHeight: 20},
{cols: [{maxWidth: 15},
{view: 'search', id: 'txt_plantilla_nomina1233', name: 'plantilla_nomina1233',
label: 'Plantilla Nomina v1.2 - Cfdi 3.3 (ODS): ', labelPosition: 'top',
icon: 'file'}, {}]},
{maxHeight: 20},
{cols: [{maxWidth: 15},
{view: 'search', id: 'txt_plantilla_ticket', name: 'plantilla_ticket',
label: 'Plantilla para Tickets (ODS): ', labelPosition: 'top',
@ -569,11 +574,6 @@ var options_templates = [
icon: 'file'},
{}]},
{maxHeight: 20},
{cols: [{maxWidth: 15},
{view: 'search', id: 'txt_plantilla_nomina1233', name: 'plantilla_nomina1233',
label: 'Plantilla Nomina v1.2 - Cfdi 3.3 (ODS): ', labelPosition: 'top',
icon: 'file'}, {}]},
{maxHeight: 20},
{}]

View File

@ -123,7 +123,7 @@ var tbody_buscar_producto = {rows: [
var grid_tdetails_cols = [
{id: "id", header:"ID", hidden: true},
{id: "id_product", header:"ID", hidden: true},
{id: 'delete', header: '', width: 30, css: 'delete'},
{id: "clave", header:{text: 'Clave', css: 'center'}, width: 100,
footer: {text: 'Artículos', css: 'right_footer3'}},