Cambios para arrglo en informe de comisiones, poder facturar y establecer fehca de recepción en albaranes de cliente y meter ref. de cliente de los albaranes en las facturas de cliente
git-svn-id: https://192.168.0.254/svn/Proyectos.LuisLeon_FactuGES/trunk@169 c93665c3-c93d-084d-9b98-7d5f4a9c3376
This commit is contained in:
parent
253826a910
commit
f349717bf4
@ -149,7 +149,7 @@
|
|||||||
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
||||||
<VersionInfo Name="MajorVer">2</VersionInfo>
|
<VersionInfo Name="MajorVer">2</VersionInfo>
|
||||||
<VersionInfo Name="MinorVer">3</VersionInfo>
|
<VersionInfo Name="MinorVer">3</VersionInfo>
|
||||||
<VersionInfo Name="Release">2</VersionInfo>
|
<VersionInfo Name="Release">3</VersionInfo>
|
||||||
<VersionInfo Name="Build">0</VersionInfo>
|
<VersionInfo Name="Build">0</VersionInfo>
|
||||||
<VersionInfo Name="Debug">False</VersionInfo>
|
<VersionInfo Name="Debug">False</VersionInfo>
|
||||||
<VersionInfo Name="PreRelease">False</VersionInfo>
|
<VersionInfo Name="PreRelease">False</VersionInfo>
|
||||||
@ -162,7 +162,7 @@
|
|||||||
<VersionInfoKeys>
|
<VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys>
|
<VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="FileVersion">2.3.2.0</VersionInfoKeys>
|
<VersionInfoKeys Name="FileVersion">2.3.3.0</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="InternalName">FactuGES</VersionInfoKeys>
|
<VersionInfoKeys Name="InternalName">FactuGES</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
||||||
|
|||||||
Binary file not shown.
@ -8,7 +8,9 @@
|
|||||||
<Option Name="GUID">{897CD5E4-3D47-418F-BD7A-AD0C0C4FDE6A}</Option>
|
<Option Name="GUID">{897CD5E4-3D47-418F-BD7A-AD0C0C4FDE6A}</Option>
|
||||||
</Option>
|
</Option>
|
||||||
</PersonalityInfo>
|
</PersonalityInfo>
|
||||||
<Default.Personality> <Projects>
|
<Default.Personality>
|
||||||
|
|
||||||
|
<Projects>
|
||||||
<Projects Name="DataAbstract_D10.bpl">DataAbstract_D10\DataAbstract_D10.bdsproj</Projects>
|
<Projects Name="DataAbstract_D10.bpl">DataAbstract_D10\DataAbstract_D10.bdsproj</Projects>
|
||||||
<Projects Name="Base.bpl">Base\Base.bdsproj</Projects>
|
<Projects Name="Base.bpl">Base\Base.bdsproj</Projects>
|
||||||
<Projects Name="ControllerBase.bpl">Base\ControllerBase\ControllerBase.bdsproj</Projects>
|
<Projects Name="ControllerBase.bpl">Base\ControllerBase\ControllerBase.bdsproj</Projects>
|
||||||
@ -85,14 +87,13 @@
|
|||||||
<Projects Name="AlbaranesProveedor_plugin.bpl">Modulos\Albaranes de proveedor\Plugin\AlbaranesProveedor_plugin.bdsproj</Projects>
|
<Projects Name="AlbaranesProveedor_plugin.bpl">Modulos\Albaranes de proveedor\Plugin\AlbaranesProveedor_plugin.bdsproj</Projects>
|
||||||
<Projects Name="FactuGES.exe">Cliente\FactuGES.bdsproj</Projects>
|
<Projects Name="FactuGES.exe">Cliente\FactuGES.bdsproj</Projects>
|
||||||
<Projects Name="FactuGES_Server.exe">Servidor\FactuGES_Server.bdsproj</Projects>
|
<Projects Name="FactuGES_Server.exe">Servidor\FactuGES_Server.bdsproj</Projects>
|
||||||
<Projects Name="PedProv_AlbProv_relation.bpl">Modulos\Relaciones\Pedidos de proveedor - Albaranes de proveedor\PedProv_AlbProv_relation.bdsproj</Projects>
|
<Projects Name="Comisiones_model.bpl">Modulos\Comisiones\Model\Comisiones_model.bdsproj</Projects>
|
||||||
|
<Projects Name="Comisiones_data.bpl">Modulos\Comisiones\Data\Comisiones_data.bdsproj</Projects>
|
||||||
|
<Projects Name="Comisiones_controller.bpl">Modulos\Comisiones\Controller\Comisiones_controller.bdsproj</Projects>
|
||||||
|
<Projects Name="Comisiones_view.bpl">Modulos\Comisiones\Views\Comisiones_view.bdsproj</Projects>
|
||||||
|
<Projects Name="Comisiones_plugin.bpl">Modulos\Comisiones\Plugin\Comisiones_plugin.bdsproj</Projects>
|
||||||
<Projects Name="AlbCli_FacCli_relation.bpl">Modulos\Relaciones\Albaranes de cliente - Facturas de cliente\AlbCli_FacCli_relation.bdsproj</Projects>
|
<Projects Name="AlbCli_FacCli_relation.bpl">Modulos\Relaciones\Albaranes de cliente - Facturas de cliente\AlbCli_FacCli_relation.bdsproj</Projects>
|
||||||
<Projects Name="FacturasProveedor_model.bpl">Modulos\Facturas de proveedor\Model\FacturasProveedor_model.bdsproj</Projects>
|
<Projects Name="Targets">DataAbstract_D10.bpl Base.bpl ControllerBase.bpl GUIBase.bpl Empresas_model.bpl Empresas_data.bpl Empresas_controller.bpl Usuarios.bpl Empresas_view.bpl Empresas_plugin.bpl TiposIVA_model.bpl TiposIVA_data.bpl TiposIVA_controller.bpl TiposIVA_view.bpl TiposIVA_plugin.bpl Contactos_model.bpl Contactos_data.bpl Contactos_controller.bpl Contactos_view.bpl Contactos_plugin.bpl Almacenes_model.bpl Almacenes_data.bpl Almacenes_controller.bpl Almacenes_view.bpl Almacenes_plugin.bpl Articulos_model.bpl Articulos_data.bpl Articulos_controller.bpl Articulos_view.bpl Articulos_plugin.bpl RecibosCliente_model.bpl RecibosCliente_data.bpl RecibosCliente_controller.bpl RecibosCliente_view.bpl RecibosCliente_plugin.bpl RemesasCliente_model.bpl RemesasCliente_data.bpl RemesasCliente_controller.bpl BancaElectronica_controller.bpl BancaElectronica_view.bpl RemesasCliente_view.bpl RemesasCliente_plugin.bpl PedidosCliente_model.bpl PedidosCliente_data.bpl PedidosCliente_controller.bpl AlbaranesCliente_model.bpl AlbaranesCliente_data.bpl AlbaranesCliente_controller.bpl FacturasCliente_model.bpl FacturasCliente_data.bpl FacturasCliente_controller.bpl PedidosProveedor_model.bpl PedidosProveedor_data.bpl PedidosProveedor_controller.bpl Inventario_model.bpl Inventario_data.bpl Inventario_controller.bpl AlbaranesProveedor_model.bpl AlbaranesProveedor_data.bpl AlbaranesProveedor_controller.bpl PedCli_PedProv_relation.bpl PedCli_AlbCli_relation.bpl PedidosCliente_view.bpl PedidosCliente_plugin.bpl AlbaranesCliente_view.bpl AlbaranesCliente_plugin.bpl FacturasCliente_view.bpl FacturasCliente_plugin.bpl Inventario_view.bpl Inventario_plugin.bpl PedidosProveedor_view.bpl PedidosProveedor_plugin.bpl AlbaranesProveedor_view.bpl AlbaranesProveedor_plugin.bpl FactuGES.exe FactuGES_Server.exe Comisiones_model.bpl Comisiones_data.bpl Comisiones_controller.bpl Comisiones_view.bpl Comisiones_plugin.bpl AlbCli_FacCli_relation.bpl</Projects>
|
||||||
<Projects Name="FacturasProveedor_data.bpl">Modulos\Facturas de proveedor\Data\FacturasProveedor_data.bdsproj</Projects>
|
|
||||||
<Projects Name="AlbProv_FacProv_relation.bpl">Modulos\Relaciones\Albaranes de proveedor - Facturas de proveedor\AlbProv_FacProv_relation.bdsproj</Projects>
|
|
||||||
<Projects Name="FacturasProveedor_controller.bpl">Modulos\Facturas de proveedor\Controller\FacturasProveedor_controller.bdsproj</Projects>
|
|
||||||
<Projects Name="FacturasProveedor_view.bpl">Modulos\Facturas de proveedor\Views\FacturasProveedor_view.bdsproj</Projects>
|
|
||||||
<Projects Name="Targets">DataAbstract_D10.bpl Base.bpl ControllerBase.bpl GUIBase.bpl Empresas_model.bpl Empresas_data.bpl Empresas_controller.bpl Usuarios.bpl Empresas_view.bpl Empresas_plugin.bpl TiposIVA_model.bpl TiposIVA_data.bpl TiposIVA_controller.bpl TiposIVA_view.bpl TiposIVA_plugin.bpl Contactos_model.bpl Contactos_data.bpl Contactos_controller.bpl Contactos_view.bpl Contactos_plugin.bpl Almacenes_model.bpl Almacenes_data.bpl Almacenes_controller.bpl Almacenes_view.bpl Almacenes_plugin.bpl Articulos_model.bpl Articulos_data.bpl Articulos_controller.bpl Articulos_view.bpl Articulos_plugin.bpl RecibosCliente_model.bpl RecibosCliente_data.bpl RecibosCliente_controller.bpl RecibosCliente_view.bpl RecibosCliente_plugin.bpl RemesasCliente_model.bpl RemesasCliente_data.bpl RemesasCliente_controller.bpl BancaElectronica_controller.bpl BancaElectronica_view.bpl RemesasCliente_view.bpl RemesasCliente_plugin.bpl PedidosCliente_model.bpl PedidosCliente_data.bpl PedidosCliente_controller.bpl AlbaranesCliente_model.bpl AlbaranesCliente_data.bpl AlbaranesCliente_controller.bpl FacturasCliente_model.bpl FacturasCliente_data.bpl FacturasCliente_controller.bpl PedidosProveedor_model.bpl PedidosProveedor_data.bpl PedidosProveedor_controller.bpl Inventario_model.bpl Inventario_data.bpl Inventario_controller.bpl AlbaranesProveedor_model.bpl AlbaranesProveedor_data.bpl AlbaranesProveedor_controller.bpl PedCli_PedProv_relation.bpl PedCli_AlbCli_relation.bpl PedidosCliente_view.bpl PedidosCliente_plugin.bpl AlbaranesCliente_view.bpl AlbaranesCliente_plugin.bpl FacturasCliente_view.bpl FacturasCliente_plugin.bpl Inventario_view.bpl Inventario_plugin.bpl PedidosProveedor_view.bpl PedidosProveedor_plugin.bpl AlbaranesProveedor_view.bpl AlbaranesProveedor_plugin.bpl FactuGES.exe FactuGES_Server.exe PedProv_AlbProv_relation.bpl AlbCli_FacCli_relation.bpl FacturasProveedor_model.bpl FacturasProveedor_data.bpl AlbProv_FacProv_relation.bpl FacturasProveedor_controller.bpl FacturasProveedor_view.bpl</Projects>
|
|
||||||
</Projects>
|
</Projects>
|
||||||
<Dependencies/>
|
<Dependencies/>
|
||||||
</Default.Personality>
|
</Default.Personality>
|
||||||
|
|||||||
@ -55,10 +55,14 @@ type
|
|||||||
AAlbaran: IBizAlbaranCliente);
|
AAlbaran: IBizAlbaranCliente);
|
||||||
procedure QuitarDireccionEnvio(AAlbaran: IBizAlbaranCliente);
|
procedure QuitarDireccionEnvio(AAlbaran: IBizAlbaranCliente);
|
||||||
procedure RecuperarCliente(AAlbaran: IBizAlbaranCliente);
|
procedure RecuperarCliente(AAlbaran: IBizAlbaranCliente);
|
||||||
|
|
||||||
function CambiarSituacion(AAlbaran : IBizAlbaranCliente;
|
function CambiarSituacion(AAlbaran : IBizAlbaranCliente;
|
||||||
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
||||||
AFechaRecibido : TDateTime = 0;
|
AFechaRecibido : TDateTime = 0;
|
||||||
DoPost: Boolean = True) : Boolean;
|
DoPost: Boolean = True) : Boolean;
|
||||||
|
function ValidarSituacion(ASituacion: String;
|
||||||
|
AFechaEnvio : TDateTime = 0;
|
||||||
|
AFechaRecibido : TDateTime = 0) : Boolean;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TAlbaranesClienteController = class(TObservador, IAlbaranesClienteController)
|
TAlbaranesClienteController = class(TObservador, IAlbaranesClienteController)
|
||||||
@ -83,10 +87,6 @@ type
|
|||||||
procedure FiltrarEmpresa(AAlbaran: IBizAlbaranCliente);
|
procedure FiltrarEmpresa(AAlbaran: IBizAlbaranCliente);
|
||||||
function _Vacio : IBizAlbaranCliente;
|
function _Vacio : IBizAlbaranCliente;
|
||||||
function ValidarAlbaran(AAlbaran: IBizAlbaranCliente): Boolean;
|
function ValidarAlbaran(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
function ValidarSituacion(ASituacion: String;
|
|
||||||
AFechaAlbaran : TDateTime;
|
|
||||||
var AFechaEnvio : TDateTime;
|
|
||||||
var AFechaRecibido : TDateTime) : Boolean;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
property ClienteController: IClientesController read GetClienteController write SetClienteController;
|
property ClienteController: IClientesController read GetClienteController write SetClienteController;
|
||||||
@ -128,6 +128,9 @@ type
|
|||||||
function EsModificable(AAlbaran: IBizAlbaranCliente): Boolean;
|
function EsModificable(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
function EsEliminable(AAlbaran: IBizAlbaranCliente): Boolean;
|
function EsEliminable(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
|
|
||||||
|
function ValidarSituacion(ASituacion: String;
|
||||||
|
AFechaEnvio : TDateTime = 0;
|
||||||
|
AFechaRecibido : TDateTime = 0) : Boolean;
|
||||||
function CambiarSituacion(AAlbaran : IBizAlbaranCliente;
|
function CambiarSituacion(AAlbaran : IBizAlbaranCliente;
|
||||||
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
|
||||||
AFechaRecibido : TDateTime = 0;
|
AFechaRecibido : TDateTime = 0;
|
||||||
@ -279,6 +282,10 @@ begin
|
|||||||
OpenBraket;
|
OpenBraket;
|
||||||
AddText(fld_AlbaranesClienteID_FACTURA + ' is null');
|
AddText(fld_AlbaranesClienteID_FACTURA + ' is null');
|
||||||
CloseBraket;
|
CloseBraket;
|
||||||
|
AddOperator(opAND);
|
||||||
|
OpenBraket;
|
||||||
|
AddText(fld_AlbaranesClienteFECHA_ENVIO + ' is not null');
|
||||||
|
CloseBraket;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
HideHourglassCursor;
|
HideHourglassCursor;
|
||||||
@ -298,8 +305,8 @@ begin
|
|||||||
AAlbaran.DataTable.Active := True;
|
AAlbaran.DataTable.Active := True;
|
||||||
|
|
||||||
// Validar la situación del albarán
|
// Validar la situación del albarán
|
||||||
if ValidarSituacion(ANuevaSituacion, AAlbaran.FECHA_ALBARAN, AFechaEnvio, AFechaRecibido) then
|
// if ValidarSituacion(ANuevaSituacion, AAlbaran.FECHA_ALBARAN, AFechaEnvio, AFechaRecibido) then
|
||||||
begin
|
// begin
|
||||||
ShowHourglassCursor;
|
ShowHourglassCursor;
|
||||||
AAlbaran.DataTable.DisableControls;
|
AAlbaran.DataTable.DisableControls;
|
||||||
try
|
try
|
||||||
@ -315,7 +322,7 @@ begin
|
|||||||
AAlbaran.DataTable.EnableControls;
|
AAlbaran.DataTable.EnableControls;
|
||||||
HideHourglassCursor;
|
HideHourglassCursor;
|
||||||
end;
|
end;
|
||||||
end;
|
// end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.CopiarDireccionEnvio(
|
procedure TAlbaranesClienteController.CopiarDireccionEnvio(
|
||||||
@ -501,24 +508,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteController.ValidarSituacion(ASituacion: String;
|
function TAlbaranesClienteController.ValidarSituacion(ASituacion: String;
|
||||||
AFechaAlbaran: TDateTime; var AFechaEnvio,
|
AFechaEnvio, AFechaRecibido: TDateTime): Boolean;
|
||||||
AFechaRecibido: TDateTime): Boolean;
|
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
if ASituacion = SITUACION_ALBARAN_PENDIENTE then
|
if (ASituacion = SITUACION_ALBARAN_ENVIADO) then
|
||||||
begin
|
begin
|
||||||
AFechaEnvio := 0;
|
|
||||||
AFechaRecibido := 0
|
|
||||||
end
|
|
||||||
else begin
|
|
||||||
if (ASituacion = SITUACION_ALBARAN_ENVIADO) then
|
|
||||||
begin
|
|
||||||
AFechaRecibido := 0;
|
|
||||||
if (EsFechaVacia(AFechaEnvio)) then
|
if (EsFechaVacia(AFechaEnvio)) then
|
||||||
raise Exception.Create('Hay que indicar la fecha de envío del albarán')
|
raise Exception.Create('Hay que indicar la fecha de envío del albarán')
|
||||||
end;
|
end
|
||||||
if (ASituacion = SITUACION_ALBARAN_SERVIDO) then
|
else if (ASituacion = SITUACION_ALBARAN_SERVIDO) then
|
||||||
begin
|
begin
|
||||||
if (EsFechaVacia(AFechaEnvio)) then
|
if (EsFechaVacia(AFechaEnvio)) then
|
||||||
raise Exception.Create('Hay que indicar la fecha de envío del albarán');
|
raise Exception.Create('Hay que indicar la fecha de envío del albarán');
|
||||||
if (EsFechaVacia(AFechaRecibido)) then
|
if (EsFechaVacia(AFechaRecibido)) then
|
||||||
@ -526,7 +525,6 @@ begin
|
|||||||
if (AFechaRecibido < AFechaEnvio) then
|
if (AFechaRecibido < AFechaEnvio) then
|
||||||
raise Exception.Create('La fecha de recepción y firma del albarán por parte '
|
raise Exception.Create('La fecha de recepción y firma del albarán por parte '
|
||||||
+ 'del cliente no puede ser anterior a la fecha de envio del material del albarán');
|
+ 'del cliente no puede ser anterior a la fecha de envio del material del albarán');
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -122,7 +122,8 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
try
|
try
|
||||||
FController.CambiarSituacion(FAlbaranes, SITUACION_ALBARAN_SERVIDO, FAlbaranes.FECHA_ENVIO, Now);
|
if FController.ValidarSituacion(SITUACION_ALBARAN_SERVIDO, FAlbaranes.FECHA_ENVIO, Now) then
|
||||||
|
FController.CambiarSituacion(FAlbaranes, SITUACION_ALBARAN_SERVIDO, FAlbaranes.FECHA_ENVIO, Now);
|
||||||
except
|
except
|
||||||
on E : Exception do
|
on E : Exception do
|
||||||
ShowErrorMessage('Error al cambiar la situación del albarán', E.Message, E);
|
ShowErrorMessage('Error al cambiar la situación del albarán', E.Message, E);
|
||||||
@ -182,6 +183,7 @@ begin
|
|||||||
(Sender as TAction).Enabled := HayDatos
|
(Sender as TAction).Enabled := HayDatos
|
||||||
and not (ViewGrid.NumSeleccionados > 1)
|
and not (ViewGrid.NumSeleccionados > 1)
|
||||||
and (FAlbaranes.REF_FACTURA = '')
|
and (FAlbaranes.REF_FACTURA = '')
|
||||||
|
and (FAlbaranes.SITUACION <> SITUACION_ALBARAN_PENDIENTE)
|
||||||
and ViewGrid.esSeleccionCeldaDatos;
|
and ViewGrid.esSeleccionCeldaDatos;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -215,7 +217,8 @@ begin
|
|||||||
if bCambiarEstado then
|
if bCambiarEstado then
|
||||||
begin
|
begin
|
||||||
try
|
try
|
||||||
FController.CambiarSituacion(FAlbaranes, SITUACION_ALBARAN_ENVIADO, Now);
|
if FController.ValidarSituacion(SITUACION_ALBARAN_ENVIADO, Now) then
|
||||||
|
FController.CambiarSituacion(FAlbaranes, SITUACION_ALBARAN_ENVIADO, Now);
|
||||||
{
|
{
|
||||||
if (ShowConfirmMessage('', 'Se ha realizado correctamente la salida del albarán de cliente. ¿Desea generar la factura de cliente correspondiente?') = IDYES) then
|
if (ShowConfirmMessage('', 'Se ha realizado correctamente la salida del albarán de cliente. ¿Desea generar la factura de cliente correspondiente?') = IDYES) then
|
||||||
begin
|
begin
|
||||||
|
|||||||
@ -1,7 +1,13 @@
|
|||||||
inherited fEditorComisionesPreview: TfEditorComisionesPreview
|
inherited fEditorComisionesPreview: TfEditorComisionesPreview
|
||||||
Caption = 'Previsualizar la factura'
|
Caption = 'Previsualizar la factura'
|
||||||
|
ExplicitWidth = 803
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
TextHeight = 13
|
TextHeight = 13
|
||||||
|
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||||
|
inherited Image1: TImage
|
||||||
|
Left = 768
|
||||||
|
end
|
||||||
|
end
|
||||||
object pnlFiltrar: TTBXDockablePanel [3]
|
object pnlFiltrar: TTBXDockablePanel [3]
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 102
|
Top = 102
|
||||||
|
|||||||
@ -76,9 +76,15 @@ begin
|
|||||||
try
|
try
|
||||||
AStream := FDataModule.GetReport(Null, False, edtFechaFiltro1.Text, edtFechaFiltro2.Text, cbAgentes.EditValue);
|
AStream := FDataModule.GetReport(Null, False, edtFechaFiltro1.Text, edtFechaFiltro2.Text, cbAgentes.EditValue);
|
||||||
try
|
try
|
||||||
|
//Para que refresque el editor que presenta el informe y no falle al aplicar un filtro y cambiar el numero de hojas del informe
|
||||||
|
actPrimeraPagina.Execute;
|
||||||
|
|
||||||
Report.PreviewPages.Clear;
|
Report.PreviewPages.Clear;
|
||||||
LoadFromStream(AStream);
|
LoadFromStream(AStream);
|
||||||
Report.Preview.Refresh;
|
Report.Preview.Refresh;
|
||||||
|
|
||||||
|
//Para que refresque el editor que presenta el informe y no falle al aplicar un filtro y cambiar el numero de hojas del informe
|
||||||
|
actAnchoPagina.Execute;
|
||||||
finally
|
finally
|
||||||
AStream.Free;
|
AStream.Free;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -305,7 +305,7 @@ begin
|
|||||||
with AFacturaActual.Detalles do
|
with AFacturaActual.Detalles do
|
||||||
begin
|
begin
|
||||||
Edit;
|
Edit;
|
||||||
CONCEPTO := 'Albarán ' + AListaAlbaranes.REFERENCIA + ' del ' + DateToStr(AListaAlbaranes.FECHA_ALBARAN);
|
CONCEPTO := 'Albarán ' + AListaAlbaranes.REFERENCIA + ' (Ref.Cliente: ' + AListaAlbaranes.REFERENCIA_CLIENTE + ') del ' + DateToStr(AListaAlbaranes.FECHA_ALBARAN);
|
||||||
Post;
|
Post;
|
||||||
end;
|
end;
|
||||||
// Añado el contenido del albarán
|
// Añado el contenido del albarán
|
||||||
@ -342,9 +342,10 @@ begin
|
|||||||
// Guardo la factura que acabo de generar o editar
|
// Guardo la factura que acabo de generar o editar
|
||||||
AFacturaActual.CalcularImporteTotal;
|
AFacturaActual.CalcularImporteTotal;
|
||||||
Self.Guardar(AFacturaActual);
|
Self.Guardar(AFacturaActual);
|
||||||
// Asocio la factura con el albarán
|
// Asocio la factura con el albarán, y la fecha de la misma a la recepción del mismo
|
||||||
AListaAlbaranes.Edit;
|
AListaAlbaranes.Edit;
|
||||||
AListaAlbaranes.ID_FACTURA := AFacturaActual.ID;
|
AListaAlbaranes.ID_FACTURA := AFacturaActual.ID;
|
||||||
|
AListaAlbaranes.FECHA_RECEPCION := AFacturaActual.FECHA_FACTURA;
|
||||||
AListaAlbaranes.Post;
|
AListaAlbaranes.Post;
|
||||||
AAlbaranesController.Guardar(AListaAlbaranes);
|
AAlbaranesController.Guardar(AListaAlbaranes);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,6 @@ inherited fEditorFacturasCliente: TfEditorFacturasCliente
|
|||||||
Caption = 'Lista de facturas de cliente'
|
Caption = 'Lista de facturas de cliente'
|
||||||
ClientHeight = 666
|
ClientHeight = 666
|
||||||
ClientWidth = 640
|
ClientWidth = 640
|
||||||
ExplicitTop = -78
|
|
||||||
ExplicitWidth = 648
|
ExplicitWidth = 648
|
||||||
ExplicitHeight = 700
|
ExplicitHeight = 700
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
@ -122,9 +121,19 @@ inherited fEditorFacturasCliente: TfEditorFacturasCliente
|
|||||||
inherited dxLayoutControl1: TdxLayoutControl
|
inherited dxLayoutControl1: TdxLayoutControl
|
||||||
Width = 640
|
Width = 640
|
||||||
ExplicitWidth = 640
|
ExplicitWidth = 640
|
||||||
|
inherited txtFiltroTodo: TcxTextEdit
|
||||||
|
ExplicitWidth = 273
|
||||||
|
Width = 273
|
||||||
|
end
|
||||||
|
inherited edtFechaIniFiltro: TcxDateEdit
|
||||||
|
ExplicitWidth = 121
|
||||||
|
Width = 121
|
||||||
|
end
|
||||||
inherited edtFechaFinFiltro: TcxDateEdit
|
inherited edtFechaFinFiltro: TcxDateEdit
|
||||||
Left = 296
|
Left = 295
|
||||||
ExplicitLeft = 296
|
ExplicitLeft = 295
|
||||||
|
ExplicitWidth = 244
|
||||||
|
Width = 244
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
|
|||||||
@ -302,7 +302,7 @@ begin
|
|||||||
GenerarFacturaCli;
|
GenerarFacturaCli;
|
||||||
actRefrescar.Execute;
|
actRefrescar.Execute;
|
||||||
end;
|
end;
|
||||||
100 : begin // Albaran nuevo vacio
|
100 : begin // Factura nueva vacia
|
||||||
if FController.Anadir(Facturas) then
|
if FController.Anadir(Facturas) then
|
||||||
FController.Ver(Facturas);
|
FController.Ver(Facturas);
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -211,8 +211,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
dmGenerarFacturasCli.JsListaFacturasGeneradas.Execute;
|
dmGenerarFacturasCli.JsListaFacturasGeneradas.Execute;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if Assigned(AAlbaranesClienteController) then
|
if Assigned(AAlbaranesClienteController) then
|
||||||
Finalizar;
|
Finalizar;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<BorlandProject>
|
<BorlandProject>
|
||||||
<PersonalityInfo>
|
<PersonalityInfo>
|
||||||
<Option>
|
<Option>
|
||||||
@ -154,7 +154,7 @@
|
|||||||
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
||||||
<VersionInfo Name="MajorVer">2</VersionInfo>
|
<VersionInfo Name="MajorVer">2</VersionInfo>
|
||||||
<VersionInfo Name="MinorVer">3</VersionInfo>
|
<VersionInfo Name="MinorVer">3</VersionInfo>
|
||||||
<VersionInfo Name="Release">2</VersionInfo>
|
<VersionInfo Name="Release">3</VersionInfo>
|
||||||
<VersionInfo Name="Build">0</VersionInfo>
|
<VersionInfo Name="Build">0</VersionInfo>
|
||||||
<VersionInfo Name="Debug">False</VersionInfo>
|
<VersionInfo Name="Debug">False</VersionInfo>
|
||||||
<VersionInfo Name="PreRelease">False</VersionInfo>
|
<VersionInfo Name="PreRelease">False</VersionInfo>
|
||||||
@ -167,21 +167,18 @@
|
|||||||
<VersionInfoKeys>
|
<VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="CompanyName"></VersionInfoKeys>
|
<VersionInfoKeys Name="CompanyName"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="FileVersion">2.3.2.0</VersionInfoKeys>
|
<VersionInfoKeys Name="FileVersion">2.3.3.0</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="InternalName"></VersionInfoKeys>
|
<VersionInfoKeys Name="InternalName"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
|
<VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="ProductName"></VersionInfoKeys>
|
<VersionInfoKeys Name="ProductName"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="ProductVersion">2.3.1.0</VersionInfoKeys>
|
<VersionInfoKeys Name="ProductVersion">2.3.2.0</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="CompileDate">lunes, 08 de octubre de 2007 20:25</VersionInfoKeys></VersionInfoKeys>
|
<VersionInfoKeys Name="CompileDate">miércoles, 17 de octubre de 2007 14:01</VersionInfoKeys></VersionInfoKeys>
|
||||||
<Excluded_Packages>
|
<Excluded_Packages><Excluded_Packages Name="C:\Archivos de programa\RemObjects Software\Pascal Script\Dcu\D10\PascalScript_RO_D10.bpl">RemObjects Pascal Script - RemObjects SDK 3.0 Integration</Excluded_Packages></Excluded_Packages></Delphi.Personality>
|
||||||
<Excluded_Packages Name="C:\Archivos de programa\RemObjects Software\Pascal Script\Dcu\D10\PascalScript_RO_D10.bpl">RemObjects Pascal Script - RemObjects SDK 3.0 Integration</Excluded_Packages>
|
|
||||||
</Excluded_Packages>
|
|
||||||
</Delphi.Personality>
|
|
||||||
<ModelSupport>False</ModelSupport>
|
<ModelSupport>False</ModelSupport>
|
||||||
<!-- EurekaLog First Line
|
<!-- EurekaLog First Line
|
||||||
[Exception Log]
|
[Exception Log]
|
||||||
EurekaLog Version=519
|
EurekaLog Version=519
|
||||||
Activate=0
|
Activate=0
|
||||||
|
|||||||
@ -14,7 +14,7 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "FileVersion", "2.3.2.0\0"
|
VALUE "FileVersion", "2.3.2.0\0"
|
||||||
VALUE "ProductVersion", "2.3.2.0\0"
|
VALUE "ProductVersion", "2.3.2.0\0"
|
||||||
VALUE "CompileDate", "miércoles, 17 de octubre de 2007 14:01\0"
|
VALUE "CompileDate", "jueves, 25 de octubre de 2007 17:21\0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user