Error en eliminar ordenes de devolucion de cliente y quitar asignación de almacen en albaranes
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@416 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
5fb952f00f
commit
972ebedea3
@ -9,6 +9,7 @@
|
||||
<Projects Include="..\..\Cliente\FactuGES.dproj" />
|
||||
<Projects Include="..\..\GUIBase\GUIBase.dproj" />
|
||||
<Projects Include="..\..\Servidor\FactuGES_Server.dproj" />
|
||||
<Projects Include="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" />
|
||||
<Projects Include="..\Articulos\Controller\Articulos_controller.dproj" />
|
||||
<Projects Include="..\Articulos\Views\Articulos_view.dproj" />
|
||||
<Projects Include="..\Contactos\Views\Contactos_view.dproj" />
|
||||
@ -151,14 +152,23 @@
|
||||
<Target Name="AlbCli_FacCli_relation:Make">
|
||||
<MSBuild Projects="..\Relaciones\Albaranes de cliente - Facturas de cliente\AlbCli_FacCli_relation.dproj" Targets="Make" />
|
||||
</Target>
|
||||
<Target Name="AlbaranesProveedor_view">
|
||||
<MSBuild Projects="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" Targets="" />
|
||||
</Target>
|
||||
<Target Name="AlbaranesProveedor_view:Clean">
|
||||
<MSBuild Projects="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" Targets="Clean" />
|
||||
</Target>
|
||||
<Target Name="AlbaranesProveedor_view:Make">
|
||||
<MSBuild Projects="..\Albaranes de proveedor\Views\AlbaranesProveedor_view.dproj" Targets="Make" />
|
||||
</Target>
|
||||
<Target Name="Build">
|
||||
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_view;Articulos_controller;Articulos_view;AlbaranesCliente_model;AlbaranesCliente_data;AlbaranesCliente_controller;AlbaranesCliente_view;AlbaranesCliente_plugin;FactuGES;FactuGES_Server;AlbCli_FacCli_relation" />
|
||||
<CallTarget Targets="Base;GUIBase;ApplicationBase;Contactos_view;Articulos_controller;Articulos_view;AlbaranesCliente_model;AlbaranesCliente_data;AlbaranesCliente_controller;AlbaranesCliente_view;AlbaranesCliente_plugin;FactuGES;FactuGES_Server;AlbCli_FacCli_relation;AlbaranesProveedor_view" />
|
||||
</Target>
|
||||
<Target Name="Clean">
|
||||
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_view:Clean;Articulos_controller:Clean;Articulos_view:Clean;AlbaranesCliente_model:Clean;AlbaranesCliente_data:Clean;AlbaranesCliente_controller:Clean;AlbaranesCliente_view:Clean;AlbaranesCliente_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean;AlbCli_FacCli_relation:Clean" />
|
||||
<CallTarget Targets="Base:Clean;GUIBase:Clean;ApplicationBase:Clean;Contactos_view:Clean;Articulos_controller:Clean;Articulos_view:Clean;AlbaranesCliente_model:Clean;AlbaranesCliente_data:Clean;AlbaranesCliente_controller:Clean;AlbaranesCliente_view:Clean;AlbaranesCliente_plugin:Clean;FactuGES:Clean;FactuGES_Server:Clean;AlbCli_FacCli_relation:Clean;AlbaranesProveedor_view:Clean" />
|
||||
</Target>
|
||||
<Target Name="Make">
|
||||
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_view:Make;Articulos_controller:Make;Articulos_view:Make;AlbaranesCliente_model:Make;AlbaranesCliente_data:Make;AlbaranesCliente_controller:Make;AlbaranesCliente_view:Make;AlbaranesCliente_plugin:Make;FactuGES:Make;FactuGES_Server:Make;AlbCli_FacCli_relation:Make" />
|
||||
<CallTarget Targets="Base:Make;GUIBase:Make;ApplicationBase:Make;Contactos_view:Make;Articulos_controller:Make;Articulos_view:Make;AlbaranesCliente_model:Make;AlbaranesCliente_data:Make;AlbaranesCliente_controller:Make;AlbaranesCliente_view:Make;AlbaranesCliente_plugin:Make;FactuGES:Make;FactuGES_Server:Make;AlbCli_FacCli_relation:Make;AlbaranesProveedor_view:Make" />
|
||||
</Target>
|
||||
<Import Condition="Exists('$(MSBuildBinPath)\Borland.Group.Targets')" Project="$(MSBuildBinPath)\Borland.Group.Targets" />
|
||||
</Project>
|
||||
@ -190,8 +190,9 @@ begin
|
||||
SITUACION := SITUACION_ALBARAN_PENDIENTE;
|
||||
REFERENCIA := '';
|
||||
TIPO := CTE_TIPO_ALBARAN;
|
||||
// ALMACÉN PUESTO A CAPÓN Y PROVISIONAL
|
||||
ID_ALMACEN := 2;
|
||||
|
||||
// NO SE TIENEN EN CUENTA LOS ALBARANES DE CLIENTE PARA EL STOCK DE ALMACEN "DE MOMENTO"
|
||||
ID_ALMACEN := ID_NULO;
|
||||
end;
|
||||
|
||||
procedure TBizAlbaranCliente.IVAOnChange(Sender: TDACustomField);
|
||||
|
||||
@ -408,11 +408,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
inherited ImporteDto: TcxDBCurrencyEdit
|
||||
Left = 164
|
||||
Top = 112
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 164
|
||||
ExplicitTop = 112
|
||||
ExplicitWidth = 188
|
||||
@ -422,11 +418,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Left = 555
|
||||
Top = 38
|
||||
DataBinding.DataField = ''
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 555
|
||||
ExplicitTop = 38
|
||||
ExplicitWidth = 182
|
||||
@ -435,11 +427,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
inherited ImporteTotal: TcxDBCurrencyEdit
|
||||
Left = 485
|
||||
Top = 112
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 485
|
||||
ExplicitTop = 112
|
||||
ExplicitWidth = 252
|
||||
@ -448,11 +436,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
inherited edtDescuento: TcxDBSpinEdit
|
||||
Left = 93
|
||||
Top = 112
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 93
|
||||
ExplicitTop = 112
|
||||
end
|
||||
@ -460,22 +444,14 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Left = 484
|
||||
Top = 38
|
||||
DataBinding.DataField = ''
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 484
|
||||
ExplicitTop = 38
|
||||
end
|
||||
inherited ImporteBase: TcxDBCurrencyEdit
|
||||
Left = 484
|
||||
Top = 11
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 484
|
||||
ExplicitTop = 11
|
||||
ExplicitWidth = 253
|
||||
@ -485,11 +461,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Left = 484
|
||||
Top = 65
|
||||
DataBinding.DataField = ''
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 484
|
||||
ExplicitTop = 65
|
||||
end
|
||||
@ -497,11 +469,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Left = 555
|
||||
Top = 65
|
||||
DataBinding.DataField = ''
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 555
|
||||
ExplicitTop = 65
|
||||
ExplicitWidth = 182
|
||||
@ -510,11 +478,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
inherited eImporteNeto: TcxDBCurrencyEdit
|
||||
Left = 93
|
||||
Top = 11
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 93
|
||||
ExplicitTop = 11
|
||||
ExplicitWidth = 259
|
||||
@ -524,11 +488,7 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Left = 93
|
||||
Top = 139
|
||||
Properties.OnValidate = frViewTotales1ePortePropertiesValidate
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
Style.IsFontAssigned = True
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 93
|
||||
ExplicitTop = 139
|
||||
ExplicitWidth = 259
|
||||
@ -538,10 +498,6 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Left = 93
|
||||
Top = 38
|
||||
DataBinding.DataField = ''
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 93
|
||||
ExplicitTop = 38
|
||||
ExplicitWidth = 121
|
||||
@ -558,10 +514,6 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
||||
Top = 65
|
||||
DataBinding.DataField = ''
|
||||
DataBinding.DataSource = nil
|
||||
Style.LookAndFeel.SkinName = ''
|
||||
StyleDisabled.LookAndFeel.SkinName = ''
|
||||
StyleFocused.LookAndFeel.SkinName = ''
|
||||
StyleHot.LookAndFeel.SkinName = ''
|
||||
ExplicitLeft = 93
|
||||
ExplicitTop = 65
|
||||
ExplicitWidth = 259
|
||||
|
||||
@ -152,9 +152,10 @@ end;
|
||||
procedure TfEditorAlbaranesCliente.actEliminarUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
if (Sender as TAction).Enabled then
|
||||
(Sender as TAction).Enabled := (FAlbaranes.SITUACION = SITUACION_ALBARAN_PENDIENTE)
|
||||
and not (FAlbaranes.ID_FACTURA > 0)
|
||||
if (Sender as TAction).Enabled
|
||||
and (FAlbaranes.TIPO = CTE_TIPO_ALBARAN) then
|
||||
(Sender as TAction).Enabled := not (FAlbaranes.ID_FACTURA > 0)
|
||||
and (FAlbaranes.SITUACION = SITUACION_ALBARAN_PENDIENTE)
|
||||
end;
|
||||
|
||||
procedure TfEditorAlbaranesCliente.actGenerarEtiquetasExecute(Sender: TObject);
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
inherited fEditorAlbaranesDevCliente: TfEditorAlbaranesDevCliente
|
||||
Caption = 'Lista de '#243'rdenes de devoluci'#243'n a cliente'
|
||||
ExplicitHeight = 478
|
||||
PixelsPerInch = 96
|
||||
TextHeight = 13
|
||||
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||
|
||||
@ -26,14 +26,14 @@ implementation
|
||||
|
||||
uses
|
||||
uDataModuleUsuarios, uViewAlbaranesDevCliente, uFactuGES_App;
|
||||
|
||||
|
||||
{ TfEditorAlbaranesDevCliente }
|
||||
|
||||
procedure TfEditorAlbaranesDevCliente.actEliminarUpdate(Sender: TObject);
|
||||
begin
|
||||
inherited;
|
||||
if (Sender as TAction).Enabled then
|
||||
(Sender as TAction).Enabled := (FAlbaranes.REF_FACTURA = '');
|
||||
inherited;
|
||||
if (Sender as TAction).Enabled then
|
||||
(Sender as TAction).Enabled := not (FAlbaranes.ID_FACTURA > 0);
|
||||
end;
|
||||
|
||||
procedure TfEditorAlbaranesDevCliente.AsignarVista;
|
||||
|
||||
@ -185,7 +185,7 @@ begin
|
||||
TIPO := CTE_TIPO_ALBARAN;
|
||||
// OJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
|
||||
// ALMACÉN PUESTO A CAPÓN Y PROVISIONAL
|
||||
ID_ALMACEN := 2;
|
||||
// ID_ALMACEN := 2;
|
||||
end;
|
||||
|
||||
procedure TBizAlbaranProveedor.IVAOnChange(Sender: TDACustomField);
|
||||
|
||||
Binary file not shown.
@ -14,7 +14,7 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "FileVersion", "1.0.4.0\0"
|
||||
VALUE "ProductVersion", "1.0.4.0\0"
|
||||
VALUE "CompileDate", "martes, 03 de junio de 2008 12:49\0"
|
||||
VALUE "CompileDate", "martes, 03 de junio de 2008 13:29\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user