Versión 2.2.2

Se hace que la forma de pago y el iva se cojan siempre de la empresa y no del cliente. contratos y facturas....
Se mete forma de pago de las facturas en la lista de pagos y cobros para saber como se ha pagado

git-svn-id: https://192.168.0.254/svn/Proyectos.AlonsoYSal_FactuGES2/trunk@26 40301925-124e-1c4e-b97d-170ad7a8785b
This commit is contained in:
roberto 2021-06-15 15:00:45 +00:00
parent 3d846a7f72
commit b3a08ad5b4
15 changed files with 32 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -348,11 +348,12 @@ begin
TELEFONO := FCliente.TELEFONO_1; TELEFONO := FCliente.TELEFONO_1;
MOVIL := FCliente.MOVIL_1; MOVIL := FCliente.MOVIL_1;
if FCliente.ID_FORMA_PAGO > 0 then //En alonso y sal no se coge la forma de pago ni el iva del contacto sino de la empresa
ID_FORMA_PAGO := FCliente.ID_FORMA_PAGO; // if FCliente.ID_FORMA_PAGO > 0 then
if FCliente.ID_TIPO_IVA > 0 then // ID_FORMA_PAGO := FCliente.ID_FORMA_PAGO;
ID_TIPO_IVA := FCliente.ID_TIPO_IVA; // if FCliente.ID_TIPO_IVA > 0 then
RECARGO_EQUIVALENCIA := FCliente.RECARGO_EQUIVALENCIA; // ID_TIPO_IVA := FCliente.ID_TIPO_IVA;
// RECARGO_EQUIVALENCIA := FCliente.RECARGO_EQUIVALENCIA;
// En acana la ficha de cliente no tiene descuento aplicado por defecto // En acana la ficha de cliente no tiene descuento aplicado por defecto
// DESCUENTO := FCliente.DESCUENTO; // DESCUENTO := FCliente.DESCUENTO;

View File

@ -334,11 +334,13 @@ begin
CODIGO_POSTAL := FCliente.CODIGO_POSTAL; CODIGO_POSTAL := FCliente.CODIGO_POSTAL;
PROVINCIA := FCliente.PROVINCIA; PROVINCIA := FCliente.PROVINCIA;
POBLACION := FCliente.POBLACION; POBLACION := FCliente.POBLACION;
if FCliente.ID_FORMA_PAGO > 0 then
ID_FORMA_PAGO := FCliente.ID_FORMA_PAGO; //En alonso y sal no se coge la forma de pago ni el iva del contacto sino de la empresa
if FCliente.ID_TIPO_IVA > 0 then // if FCliente.ID_FORMA_PAGO > 0 then
ID_TIPO_IVA := FCliente.ID_TIPO_IVA; // ID_FORMA_PAGO := FCliente.ID_FORMA_PAGO;
RECARGO_EQUIVALENCIA := FCliente.RECARGO_EQUIVALENCIA; // if FCliente.ID_TIPO_IVA > 0 then
// ID_TIPO_IVA := FCliente.ID_TIPO_IVA;
// RECARGO_EQUIVALENCIA := FCliente.RECARGO_EQUIVALENCIA;
//Si el cliente tiene la contabilidad desactivada la factura que realizamos la desactivamos también. //Si el cliente tiene la contabilidad desactivada la factura que realizamos la desactivamos también.
if (FCliente.IGNORAR_CONTABILIDAD = 1) then if (FCliente.IGNORAR_CONTABILIDAD = 1) then

View File

@ -357,8 +357,8 @@ begin
CODIGO_POSTAL := FProveedor.CODIGO_POSTAL; CODIGO_POSTAL := FProveedor.CODIGO_POSTAL;
PROVINCIA := FProveedor.PROVINCIA; PROVINCIA := FProveedor.PROVINCIA;
POBLACION := FProveedor.POBLACION; POBLACION := FProveedor.POBLACION;
// if FProveedor.ID_FORMA_PAGO > 0 then if FProveedor.ID_FORMA_PAGO > 0 then
// ID_FORMA_PAGO := FProveedor.ID_FORMA_PAGO; ID_FORMA_PAGO := FProveedor.ID_FORMA_PAGO;
if FProveedor.ID_TIPO_IVA > 0 then if FProveedor.ID_TIPO_IVA > 0 then
ID_TIPO_IVA := FProveedor.ID_TIPO_IVA; ID_TIPO_IVA := FProveedor.ID_TIPO_IVA;
// RECARGO_EQUIVALENCIA := FProveedor.RECARGO_EQUIVALENCIA; // RECARGO_EQUIVALENCIA := FProveedor.RECARGO_EQUIVALENCIA;

View File

@ -638,7 +638,7 @@ begin
ShowHourglassCursor; ShowHourglassCursor;
// solicita por José Luís que el asunto del correo y el documento adunto sean igual que la referencia del pedido impreso // solicita por José Luís que el asunto del correo y el documento adunto sean igual que la referencia del pedido impreso
ATituloEnvio := 'Pedido ref.' + Copy(APedido.REF_CON_CLIENTE, 8, 6) + '-' + APedido.REF_VENDEDOR + '-' + APedido.NOMBRE_CLIENTE + '-' + APedido.DESCRIPCION_GENERAL; ATituloEnvio := 'Pedido ref-' + Copy(APedido.REF_CON_CLIENTE, 8, 6) + '-' + APedido.REF_VENDEDOR + '-' + APedido.NOMBRE_CLIENTE + '-' + APedido.DESCRIPCION_GENERAL;
AFicheroTMP := DarFicheroPDFTemporal(EscapeIllegalChars(ATituloEnvio)); AFicheroTMP := DarFicheroPDFTemporal(EscapeIllegalChars(ATituloEnvio));
AReportController := TPedidosProveedorReportController.Create; AReportController := TPedidosProveedorReportController.Create;

View File

@ -133,6 +133,9 @@ inherited fEditorRecibosCliente: TfEditorRecibosCliente
Kind = skSum Kind = skSum
Column = frViewRecibosCliente1.cxGridViewOTROS_GASTOS Column = frViewRecibosCliente1.cxGridViewOTROS_GASTOS
end> end>
inherited cxGridViewSUBCUENTA: TcxGridDBColumn
FooterAlignmentHorz = taRightJustify
end
end end
end end
inherited frViewFiltroBase1: TfrViewFiltroBase inherited frViewFiltroBase1: TfrViewFiltroBase

View File

@ -227,6 +227,10 @@ inherited frViewRecibosCliente: TfrViewRecibosCliente
Properties.Alignment.Horz = taRightJustify Properties.Alignment.Horz = taRightJustify
HeaderAlignmentHorz = taRightJustify HeaderAlignmentHorz = taRightJustify
end end
object cxGridViewFORMA_PAGO_FACTURA: TcxGridDBColumn
Caption = 'Forma pago factura'
DataBinding.FieldName = 'FORMA_PAGO_FACTURA'
end
end end
inherited cxGridLevel: TcxGridLevel inherited cxGridLevel: TcxGridLevel
Caption = 'Todos' Caption = 'Todos'

View File

@ -62,6 +62,7 @@ type
cxGridViewREFERENCIA_CONTRATO: TcxGridDBColumn; cxGridViewREFERENCIA_CONTRATO: TcxGridDBColumn;
cxGridViewFECHA_PAGO: TcxGridDBColumn; cxGridViewFECHA_PAGO: TcxGridDBColumn;
cxGridViewSUBCUENTA: TcxGridDBColumn; cxGridViewSUBCUENTA: TcxGridDBColumn;
cxGridViewFORMA_PAGO_FACTURA: TcxGridDBColumn;
procedure cxGridViewStylesGetContentStyle(Sender: TcxCustomGridTableView; procedure cxGridViewStylesGetContentStyle(Sender: TcxCustomGridTableView;
ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem;
out AStyle: TcxStyle); out AStyle: TcxStyle);

View File

@ -132,6 +132,9 @@ inherited fEditorRecibosProveedor: TfEditorRecibosProveedor
Kind = skSum Kind = skSum
Column = frViewRecibosProveedor1.cxGridViewOTROS_GASTOS Column = frViewRecibosProveedor1.cxGridViewOTROS_GASTOS
end> end>
inherited cxGridViewSUBCUENTA: TcxGridDBColumn
FooterAlignmentHorz = taRightJustify
end
end end
end end
inherited frViewFiltroBase1: TfrViewFiltroBase inherited frViewFiltroBase1: TfrViewFiltroBase

View File

@ -163,6 +163,10 @@ inherited frViewRecibosProveedor: TfrViewRecibosProveedor
Properties.Alignment.Horz = taRightJustify Properties.Alignment.Horz = taRightJustify
HeaderAlignmentHorz = taRightJustify HeaderAlignmentHorz = taRightJustify
end end
object cxGridViewFORMA_PAGO_FACTURA: TcxGridDBColumn
Caption = 'Forma pago factura'
DataBinding.FieldName = 'FORMA_PAGO_FACTURA'
end
end end
inherited cxGridLevel: TcxGridLevel inherited cxGridLevel: TcxGridLevel
Caption = 'Todos' Caption = 'Todos'

View File

@ -54,6 +54,7 @@ type
cxGridViewNOMBRE_COMERCIAL: TcxGridDBColumn; cxGridViewNOMBRE_COMERCIAL: TcxGridDBColumn;
cxGridViewFECHA_PAGO: TcxGridDBColumn; cxGridViewFECHA_PAGO: TcxGridDBColumn;
cxGridViewSUBCUENTA: TcxGridDBColumn; cxGridViewSUBCUENTA: TcxGridDBColumn;
cxGridViewFORMA_PAGO_FACTURA: TcxGridDBColumn;
procedure cxGridViewStylesGetContentStyle(Sender: TcxCustomGridTableView; procedure cxGridViewStylesGetContentStyle(Sender: TcxCustomGridTableView;
ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem;
out AStyle: TcxStyle); out AStyle: TcxStyle);

Binary file not shown.