Fix - al mostgrar las empresass

This commit is contained in:
Mauricio Baeza 2017-12-27 21:19:07 -06:00
parent d4e9d1701a
commit ac28ab43f8
5 changed files with 23 additions and 14 deletions

View File

@ -13,6 +13,7 @@ class AppEmpresas(object):
@falcon.after(get_template)
def on_get(self, req, resp):
values = req.params
print ('V', values)
resp.status = falcon.HTTP_200
def on_post(self, req, resp):

View File

@ -1690,6 +1690,7 @@ class ImportFacturaLibreGambas(object):
new = {t: row[s] for s, t in fields}
new['notas'] = ''
new['fecha'] = new['fecha'].replace(microsecond=0)
new['estatus'] = 'Generado'
if new['cancelado']:
new['estatus'] = 'Cancelado'
@ -1970,7 +1971,11 @@ class ImportFacturaLibreGambas(object):
for _, f in fields:
new[f] = new[f] or ''
if not new['fecha_timbrado']:
new['fecha'] = new['fecha'].replace(microsecond=0)
if new['fecha_timbrado']:
new['fecha_timbrado'] = new['fecha_timbrado'].replace(microsecond=0)
else:
new['fecha_timbrado'] = None
new['estatus'] = 'Timbrada'

View File

@ -21,7 +21,7 @@ var header = [
var grid_empresas_cols = [
{id: 'delete', header: '', width: 30, css: 'delete'},
{id: 'rfc', header: 'RFC Emisor', fillspace: true,
footer: {content: 'rowCount', css: 'right'}},
footer: {content: 'countRows', css: 'right'}},
]

View File

@ -196,8 +196,10 @@ var controls_generate_ticket = [
var toolbar_ticket_invoice = {view: 'toolbar', elements: [{},
{view: 'checkbox', id: 'chk_is_invoice_day', labelWidth: 0, width: 150,
labelRight: 'Es factura del día'},
{}]}
labelRight: 'Es factura del día'}, {},
{view: 'button', id: 'cmd_close_ticket_invoice', label: 'Cerrar',
type: 'danger', autowidth: true, align: 'center'}
]}
var ticket_suggest_partners = {
@ -330,7 +332,9 @@ var controls_ticket_to_invoice = [
{view: 'button', id: 'cmd_move_tickets_right', label: '->', autowidth: true},
{view: 'button', id: 'cmd_move_tickets_left', label: '<-', autowidth: true},
{}]},
{rows: [{view: 'label', label: 'Tickets a facturar', height: 30, align: 'left'}, grid_tickets_invoice]},
{rows: [{view: 'label', label: 'Tickets a facturar', height: 30,
align: 'left'},
grid_tickets_invoice]},
]},
{minHeight: 20, maxHeight: 20},
{margin: 20, cols: [{},
@ -338,14 +342,14 @@ var controls_ticket_to_invoice = [
icon: 'ticket', type: 'iconButton', autowidth: true, align: 'center'},
{}]
},
{rows: [
{template: '', type: 'section'},
{margin: 10, cols: [{},
{view: 'button', id: 'cmd_close_ticket_invoice', label: 'Cerrar',
type: 'danger', autowidth: true, align: 'center'}
]
},
]}
//~ {rows: [
//~ {template: '', type: 'section'},
//~ {margin: 10, cols: [{},
//~ {view: 'button', id: 'cmd_close_ticket_invoice', label: 'Cerrar',
//~ type: 'danger', autowidth: true, align: 'center'}
//~ ]
//~ },
//~ ]}
]

View File

@ -11,7 +11,6 @@
<script type="text/javascript" charset="utf-8">
function agregar_empresa(values){
webix.ajax().post("/empresas", values, function(text, data, xhr) {
var values = data.json();