Fix - al mostgrar las empresass
This commit is contained in:
parent
d4e9d1701a
commit
ac28ab43f8
|
@ -13,6 +13,7 @@ class AppEmpresas(object):
|
||||||
@falcon.after(get_template)
|
@falcon.after(get_template)
|
||||||
def on_get(self, req, resp):
|
def on_get(self, req, resp):
|
||||||
values = req.params
|
values = req.params
|
||||||
|
print ('V', values)
|
||||||
resp.status = falcon.HTTP_200
|
resp.status = falcon.HTTP_200
|
||||||
|
|
||||||
def on_post(self, req, resp):
|
def on_post(self, req, resp):
|
||||||
|
|
|
@ -1690,6 +1690,7 @@ class ImportFacturaLibreGambas(object):
|
||||||
new = {t: row[s] for s, t in fields}
|
new = {t: row[s] for s, t in fields}
|
||||||
|
|
||||||
new['notas'] = ''
|
new['notas'] = ''
|
||||||
|
new['fecha'] = new['fecha'].replace(microsecond=0)
|
||||||
new['estatus'] = 'Generado'
|
new['estatus'] = 'Generado'
|
||||||
if new['cancelado']:
|
if new['cancelado']:
|
||||||
new['estatus'] = 'Cancelado'
|
new['estatus'] = 'Cancelado'
|
||||||
|
@ -1970,7 +1971,11 @@ class ImportFacturaLibreGambas(object):
|
||||||
for _, f in fields:
|
for _, f in fields:
|
||||||
new[f] = new[f] or ''
|
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['fecha_timbrado'] = None
|
||||||
|
|
||||||
new['estatus'] = 'Timbrada'
|
new['estatus'] = 'Timbrada'
|
||||||
|
|
|
@ -21,7 +21,7 @@ var header = [
|
||||||
var grid_empresas_cols = [
|
var grid_empresas_cols = [
|
||||||
{id: 'delete', header: '', width: 30, css: 'delete'},
|
{id: 'delete', header: '', width: 30, css: 'delete'},
|
||||||
{id: 'rfc', header: 'RFC Emisor', fillspace: true,
|
{id: 'rfc', header: 'RFC Emisor', fillspace: true,
|
||||||
footer: {content: 'rowCount', css: 'right'}},
|
footer: {content: 'countRows', css: 'right'}},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -196,8 +196,10 @@ var controls_generate_ticket = [
|
||||||
|
|
||||||
var toolbar_ticket_invoice = {view: 'toolbar', elements: [{},
|
var toolbar_ticket_invoice = {view: 'toolbar', elements: [{},
|
||||||
{view: 'checkbox', id: 'chk_is_invoice_day', labelWidth: 0, width: 150,
|
{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 = {
|
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_right', label: '->', autowidth: true},
|
||||||
{view: 'button', id: 'cmd_move_tickets_left', 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},
|
{minHeight: 20, maxHeight: 20},
|
||||||
{margin: 20, cols: [{},
|
{margin: 20, cols: [{},
|
||||||
|
@ -338,14 +342,14 @@ var controls_ticket_to_invoice = [
|
||||||
icon: 'ticket', type: 'iconButton', autowidth: true, align: 'center'},
|
icon: 'ticket', type: 'iconButton', autowidth: true, align: 'center'},
|
||||||
{}]
|
{}]
|
||||||
},
|
},
|
||||||
{rows: [
|
//~ {rows: [
|
||||||
{template: '', type: 'section'},
|
//~ {template: '', type: 'section'},
|
||||||
{margin: 10, cols: [{},
|
//~ {margin: 10, cols: [{},
|
||||||
{view: 'button', id: 'cmd_close_ticket_invoice', label: 'Cerrar',
|
//~ {view: 'button', id: 'cmd_close_ticket_invoice', label: 'Cerrar',
|
||||||
type: 'danger', autowidth: true, align: 'center'}
|
//~ type: 'danger', autowidth: true, align: 'center'}
|
||||||
]
|
//~ ]
|
||||||
},
|
//~ },
|
||||||
]}
|
//~ ]}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
|
||||||
|
|
||||||
function agregar_empresa(values){
|
function agregar_empresa(values){
|
||||||
webix.ajax().post("/empresas", values, function(text, data, xhr) {
|
webix.ajax().post("/empresas", values, function(text, data, xhr) {
|
||||||
var values = data.json();
|
var values = data.json();
|
||||||
|
|
Loading…
Reference in New Issue