commit
b6b5aa3447
|
@ -1,3 +1,11 @@
|
|||
v 1.15.0 [12-sep-2018]
|
||||
----------------------
|
||||
- Se pueden mover las facturas con doble clic en los movimientos de banco.
|
||||
- Fix - Al sumar las facturas en los depósitos
|
||||
- Fix - Al importar los pedimentos en facturas por lotes
|
||||
- Fix - Al guardar los datos del emisor
|
||||
|
||||
|
||||
v 1.14.0 [10-sep-2018]
|
||||
----------------------
|
||||
- Personalizar plantilla para factura de pago
|
||||
|
|
|
@ -167,12 +167,14 @@ def import_invoice():
|
|||
|
||||
descuento = round(row[3], 2)
|
||||
cant = round(row[4], 2)
|
||||
pedimento = row[5].strip()
|
||||
pf = vu - descuento
|
||||
p = {
|
||||
'id_product': obj.id,
|
||||
'delete': '-',
|
||||
'clave': obj.clave,
|
||||
'descripcion': obj.descripcion,
|
||||
'pedimento': pedimento,
|
||||
'unidad': obj.unidad.id,
|
||||
'cantidad': cant,
|
||||
'valor_unitario': vu,
|
||||
|
@ -868,18 +870,15 @@ class Emisor(BaseModel):
|
|||
fields['correo'] = fields.pop('emisor_correo', '')
|
||||
fields['web'] = fields.pop('emisor_web', '')
|
||||
fields['es_escuela'] = bool(fields['es_escuela'].replace('0', ''))
|
||||
|
||||
fields['es_ong'] = bool(fields['es_ong'].replace('0', ''))
|
||||
if fields['es_ong']:
|
||||
fields['autorizacion'] = fields.pop('ong_autorizacion', '')
|
||||
fields['fecha_autorizacion'] = fields.pop('ong_fecha', None)
|
||||
fields['fecha_dof'] = fields.pop('ong_fecha_dof', None)
|
||||
else:
|
||||
fields.pop('ong_autorizacion')
|
||||
fields.pop('ong_fecha')
|
||||
fields.pop('ong_fecha_dof')
|
||||
fields['autorizacion'] = ''
|
||||
fields['fecha_autorizacion'] = None
|
||||
fields['fecha_dof'] = None
|
||||
ong_auth = fields.pop('ong_autorizacion', '')
|
||||
ong_date = fields.pop('ong_fecha', None)
|
||||
ong_date_dof = fields.pop('ong_fecha_dof', None)
|
||||
fields['autorizacion'] = ong_auth
|
||||
fields['fecha_autorizacion'] = ong_date
|
||||
fields['fecha_dof'] = ong_date_dof
|
||||
|
||||
fields['correo_timbrado'] = fields.pop('correo_timbrado', '')
|
||||
fields['token_timbrado'] = fields.pop('token_timbrado', '')
|
||||
fields['token_soporte'] = fields.pop('token_soporte', '')
|
||||
|
@ -5048,6 +5047,7 @@ class FacturasDetalle(BaseModel):
|
|||
row['clave'] = p.clave
|
||||
row['clave_sat'] = p.clave_sat
|
||||
row['descripcion'] = p.descripcion
|
||||
row['pedimento'] = p.pedimento
|
||||
row['unidad'] = p.producto.unidad.id
|
||||
row['cantidad'] = p.cantidad
|
||||
row['valor_unitario'] = p.valor_unitario
|
||||
|
@ -5136,6 +5136,7 @@ class PreFacturasDetalle(BaseModel):
|
|||
row = {'id_product': p.producto.id}
|
||||
row['clave'] = p.producto.clave
|
||||
row['descripcion'] = p.descripcion
|
||||
row['pedimento'] = p.pedimento
|
||||
row['unidad'] = p.producto.unidad.id
|
||||
row['cantidad'] = p.cantidad
|
||||
row['valor_unitario'] = p.valor_unitario
|
||||
|
@ -5176,6 +5177,9 @@ class PreFacturasDetalle(BaseModel):
|
|||
if p.cuenta_predial:
|
||||
info = '\nCuenta Predial Número: {}'.format(p.cuenta_predial)
|
||||
producto['descripcion'] += info
|
||||
if p.pedimento:
|
||||
info = '\nNúmero Pedimento: {}'.format(p.pedimento)
|
||||
producto['descripcion'] += info
|
||||
|
||||
producto['unidad'] = '{}\n({})'.format(
|
||||
p.producto.unidad.name, p.producto.unidad.key)
|
||||
|
|
|
@ -47,7 +47,7 @@ except ImportError:
|
|||
|
||||
|
||||
DEBUG = DEBUG
|
||||
VERSION = '1.14.0'
|
||||
VERSION = '1.15.0'
|
||||
EMAIL_SUPPORT = ('soporte@empresalibre.net',)
|
||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@ var bancos_controllers = {
|
|||
$$('cmd_pay_stamp').attachEvent('onItemClick', cmd_pay_stamp_click)
|
||||
$$('cmd_pay_cancel').attachEvent('onItemClick', cmd_pay_cancel_click)
|
||||
$$('grid_cfdi_pay').attachEvent('onItemClick', grid_cfdi_pay_click)
|
||||
$$('grid_cfdi_por_pagar').attachEvent('onItemDblClick', grid_cfdi_por_pagar_double_click)
|
||||
$$('grid_cfdi_este_deposito').attachEvent('onItemDblClick', grid_cfdi_este_deposito_double_click)
|
||||
|
||||
set_year_month()
|
||||
show('cmd_complemento_pago', get_config('used_cfdi_pays'))
|
||||
|
@ -369,7 +371,8 @@ function actualizar_deposito(grid){
|
|||
}
|
||||
suma += obj.importe.to_float()
|
||||
})
|
||||
$$('txt_deposito_importe').setValue(suma)
|
||||
|
||||
$$('txt_deposito_importe').setValue(suma.round(DECIMALES))
|
||||
$$('deposito_descripcion').setValue(descripcion.slice(0, -1))
|
||||
grid.refresh()
|
||||
}
|
||||
|
@ -500,6 +503,8 @@ function validate_deposito(values){
|
|||
}
|
||||
suma += tmp
|
||||
})
|
||||
suma = suma.round(DECIMALES)
|
||||
|
||||
if(suma > importe){
|
||||
msg = 'La suma del pago de facturas, no puede ser mayor al deposito'
|
||||
msg_error(msg)
|
||||
|
@ -990,3 +995,19 @@ function grid_cfdi_pay_click(id, e, node){
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function grid_cfdi_por_pagar_double_click(id, e, node){
|
||||
var grid = $$('grid_cfdi_este_deposito')
|
||||
|
||||
this.move(id.row, -1, grid)
|
||||
actualizar_deposito(grid)
|
||||
}
|
||||
|
||||
|
||||
function grid_cfdi_este_deposito_double_click(id, e, node){
|
||||
var grid = $$('grid_cfdi_este_deposito')
|
||||
|
||||
this.move(id.row, -1, $$('grid_cfdi_por_pagar'))
|
||||
actualizar_deposito(grid)
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ var grid_cfdi_por_pagar_cols = [
|
|||
{id: 'index', header: '#', adjust: 'data', css: 'right'},
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'serie', header: 'Serie', adjust: 'data'},
|
||||
{id: 'folio', header: 'Folio', adjust: 'data', css: 'right'},
|
||||
{id: 'folio', header: ['Folio', {content: 'numberFilter'}], adjust: 'data', css: 'right'},
|
||||
{id: 'uuid', header: 'UUID', width: 250, hidden: true},
|
||||
{id: 'fecha', header: 'Fecha y Hora', width: 150, sort: 'date'},
|
||||
{id: 'tipo_comprobante', header: 'Tipo', adjust: 'data'},
|
||||
|
@ -183,6 +183,7 @@ var grid_cfdi_este_deposito = {
|
|||
view: 'datatable',
|
||||
id: 'grid_cfdi_este_deposito',
|
||||
select: 'row',
|
||||
multiselect: true,
|
||||
autoConfig: false,
|
||||
adjust: true,
|
||||
height: 200,
|
||||
|
|
Loading…
Reference in New Issue