Se arregla fallo al meter la fecha manualmente
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@522 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
0c042482c0
commit
a0734611ca
@ -45,7 +45,7 @@ type
|
|||||||
function Eliminar(ARecibosCliente : IBizRecibosCliente; AllItems: Boolean = false): Boolean;
|
function Eliminar(ARecibosCliente : IBizRecibosCliente; AllItems: Boolean = false): Boolean;
|
||||||
|
|
||||||
function AnadirPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
function AnadirPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
||||||
procedure ModificarPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0);
|
procedure ModificarPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String);
|
||||||
function EliminarPago(ARecibosCliente : IBizRecibosCliente): Boolean;
|
function EliminarPago(ARecibosCliente : IBizRecibosCliente): Boolean;
|
||||||
function EliminarTodo(ARecibosCliente : IBizRecibosCliente): Boolean;
|
function EliminarTodo(ARecibosCliente : IBizRecibosCliente): Boolean;
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ type
|
|||||||
procedure RecuperarCliente(AReciboCliente : IBizRecibosCliente);
|
procedure RecuperarCliente(AReciboCliente : IBizRecibosCliente);
|
||||||
procedure Anadir(ARecibosCliente : IBizRecibosCliente);
|
procedure Anadir(ARecibosCliente : IBizRecibosCliente);
|
||||||
function AnadirPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
function AnadirPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
||||||
procedure ModificarPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0);
|
procedure ModificarPago(ARecibosCliente : IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String);
|
||||||
function Eliminar(ARecibosCliente : IBizRecibosCliente; AllItems: Boolean = false): Boolean;
|
function Eliminar(ARecibosCliente : IBizRecibosCliente; AllItems: Boolean = false): Boolean;
|
||||||
function EliminarPago(ARecibosCliente : IBizRecibosCliente): Boolean;
|
function EliminarPago(ARecibosCliente : IBizRecibosCliente): Boolean;
|
||||||
function EliminarTodo(ARecibosCliente : IBizRecibosCliente): Boolean;
|
function EliminarTodo(ARecibosCliente : IBizRecibosCliente): Boolean;
|
||||||
@ -866,10 +866,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRecibosClienteController.ModificarPago(ARecibosCliente: IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0);
|
procedure TRecibosClienteController.ModificarPago(ARecibosCliente: IBizRecibosCliente; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String);
|
||||||
begin
|
begin
|
||||||
if Length(FechaPago) > 0 then
|
if Length(FechaPago) > 0 then
|
||||||
PagosController.Modificar(ARecibosCliente.Pagos, FechaPago, AIgnorarContabilidad, ASubCuenta);
|
PagosController.Modificar(ARecibosCliente.Pagos, FechaPago, AIgnorarContabilidad, AIdSubCuenta, ASubCuenta);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRecibosClienteController.Nuevo: IBizRecibosCliente;
|
function TRecibosClienteController.Nuevo: IBizRecibosCliente;
|
||||||
|
|||||||
@ -46,7 +46,7 @@ object fEditorFechaPago: TfEditorFechaPago
|
|||||||
object eFechaPago: TcxDateEdit
|
object eFechaPago: TcxDateEdit
|
||||||
Left = 121
|
Left = 121
|
||||||
Top = 84
|
Top = 84
|
||||||
Properties.OnChange = eFechaPagoPropertiesChange
|
Properties.OnEditValueChanged = eFechaPagoPropertiesEditValueChanged
|
||||||
Style.LookAndFeel.Kind = lfStandard
|
Style.LookAndFeel.Kind = lfStandard
|
||||||
Style.LookAndFeel.NativeStyle = True
|
Style.LookAndFeel.NativeStyle = True
|
||||||
StyleDisabled.LookAndFeel.Kind = lfStandard
|
StyleDisabled.LookAndFeel.Kind = lfStandard
|
||||||
|
|||||||
@ -23,9 +23,9 @@ type
|
|||||||
bAceptar: TButton;
|
bAceptar: TButton;
|
||||||
bCancelar: TButton;
|
bCancelar: TButton;
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
procedure eFechaPagoPropertiesChange(Sender: TObject);
|
|
||||||
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
|
procedure eFechaPagoPropertiesEditValueChanged(Sender: TObject);
|
||||||
|
|
||||||
private
|
private
|
||||||
FFechaPago : TDateTime;
|
FFechaPago : TDateTime;
|
||||||
@ -63,7 +63,7 @@ begin
|
|||||||
frViewListaSubCuentas1.eContabilizar.Enabled := False;
|
frViewListaSubCuentas1.eContabilizar.Enabled := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorFechaPago.eFechaPagoPropertiesChange(Sender: TObject);
|
procedure TfEditorFechaPago.eFechaPagoPropertiesEditValueChanged(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
FechaPago := eFechaPago.Date;
|
FechaPago := eFechaPago.Date;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -239,8 +239,8 @@ procedure TfEditorReciboCliente.frViewPagosCliente1actModificarExecute(Sender: T
|
|||||||
var
|
var
|
||||||
AFechaPago: String;
|
AFechaPago: String;
|
||||||
AIgnorarContabilidad: Integer;
|
AIgnorarContabilidad: Integer;
|
||||||
ASubCuenta: Integer;
|
AIdSubCuenta: Integer;
|
||||||
|
ASubCuenta: String;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
@ -275,9 +275,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
AFechaPago := DateToStr(FechaPago);
|
AFechaPago := DateToStr(FechaPago);
|
||||||
AIgnorarContabilidad := IgnorarContabilidad;
|
AIgnorarContabilidad := IgnorarContabilidad;
|
||||||
ASubCuenta := IdSubcuenta;
|
AIdSubCuenta := IdSubcuenta;
|
||||||
|
ASubcuenta := frViewListaSubcuentas1.cbSubCuentas.Text;
|
||||||
if not SoloLectura then
|
if not SoloLectura then
|
||||||
FController.ModificarPago(Recibo, AFechaPago, AIgnorarContabilidad, ASubCuenta);
|
FController.ModificarPago(Recibo, AFechaPago, AIgnorarContabilidad, AIdSubCuenta);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
Release;
|
Release;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user