commit
874bf11447
|
@ -3,6 +3,7 @@ Description=uWSGI instance to serve Empresa Libre
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/uwsgi /opt/empresa-libre/app/main.ini
|
ExecStart=/usr/bin/uwsgi /opt/empresa-libre/app/main.ini
|
||||||
|
KillSignal=SIGQUIT
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -2750,6 +2750,7 @@ class Productos(BaseModel):
|
||||||
.dicts()
|
.dicts()
|
||||||
)
|
)
|
||||||
if len(row):
|
if len(row):
|
||||||
|
print(row[0])
|
||||||
id = row[0]['id_product']
|
id = row[0]['id_product']
|
||||||
model_pt = Productos.impuestos.get_through_model()
|
model_pt = Productos.impuestos.get_through_model()
|
||||||
taxes = tuple(model_pt
|
taxes = tuple(model_pt
|
||||||
|
@ -4979,7 +4980,7 @@ class Tickets(BaseModel):
|
||||||
total_trasladados = None
|
total_trasladados = None
|
||||||
|
|
||||||
for producto in productos:
|
for producto in productos:
|
||||||
id_producto = producto.pop('id')
|
id_producto = producto.pop('id_product')
|
||||||
p = Productos.get(Productos.id==id_producto)
|
p = Productos.get(Productos.id==id_producto)
|
||||||
producto['descripcion'] = p.descripcion
|
producto['descripcion'] = p.descripcion
|
||||||
producto['ticket'] = ticket.id
|
producto['ticket'] = ticket.id
|
||||||
|
|
|
@ -221,6 +221,7 @@ function guardar_ticket(values){
|
||||||
|
|
||||||
var rows = gd.data.getRange()
|
var rows = gd.data.getRange()
|
||||||
for (i = 0; i < rows.length; i++) {
|
for (i = 0; i < rows.length; i++) {
|
||||||
|
delete rows[i]['id']
|
||||||
delete rows[i]['delete']
|
delete rows[i]['delete']
|
||||||
delete rows[i]['clave']
|
delete rows[i]['clave']
|
||||||
delete rows[i]['clave_sat']
|
delete rows[i]['clave_sat']
|
||||||
|
|
|
@ -560,6 +560,11 @@ var options_templates = [
|
||||||
label: 'Plantilla Factura v3.3 (JSON): ', labelPosition: 'top',
|
label: 'Plantilla Factura v3.3 (JSON): ', labelPosition: 'top',
|
||||||
icon: 'file'}, {}]},
|
icon: 'file'}, {}]},
|
||||||
{maxHeight: 20},
|
{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},
|
{cols: [{maxWidth: 15},
|
||||||
{view: 'search', id: 'txt_plantilla_ticket', name: 'plantilla_ticket',
|
{view: 'search', id: 'txt_plantilla_ticket', name: 'plantilla_ticket',
|
||||||
label: 'Plantilla para Tickets (ODS): ', labelPosition: 'top',
|
label: 'Plantilla para Tickets (ODS): ', labelPosition: 'top',
|
||||||
|
@ -569,11 +574,6 @@ var options_templates = [
|
||||||
icon: 'file'},
|
icon: 'file'},
|
||||||
{}]},
|
{}]},
|
||||||
{maxHeight: 20},
|
{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},
|
|
||||||
{}]
|
{}]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -123,14 +123,15 @@ var tbody_buscar_producto = {rows: [
|
||||||
|
|
||||||
|
|
||||||
var grid_tdetails_cols = [
|
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: 'delete', header: '', width: 30, css: 'delete'},
|
||||||
{id: "clave", header:{text: 'Clave', css: 'center'}, width: 100,
|
{id: "clave", header:{text: 'Clave', css: 'center'}, width: 100,
|
||||||
footer: {text: 'Artículos', css: 'right_footer3'}},
|
footer: {text: 'Artículos', css: 'right_footer3'}},
|
||||||
{id: "clave_sat", hidden: true},
|
{id: "clave_sat", hidden: true},
|
||||||
{id: "descripcion", header:{text: 'Descripción', css: 'center'},
|
{id: "descripcion", header:{text: 'Descripción', css: 'center'},
|
||||||
fillspace: true, footer: {content: 'countRows', css: 'footer3'}},
|
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,
|
{id: 'cantidad', header: {text: 'Cantidad', css: 'center'}, width: 100,
|
||||||
format: webix.i18n.numberFormat, css: 'right', editor: 'text',
|
format: webix.i18n.numberFormat, css: 'right', editor: 'text',
|
||||||
footer: {content: 'summColumn', css: 'right_footer3'}},
|
footer: {content: 'summColumn', css: 'right_footer3'}},
|
||||||
|
|
Loading…
Reference in New Issue