#397 No recupera la fecha del pago de los recibos si la modificamos y no coge bien la fecha cuendo la metemos manualmente
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@524 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
f39c3c3642
commit
5b4a3c1464
@ -32,8 +32,8 @@ uses
|
|||||||
type
|
type
|
||||||
IPagosProveedorController = interface(ISujeto)
|
IPagosProveedorController = interface(ISujeto)
|
||||||
['{4F907D80-B184-4557-BAB7-9FDA23260E64}']
|
['{4F907D80-B184-4557-BAB7-9FDA23260E64}']
|
||||||
function Anadir(APagosProveedor: IBizPagosProveedor; Const Fecha: String = ''; Const IgnorarContabilidad: Integer = 0; Const IdSubCuenta: Integer = 0): Boolean;
|
function Anadir(APagosProveedor: IBizPagosProveedor; Const Fecha: String = ''; Const IgnorarContabilidad: Integer = 0; Const IdSubCuenta: Integer = 0; Const SubCuenta: String = ''): Boolean;
|
||||||
procedure Modificar(APagosProveedor: IBizPagosProveedor; Const Fecha: String; Const IgnorarContabilidad: Integer; Const IdSubCuenta: Integer);
|
procedure Modificar(APagosProveedor: IBizPagosProveedor; Const Fecha: String; Const IgnorarContabilidad: Integer; Const IdSubCuenta: Integer; Const SubCuenta: String = '');
|
||||||
function Eliminar(APagoCliente : IBizPagosProveedor): Boolean;
|
function Eliminar(APagoCliente : IBizPagosProveedor): Boolean;
|
||||||
function EliminarTodo(APagossCliente : IBizPagosProveedor): Boolean;
|
function EliminarTodo(APagossCliente : IBizPagosProveedor): Boolean;
|
||||||
end;
|
end;
|
||||||
@ -46,8 +46,8 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create; virtual;
|
constructor Create; virtual;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
function Anadir(APagosProveedor: IBizPagosProveedor; Const Fecha: String = ''; Const IgnorarContabilidad: Integer = 0; Const IdSubCuenta: Integer = 0): Boolean;
|
function Anadir(APagosProveedor: IBizPagosProveedor; Const Fecha: String = ''; Const IgnorarContabilidad: Integer = 0; Const IdSubCuenta: Integer = 0; Const SubCuenta: String = ''): Boolean;
|
||||||
procedure Modificar(APagosProveedor: IBizPagosProveedor; Const Fecha: String; Const IgnorarContabilidad: Integer; Const IdSubCuenta: Integer);
|
procedure Modificar(APagosProveedor: IBizPagosProveedor; Const Fecha: String; Const IgnorarContabilidad: Integer; Const IdSubCuenta: Integer; Const SubCuenta: String = '');
|
||||||
function Eliminar(APagoCliente : IBizPagosProveedor): Boolean;
|
function Eliminar(APagoCliente : IBizPagosProveedor): Boolean;
|
||||||
function EliminarTodo(APagosProveedor : IBizPagosProveedor): Boolean;
|
function EliminarTodo(APagosProveedor : IBizPagosProveedor): Boolean;
|
||||||
end;
|
end;
|
||||||
@ -62,7 +62,7 @@ uses
|
|||||||
|
|
||||||
{ TPagosProveedorController }
|
{ TPagosProveedorController }
|
||||||
|
|
||||||
function TPagosProveedorController.Anadir(APagosProveedor: IBizPagosProveedor; Const Fecha: String = ''; Const IgnorarContabilidad: Integer = 0; Const IdSubCuenta: Integer = 0): Boolean;
|
function TPagosProveedorController.Anadir(APagosProveedor: IBizPagosProveedor; Const Fecha: String = ''; Const IgnorarContabilidad: Integer = 0; Const IdSubCuenta: Integer = 0; Const SubCuenta: String = ''): Boolean;
|
||||||
{ Si el pago introducido es un pago y no una devolución devolvemos true en caso de ser
|
{ Si el pago introducido es un pago y no una devolución devolvemos true en caso de ser
|
||||||
una devolución devolvemos false}
|
una devolución devolvemos false}
|
||||||
begin
|
begin
|
||||||
@ -80,6 +80,7 @@ begin
|
|||||||
|
|
||||||
APagosProveedor.IGNORAR_CONTABILIDAD := IgnorarContabilidad;
|
APagosProveedor.IGNORAR_CONTABILIDAD := IgnorarContabilidad;
|
||||||
APagosProveedor.CUENTA := IntToStr(IdSubCuenta);
|
APagosProveedor.CUENTA := IntToStr(IdSubCuenta);
|
||||||
|
APagosProveedor.SUBCUENTA := SubCuenta;
|
||||||
|
|
||||||
Result := (APagosProveedor.TIPO = CTE_PAGO);
|
Result := (APagosProveedor.TIPO = CTE_PAGO);
|
||||||
APagosProveedor.Post;
|
APagosProveedor.Post;
|
||||||
@ -144,12 +145,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TPagosProveedorController.Modificar(APagosProveedor: IBizPagosProveedor; const Fecha: String; Const IgnorarContabilidad: Integer; Const IdSubCuenta: Integer);
|
procedure TPagosProveedorController.Modificar(APagosProveedor: IBizPagosProveedor; const Fecha: String; Const IgnorarContabilidad: Integer; Const IdSubCuenta: Integer; Const SubCuenta: String = '');
|
||||||
begin
|
begin
|
||||||
APagosProveedor.DataTable.Edit;
|
APagosProveedor.DataTable.Edit;
|
||||||
APagosProveedor.FECHA_PAGO := StrToDate(Fecha);
|
APagosProveedor.FECHA_PAGO := StrToDate(Fecha);
|
||||||
APagosProveedor.IGNORAR_CONTABILIDAD := IgnorarContabilidad;
|
APagosProveedor.IGNORAR_CONTABILIDAD := IgnorarContabilidad;
|
||||||
APagosProveedor.CUENTA := IntToStr(IdSubCuenta);
|
APagosProveedor.CUENTA := IntToStr(IdSubCuenta);
|
||||||
|
APagosProveedor.SUBCUENTA := SubCuenta;
|
||||||
APagosProveedor.DataTable.Post;
|
APagosProveedor.DataTable.Post;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -42,8 +42,8 @@ type
|
|||||||
property PagosController: IPagosProveedorController read GetPagosController write SetPagosController;
|
property PagosController: IPagosProveedorController read GetPagosController write SetPagosController;
|
||||||
|
|
||||||
procedure Anadir(ARecibosProveedor : IBizRecibosProveedor);
|
procedure Anadir(ARecibosProveedor : IBizRecibosProveedor);
|
||||||
function AnadirPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad: Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
function AnadirPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad: Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String = ''): Boolean;
|
||||||
procedure ModificarPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0);
|
procedure ModificarPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String = '');
|
||||||
function Eliminar(ARecibosProveedor : IBizRecibosProveedor; AllItems: Boolean = false): Boolean;
|
function Eliminar(ARecibosProveedor : IBizRecibosProveedor; AllItems: Boolean = false): Boolean;
|
||||||
function EliminarPago(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
function EliminarPago(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
||||||
function EliminarTodo(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
function EliminarTodo(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
||||||
@ -114,8 +114,8 @@ type
|
|||||||
|
|
||||||
procedure RecuperarProveedor(AReciboProveedor : IBizRecibosProveedor);
|
procedure RecuperarProveedor(AReciboProveedor : IBizRecibosProveedor);
|
||||||
procedure Anadir(ARecibosProveedor : IBizRecibosProveedor);
|
procedure Anadir(ARecibosProveedor : IBizRecibosProveedor);
|
||||||
function AnadirPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad: Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
function AnadirPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad: Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String = ''): Boolean;
|
||||||
procedure ModificarPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0);
|
procedure ModificarPago(ARecibosProveedor : IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String = '');
|
||||||
function Eliminar(ARecibosProveedor : IBizRecibosProveedor; AllItems: Boolean = false): Boolean;
|
function Eliminar(ARecibosProveedor : IBizRecibosProveedor; AllItems: Boolean = false): Boolean;
|
||||||
function EliminarPago(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
function EliminarPago(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
||||||
function EliminarTodo(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
function EliminarTodo(ARecibosProveedor : IBizRecibosProveedor): Boolean;
|
||||||
@ -172,7 +172,7 @@ begin
|
|||||||
ARecibosProveedor.Insert;
|
ARecibosProveedor.Insert;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRecibosProveedorController.AnadirPago(ARecibosProveedor: IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad: Integer = 1; ASubCuenta: Integer = 0): Boolean;
|
function TRecibosProveedorController.AnadirPago(ARecibosProveedor: IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad: Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String = ''): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ begin
|
|||||||
|
|
||||||
|
|
||||||
//Finalmente añadimos el pago (pago o devolucion)
|
//Finalmente añadimos el pago (pago o devolucion)
|
||||||
if PagosController.Anadir(ARecibosProveedor.Pagos, FechaPago, AIgnorarContabilidad, ASubCuenta) then
|
if PagosController.Anadir(ARecibosProveedor.Pagos, FechaPago, AIgnorarContabilidad, AIdSubCuenta, ASubCuenta) then
|
||||||
begin
|
begin
|
||||||
ARecibosProveedor.Edit;
|
ARecibosProveedor.Edit;
|
||||||
ARecibosProveedor.SITUACION := CTE_PAGADO;
|
ARecibosProveedor.SITUACION := CTE_PAGADO;
|
||||||
@ -841,10 +841,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRecibosProveedorController.ModificarPago(ARecibosProveedor: IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; ASubCuenta: Integer = 0);
|
procedure TRecibosProveedorController.ModificarPago(ARecibosProveedor: IBizRecibosProveedor; FechaPago: String =''; AIgnorarContabilidad : Integer = 1; AIdSubCuenta: Integer = 0; ASubCuenta: String = '');
|
||||||
begin
|
begin
|
||||||
if Length(FechaPago) > 0 then
|
if Length(FechaPago) > 0 then
|
||||||
PagosController.Modificar(ARecibosProveedor.Pagos, FechaPago, AIgnorarContabilidad, ASubCuenta);
|
PagosController.Modificar(ARecibosProveedor.Pagos, FechaPago, AIgnorarContabilidad, AIdSubCuenta, ASubCuenta);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRecibosProveedorController.Nuevo: IBizRecibosProveedor;
|
function TRecibosProveedorController.Nuevo: IBizRecibosProveedor;
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
<Projects Include="..\..\Cliente\FactuGES.dproj" />
|
<Projects Include="..\..\Cliente\FactuGES.dproj" />
|
||||||
<Projects Include="..\..\GUIBase\GUIBase.dproj" />
|
<Projects Include="..\..\GUIBase\GUIBase.dproj" />
|
||||||
<Projects Include="..\..\Servidor\FactuGES_Server.dproj" />
|
<Projects Include="..\..\Servidor\FactuGES_Server.dproj" />
|
||||||
|
<Projects Include="..\Contabilidad\Views\Contabilidad_view.dproj" />
|
||||||
<Projects Include="..\Contactos\Views\Contactos_view.dproj" />
|
<Projects Include="..\Contactos\Views\Contactos_view.dproj" />
|
||||||
<Projects Include="Controller\RecibosProveedor_controller.dproj" />
|
<Projects Include="Controller\RecibosProveedor_controller.dproj" />
|
||||||
<Projects Include="Data\RecibosProveedor_data.dproj" />
|
<Projects Include="Data\RecibosProveedor_data.dproj" />
|
||||||
@ -58,6 +59,15 @@
|
|||||||
<Target Name="Contactos_view:Make">
|
<Target Name="Contactos_view:Make">
|
||||||
<MSBuild Projects="..\Contactos\Views\Contactos_view.dproj" Targets="Make" />
|
<MSBuild Projects="..\Contactos\Views\Contactos_view.dproj" Targets="Make" />
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target Name="Contabilidad_view">
|
||||||
|
<MSBuild Projects="..\Contabilidad\Views\Contabilidad_view.dproj" Targets="" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="Contabilidad_view:Clean">
|
||||||
|
<MSBuild Projects="..\Contabilidad\Views\Contabilidad_view.dproj" Targets="Clean" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="Contabilidad_view:Make">
|
||||||
|
<MSBuild Projects="..\Contabilidad\Views\Contabilidad_view.dproj" Targets="Make" />
|
||||||
|
</Target>
|
||||||
<Target Name="RecibosProveedor_model">
|
<Target Name="RecibosProveedor_model">
|
||||||
<MSBuild Projects="Model\RecibosProveedor_model.dproj" Targets="" />
|
<MSBuild Projects="Model\RecibosProveedor_model.dproj" Targets="" />
|
||||||
</Target>
|
</Target>
|
||||||
@ -122,13 +132,13 @@
|
|||||||
<MSBuild Projects="..\..\Servidor\FactuGES_Server.dproj" Targets="Make" />
|
<MSBuild Projects="..\..\Servidor\FactuGES_Server.dproj" Targets="Make" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Build">
|
<Target Name="Build">
|
||||||
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_view;RecibosProveedor_model;RecibosProveedor_data;RecibosProveedor_controller;RecibosProveedor_view;RecibosProveedor_plugin;FactuGES;FactuGES_Server" />
|
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_view;Contabilidad_view;RecibosProveedor_model;RecibosProveedor_data;RecibosProveedor_controller;RecibosProveedor_view;RecibosProveedor_plugin;FactuGES;FactuGES_Server" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Clean">
|
<Target Name="Clean">
|
||||||
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_view:Clean;RecibosProveedor_model:Clean;RecibosProveedor_data:Clean;RecibosProveedor_controller:Clean;RecibosProveedor_view:Clean;RecibosProveedor_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean" />
|
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_view:Clean;Contabilidad_view:Clean;RecibosProveedor_model:Clean;RecibosProveedor_data:Clean;RecibosProveedor_controller:Clean;RecibosProveedor_view:Clean;RecibosProveedor_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="Make">
|
<Target Name="Make">
|
||||||
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_view:Make;RecibosProveedor_model:Make;RecibosProveedor_data:Make;RecibosProveedor_controller:Make;RecibosProveedor_view:Make;RecibosProveedor_plugin:Make;FactuGES:Make;FactuGES_Server:Make" />
|
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_view:Make;Contabilidad_view:Make;RecibosProveedor_model:Make;RecibosProveedor_data:Make;RecibosProveedor_controller:Make;RecibosProveedor_view:Make;RecibosProveedor_plugin:Make;FactuGES:Make;FactuGES_Server:Make" />
|
||||||
</Target>
|
</Target>
|
||||||
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
||||||
</Project>
|
</Project>
|
||||||
@ -46,7 +46,7 @@ object fEditorFechaPagoProveedor: TfEditorFechaPagoProveedor
|
|||||||
object eFechaPago: TcxDateEdit
|
object eFechaPago: TcxDateEdit
|
||||||
Left = 129
|
Left = 129
|
||||||
Top = 80
|
Top = 80
|
||||||
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
|
||||||
@ -65,8 +65,6 @@ object fEditorFechaPagoProveedor: TfEditorFechaPagoProveedor
|
|||||||
Height = 41
|
Height = 41
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
ExplicitTop = 152
|
|
||||||
ExplicitWidth = 510
|
|
||||||
object bAceptar: TButton
|
object bAceptar: TButton
|
||||||
Left = 368
|
Left = 368
|
||||||
Top = 6
|
Top = 6
|
||||||
@ -100,11 +98,12 @@ object fEditorFechaPagoProveedor: TfEditorFechaPagoProveedor
|
|||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
ReadOnly = False
|
ReadOnly = False
|
||||||
ExplicitTop = 166
|
ExplicitTop = 136
|
||||||
ExplicitWidth = 563
|
ExplicitWidth = 563
|
||||||
ExplicitHeight = 40
|
ExplicitHeight = 40
|
||||||
inherited dxLayoutControl1: TdxLayoutControl
|
inherited dxLayoutControl1: TdxLayoutControl
|
||||||
Width = 563
|
Width = 563
|
||||||
|
ExplicitWidth = 563
|
||||||
inherited cbSubCuentas: TcxComboBox
|
inherited cbSubCuentas: TcxComboBox
|
||||||
Left = 128
|
Left = 128
|
||||||
Style.LookAndFeel.SkinName = ''
|
Style.LookAndFeel.SkinName = ''
|
||||||
@ -144,7 +143,6 @@ object fEditorFechaPagoProveedor: TfEditorFechaPagoProveedor
|
|||||||
ParentBackground = False
|
ParentBackground = False
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
VerticalAlignment = taAlignTop
|
VerticalAlignment = taAlignTop
|
||||||
ExplicitWidth = 560
|
|
||||||
object lbComentario: TLabel
|
object lbComentario: TLabel
|
||||||
AlignWithMargins = True
|
AlignWithMargins = True
|
||||||
Left = 6
|
Left = 6
|
||||||
|
|||||||
@ -22,9 +22,9 @@ type
|
|||||||
lbComentario: TLabel;
|
lbComentario: TLabel;
|
||||||
Label3: TLabel;
|
Label3: TLabel;
|
||||||
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;
|
||||||
@ -61,7 +61,7 @@ begin
|
|||||||
frViewListaSubCuentas1.eContabilizar.Enabled := False;
|
frViewListaSubCuentas1.eContabilizar.Enabled := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorFechaPagoProveedor.eFechaPagoPropertiesChange(Sender: TObject);
|
procedure TfEditorFechaPagoProveedor.eFechaPagoPropertiesEditValueChanged(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
FechaPago := eFechaPago.Date;
|
FechaPago := eFechaPago.Date;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -94,57 +94,101 @@ inherited fEditorReciboProveedor: TfEditorReciboProveedor
|
|||||||
677
|
677
|
||||||
295)
|
295)
|
||||||
inherited eReferencia: TcxDBTextEdit
|
inherited eReferencia: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
Width = 112
|
Width = 112
|
||||||
end
|
end
|
||||||
inherited eSituacion: TcxDBTextEdit
|
inherited eSituacion: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
Width = 112
|
Width = 112
|
||||||
end
|
end
|
||||||
inherited edtFechaVencimiento: TcxDBDateEdit
|
inherited edtFechaVencimiento: TcxDBDateEdit
|
||||||
Left = 228
|
Left = 228
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 228
|
ExplicitLeft = 228
|
||||||
ExplicitWidth = 20
|
ExplicitWidth = 20
|
||||||
Width = 20
|
Width = 20
|
||||||
end
|
end
|
||||||
inherited eFechaEmision: TcxDBTextEdit
|
inherited eFechaEmision: TcxDBTextEdit
|
||||||
Left = 384
|
Left = 384
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 384
|
ExplicitLeft = 384
|
||||||
ExplicitWidth = 255
|
ExplicitWidth = 255
|
||||||
Width = 255
|
Width = 255
|
||||||
end
|
end
|
||||||
inherited eImporteTotal: TcxDBCurrencyEdit
|
inherited eImporteTotal: TcxDBCurrencyEdit
|
||||||
Left = 384
|
Left = 384
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
Style.IsFontAssigned = True
|
Style.IsFontAssigned = True
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 384
|
ExplicitLeft = 384
|
||||||
ExplicitWidth = 255
|
ExplicitWidth = 255
|
||||||
Width = 255
|
Width = 255
|
||||||
end
|
end
|
||||||
inherited eNombreCliente: TcxDBTextEdit
|
inherited eNombreCliente: TcxDBTextEdit
|
||||||
Left = 384
|
Left = 384
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 384
|
ExplicitLeft = 384
|
||||||
ExplicitWidth = 255
|
ExplicitWidth = 255
|
||||||
Width = 255
|
Width = 255
|
||||||
end
|
end
|
||||||
inherited eRemesa: TcxDBTextEdit
|
inherited eRemesa: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
Width = 112
|
Width = 112
|
||||||
end
|
end
|
||||||
inherited edtFechaEmision: TcxDBDateEdit
|
inherited edtFechaEmision: TcxDBDateEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 20
|
ExplicitWidth = 20
|
||||||
Width = 20
|
Width = 20
|
||||||
end
|
end
|
||||||
inherited eReferenciaProveedor: TcxDBTextEdit
|
inherited eReferenciaProveedor: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
Width = 112
|
Width = 112
|
||||||
end
|
end
|
||||||
inherited rReferenciaFacturaProv: TcxDBTextEdit
|
inherited rReferenciaFacturaProv: TcxDBTextEdit
|
||||||
Left = 384
|
Left = 384
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 384
|
ExplicitLeft = 384
|
||||||
ExplicitWidth = 255
|
ExplicitWidth = 255
|
||||||
Width = 255
|
Width = 255
|
||||||
end
|
end
|
||||||
inherited rRefReciboCompensado: TcxDBTextEdit
|
inherited rRefReciboCompensado: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
Width = 112
|
Width = 112
|
||||||
end
|
end
|
||||||
@ -155,17 +199,29 @@ inherited fEditorReciboProveedor: TfEditorReciboProveedor
|
|||||||
Width = 112
|
Width = 112
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
inherited cbTienda: TcxComboBox
|
inherited cbTienda: TcxComboBox
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 92
|
ExplicitWidth = 92
|
||||||
Width = 92
|
Width = 92
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited eDescripcion: TcxDBTextEdit
|
inherited eDescripcion: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 112
|
ExplicitWidth = 112
|
||||||
Width = 112
|
Width = 112
|
||||||
end
|
end
|
||||||
inherited eNifCif: TcxDBTextEdit
|
inherited eNifCif: TcxDBTextEdit
|
||||||
Left = 384
|
Left = 384
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 384
|
ExplicitLeft = 384
|
||||||
ExplicitWidth = 255
|
ExplicitWidth = 255
|
||||||
Width = 255
|
Width = 255
|
||||||
@ -184,32 +240,56 @@ inherited fEditorReciboProveedor: TfEditorReciboProveedor
|
|||||||
end
|
end
|
||||||
inherited edtlNombre: TcxDBTextEdit
|
inherited edtlNombre: TcxDBTextEdit
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 283
|
ExplicitWidth = 283
|
||||||
Width = 283
|
Width = 283
|
||||||
end
|
end
|
||||||
inherited edtNIFCIF: TcxDBTextEdit
|
inherited edtNIFCIF: TcxDBTextEdit
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 283
|
ExplicitWidth = 283
|
||||||
Width = 283
|
Width = 283
|
||||||
end
|
end
|
||||||
inherited edtCalle: TcxDBTextEdit
|
inherited edtCalle: TcxDBTextEdit
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 283
|
ExplicitWidth = 283
|
||||||
Width = 283
|
Width = 283
|
||||||
end
|
end
|
||||||
inherited edtPoblacion: TcxDBTextEdit
|
inherited edtPoblacion: TcxDBTextEdit
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 165
|
ExplicitWidth = 165
|
||||||
Width = 165
|
Width = 165
|
||||||
end
|
end
|
||||||
inherited edtProvincia: TcxDBTextEdit
|
inherited edtProvincia: TcxDBTextEdit
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 283
|
ExplicitWidth = 283
|
||||||
Width = 283
|
Width = 283
|
||||||
end
|
end
|
||||||
inherited edtCodigoPostal: TcxDBTextEdit
|
inherited edtCodigoPostal: TcxDBTextEdit
|
||||||
Left = 282
|
Left = 282
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 282
|
ExplicitLeft = 282
|
||||||
end
|
end
|
||||||
inherited Button3: TBitBtn
|
inherited Button3: TBitBtn
|
||||||
@ -217,6 +297,10 @@ inherited fEditorReciboProveedor: TfEditorReciboProveedor
|
|||||||
ExplicitLeft = 166
|
ExplicitLeft = 166
|
||||||
end
|
end
|
||||||
inherited cxDBTextEdit1: TcxDBTextEdit
|
inherited cxDBTextEdit1: TcxDBTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 283
|
ExplicitWidth = 283
|
||||||
Width = 283
|
Width = 283
|
||||||
end
|
end
|
||||||
@ -229,6 +313,8 @@ inherited fEditorReciboProveedor: TfEditorReciboProveedor
|
|||||||
ExplicitHeight = 150
|
ExplicitHeight = 150
|
||||||
inherited memObservaciones: TcxDBMemo
|
inherited memObservaciones: TcxDBMemo
|
||||||
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
DataBinding.DataSource = frViewReciboProveedor1.DADataSource
|
||||||
|
ExplicitWidth = 226
|
||||||
|
ExplicitHeight = 129
|
||||||
Height = 150
|
Height = 150
|
||||||
Width = 521
|
Width = 521
|
||||||
end
|
end
|
||||||
|
|||||||
@ -142,7 +142,8 @@ procedure TfEditorReciboProveedor.frViewPagosProveedor1actAnadirExecute(Sender:
|
|||||||
var
|
var
|
||||||
AFechaPago: String;
|
AFechaPago: String;
|
||||||
AIgnorarContabilidad: Integer;
|
AIgnorarContabilidad: Integer;
|
||||||
ASubCuenta: Integer;
|
AIdSubCuenta: Integer;
|
||||||
|
ASubCuenta: String;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@ -152,19 +153,20 @@ begin
|
|||||||
begin
|
begin
|
||||||
with TfEditorFechaPagoProveedor.Create(Nil) do
|
with TfEditorFechaPagoProveedor.Create(Nil) do
|
||||||
begin
|
begin
|
||||||
|
|
||||||
//En el caso de que el proveedor del recibo no tenga aignada subcuenta contable el pago no podrá contabilizar
|
//En el caso de que el proveedor del recibo no tenga aignada subcuenta contable el pago no podrá contabilizar
|
||||||
if (Recibo.Proveedor.SubCuentas.ID < 1) then
|
if (Recibo.Proveedor.SubCuentas.ID < 1) then
|
||||||
begin
|
begin
|
||||||
IgnorarContabilidad := 1;
|
IgnorarContabilidad := 1;
|
||||||
DeshabilitarContabilidad;
|
DeshabilitarContabilidad;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if (ShowModal = mrOk) then
|
if (ShowModal = mrOk) then
|
||||||
begin
|
begin
|
||||||
AFechaPago := DateToStr(FechaPago);
|
AFechaPago := DateToStr(FechaPago);
|
||||||
AIgnorarContabilidad := IgnorarContabilidad;
|
AIgnorarContabilidad := IgnorarContabilidad;
|
||||||
ASubCuenta := IdSubcuenta;
|
AIdSubCuenta := IdSubcuenta;
|
||||||
|
ASubCuenta := frViewListaSubcuentas1.cbSubCuentas.Text;
|
||||||
Release;
|
Release;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -176,7 +178,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
FController.AnadirPago(Recibo, AFechaPago, AIgnorarContabilidad, ASubCuenta);
|
FController.AnadirPago(Recibo, AFechaPago, AIgnorarContabilidad, AIdSubCuenta, ASubCuenta);
|
||||||
|
|
||||||
//Solo podremos modificar el recibo si esta pendiente o devuelto
|
//Solo podremos modificar el recibo si esta pendiente o devuelto
|
||||||
if (Recibo.SITUACION = CTE_PAGADO) then
|
if (Recibo.SITUACION = CTE_PAGADO) then
|
||||||
@ -222,7 +224,8 @@ procedure TfEditorReciboProveedor.frViewPagosProveedor1actModificarExecute(Sende
|
|||||||
var
|
var
|
||||||
AFechaPago: String;
|
AFechaPago: String;
|
||||||
AIgnorarContabilidad: Integer;
|
AIgnorarContabilidad: Integer;
|
||||||
ASubCuenta: Integer;
|
AIdSubCuenta: Integer;
|
||||||
|
ASubCuenta: String;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@ -258,9 +261,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, ASubCuenta);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Release;
|
Release;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user