diff --git a/Source/ApplicationBase/Empresas/Views/uViewTienda.dfm b/Source/ApplicationBase/Empresas/Views/uViewTienda.dfm
index d3e08b23..38f4e602 100644
--- a/Source/ApplicationBase/Empresas/Views/uViewTienda.dfm
+++ b/Source/ApplicationBase/Empresas/Views/uViewTienda.dfm
@@ -43,7 +43,7 @@ inherited frViewTienda: TfrViewTienda
StyleHot.LookAndFeel.Kind = lfStandard
StyleHot.LookAndFeel.NativeStyle = True
TabOrder = 0
- Width = 376
+ Width = 390
end
object dxLayoutControl1Group_Root: TdxLayoutGroup
ShowCaption = False
diff --git a/Source/ApplicationBase/Empresas/Views/uViewTienda.pas b/Source/ApplicationBase/Empresas/Views/uViewTienda.pas
index 459bae9c..a5db1566 100644
--- a/Source/ApplicationBase/Empresas/Views/uViewTienda.pas
+++ b/Source/ApplicationBase/Empresas/Views/uViewTienda.pas
@@ -16,6 +16,12 @@ uses
type
IViewTienda = interface(IViewBase)
['{9FD357AB-2E87-4CAF-8AEB-04368AD075AF}']
+
+ function GetDataItem: TDADataTable;
+ procedure SetDataItem(const Value: TDADataTable);
+
+ property DataItem : TDADataTable read GetDataItem write SetDataItem;
+ procedure ElegirTienda(const AIDTienda : Integer);
end;
TfrViewTienda = class(TfrViewBase, IViewTienda)
@@ -35,9 +41,6 @@ type
public
property DataItem : TDADataTable read GetDataItem write SetDataItem;
procedure ElegirTienda(const AIDTienda : Integer);
- function getIDTienda: Integer;
- procedure SetIDTienda(const ID: Integer);
-
end;
@@ -115,14 +118,6 @@ begin
Result := FDataItem;
end;
-function TfrViewTienda.getIDTienda: Integer;
-begin
-{ if FListaTiendas.IndexOf(cbTienda.Text) < 0 then
- Result := FListaTiendas.IndexOf(cbTienda.Text)
- else
- Result := FListaIDTiendas.Integers[FListaTiendas.IndexOf(cbTienda.Text)];}
-end;
-
procedure TfrViewTienda.SetDataItem(const Value: TDADataTable);
begin
FDataItem := Value;
@@ -130,12 +125,4 @@ begin
ElegirTienda(FDataItem.FieldByName('ID_TIENDA').AsInteger);
end;
-procedure TfrViewTienda.SetIDTienda(const ID: Integer);
-{var
-AIndex: Integer;}
-begin
-{ if FListaIDTiendas.Find(ID, AIndex) then
- cbTienda.Text := FListaTiendas.Strings[AIndex];}
-end;
-
end.
diff --git a/Source/Modulos/Albaranes de cliente/Controller/uAlbaranesClienteController.pas b/Source/Modulos/Albaranes de cliente/Controller/uAlbaranesClienteController.pas
index 11da35e2..46619e26 100644
--- a/Source/Modulos/Albaranes de cliente/Controller/uAlbaranesClienteController.pas
+++ b/Source/Modulos/Albaranes de cliente/Controller/uAlbaranesClienteController.pas
@@ -59,8 +59,6 @@ type
ANuevaSituacion: String; AFechaEnvio : TDateTime = 0;
AFechaRecibido : TDateTime = 0;
DoPost: Boolean = True) : Boolean;
-
- procedure SetID_Tienda (AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
end;
TAlbaranesClienteController = class(TControllerBase, IAlbaranesClienteController)
@@ -138,8 +136,6 @@ type
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
-
- procedure SetID_Tienda (AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
end;
implementation
@@ -871,27 +867,6 @@ begin
FDetallesController := Value;
end;
-procedure TAlbaranesClienteController.SetID_Tienda(AAlbaran: IBizAlbaranCliente; const ID_Tienda: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(AAlbaran) then
- begin
- EnEdicion := AAlbaran.DataTable.Editing;
- if not AAlbaran.DataTable.Editing then
- AAlbaran.DataTable.Edit;
-
- if ID_Tienda < 0 then
- AAlbaran.DataTable.FieldByName(fld_AlbaranesClienteID_TIENDA).AsVariant := Null
- else
- AAlbaran.ID_TIENDA := ID_Tienda;
-
- AAlbaran.DataTable.Post;
-
- if EnEdicion then
- AAlbaran.DataTable.Edit;
- end;
-end;
function TAlbaranesClienteController.Guardar(AAlbaran: IBizAlbaranCliente): Boolean;
var
@@ -1081,4 +1056,4 @@ begin
end;
end.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Source/Modulos/Albaranes de cliente/Model/uBizAlbaranesCliente.pas b/Source/Modulos/Albaranes de cliente/Model/uBizAlbaranesCliente.pas
index 2991dca7..ee7aa353 100644
--- a/Source/Modulos/Albaranes de cliente/Model/uBizAlbaranesCliente.pas
+++ b/Source/Modulos/Albaranes de cliente/Model/uBizAlbaranesCliente.pas
@@ -65,7 +65,8 @@ type
procedure SetID_PEDIDOValue(const aValue: Integer); override;
procedure SetID_FACTURAValue(const aValue: Integer); override;
procedure SetID_FORMA_PAGOValue(const aValue: Integer); override;
-
+ procedure SetID_TIENDAValue(const aValue: Integer); override;
+
procedure IMPORTE_NETOOnChange(Sender: TDACustomField);
procedure IMPORTE_PORTEOnChange(Sender: TDACustomField);
procedure DESCUENTOOnChange(Sender: TDACustomField);
@@ -248,6 +249,14 @@ begin
end;
end;
+procedure TBizAlbaranCliente.SetID_TIENDAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_AlbaranesClienteID_TIENDA].AsVariant := NULL
+ else
+ inherited SetID_TIENDAValue(aValue);
+end;
+
procedure TBizAlbaranCliente.SetDetalles(Value: IBizDetallesAlbaranCliente);
begin
FDetalles := Value;
diff --git a/Source/Modulos/Albaranes de proveedor/Controller/uAlbaranesProveedorController.pas b/Source/Modulos/Albaranes de proveedor/Controller/uAlbaranesProveedorController.pas
index e8a24806..f842b4e9 100644
--- a/Source/Modulos/Albaranes de proveedor/Controller/uAlbaranesProveedorController.pas
+++ b/Source/Modulos/Albaranes de proveedor/Controller/uAlbaranesProveedorController.pas
@@ -55,8 +55,6 @@ type
procedure Preview(AAlbaran : IBizAlbaranProveedor; AllItems: Boolean = false);
procedure Print(AAlbaran : IBizAlbaranProveedor; AllItems: Boolean = false);
-
- procedure SetID_Tienda (AAlbaran: IBizAlbaranProveedor; const ID_Tienda: Integer);
end;
TAlbaranesProveedorController = class(TControllerBase, IAlbaranesProveedorController)
@@ -121,7 +119,6 @@ type
procedure Preview(AAlbaran : IBizAlbaranProveedor; AllItems: Boolean = false);
procedure Print(AAlbaran : IBizAlbaranProveedor; AllItems: Boolean = false);
- procedure SetID_Tienda (AAlbaran: IBizAlbaranProveedor; const ID_Tienda: Integer);
end;
implementation
@@ -944,28 +941,6 @@ begin
FDetallesController := Value;
end;
-procedure TAlbaranesProveedorController.SetID_Tienda(AAlbaran: IBizAlbaranProveedor; const ID_Tienda: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(AAlbaran) then
- begin
- EnEdicion := AAlbaran.DataTable.Editing;
- if not AAlbaran.DataTable.Editing then
- AAlbaran.DataTable.Edit;
-
- if ID_Tienda < 0 then
- AAlbaran.DataTable.FieldByName(fld_AlbaranesProveedorID_TIENDA).AsVariant := Null
- else
- AAlbaran.ID_TIENDA := ID_Tienda;
-
- AAlbaran.DataTable.Post;
-
- if EnEdicion then
- AAlbaran.DataTable.Edit;
- end;
-end;
-
function TAlbaranesProveedorController.Guardar(AAlbaran: IBizAlbaranProveedor): Boolean;
var
IDNuevo: Integer;
@@ -1118,4 +1093,4 @@ begin
end;
end.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Source/Modulos/Albaranes de proveedor/Model/uBizAlbaranesProveedor.pas b/Source/Modulos/Albaranes de proveedor/Model/uBizAlbaranesProveedor.pas
index 014db905..a367c0ff 100644
--- a/Source/Modulos/Albaranes de proveedor/Model/uBizAlbaranesProveedor.pas
+++ b/Source/Modulos/Albaranes de proveedor/Model/uBizAlbaranesProveedor.pas
@@ -58,6 +58,7 @@ type
procedure SetID_ALMACENValue(const aValue: Integer); override;
procedure SetID_FACTURAValue(const aValue: Integer); override;
procedure SetID_FORMA_PAGOValue(const aValue: Integer); override;
+ procedure SetID_TIENDAValue(const aValue: Integer);
procedure IMPORTE_NETOOnChange(Sender: TDACustomField);
procedure IMPORTE_PORTEOnChange(Sender: TDACustomField);
@@ -277,6 +278,14 @@ begin
inherited;
end;
+procedure TBizAlbaranProveedor.SetID_TIENDAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_AlbaranesProveedorID_TIENDA].AsVariant := NULL
+ else
+ inherited SetID_TIENDAValue(aValue);
+end;
+
procedure TBizAlbaranProveedor.SetID_FORMA_PAGOValue(const aValue: Integer);
begin
if (aValue = 0) then
diff --git a/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.dfm b/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.dfm
index 3c1b84a9..66b3d52e 100644
--- a/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.dfm
+++ b/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.dfm
@@ -207,6 +207,10 @@ inherited fEditorAlbaranProveedor: TfEditorAlbaranProveedor
object pagInicidencias: TTabSheet
Caption = 'Incidencias'
ImageIndex = 2
+ ExplicitLeft = 0
+ ExplicitTop = 0
+ ExplicitWidth = 0
+ ExplicitHeight = 0
inline frViewIncidenciasCli: TfrViewIncidencias
Left = 0
Top = 0
diff --git a/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.pas b/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.pas
index e8066152..d54fd26a 100644
--- a/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.pas
+++ b/Source/Modulos/Albaranes de proveedor/Views/uEditorAlbaranProveedor.pas
@@ -204,7 +204,6 @@ begin
frViewDetallesAlbaranProveedor1.BeginUpdate;
try
bEsNuevo := FAlbaran.EsNuevo;
- FController.SetID_Tienda(FAlbaran, TfrViewAlbaranProveedor(ViewAlbaran).frViewTienda1.getIDTienda);
FController.Guardar(FAlbaran);
finally
frViewDetallesAlbaranProveedor1.EndUpdate;
diff --git a/Source/Modulos/Contabilidad/Views/uEditorCuentas.dfm b/Source/Modulos/Contabilidad/Views/uEditorCuentas.dfm
index f5598375..a4d2f230 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorCuentas.dfm
+++ b/Source/Modulos/Contabilidad/Views/uEditorCuentas.dfm
@@ -2,6 +2,7 @@ inherited fEditorCuentas: TfEditorCuentas
Left = 489
Top = 325
Caption = 'Lista de cuentas'
+ ExplicitWidth = 320
ExplicitHeight = 471
PixelsPerInch = 96
TextHeight = 13
@@ -13,7 +14,7 @@ inherited fEditorCuentas: TfEditorCuentas
000000180806000000E0773DF8000000017352474200AECE1CE9000000046741
4D410000B18F0BFC6105000000206348524D00007A26000080840000FA000000
80E8000075300000EA6000003A98000017709CBA513C00000009704859730000
- 17110000171101CA26F33F000005EB49444154484B7D95794C944718C607AD52
+ 17100000171001186111DB000005EB49444154484B7D95794C944718C607AD52
235A696BEFA6F58A36D578D4261EAD500FB4D1F84763EA5D44CBE146D1DA2AAB
B11E600139BC0A220B729F4582A260917317B15010644158907B414096BD2F8E
DDA7331F0B858ADDCD2FB3DF3B9BE779E79DF9DEB10A0BFA8D3FD566C2390232
diff --git a/Source/Modulos/Contabilidad/Views/uEditorCuentas.pas b/Source/Modulos/Contabilidad/Views/uEditorCuentas.pas
index e010aed9..8b0802eb 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorCuentas.pas
+++ b/Source/Modulos/Contabilidad/Views/uEditorCuentas.pas
@@ -120,8 +120,8 @@ begin
end;
procedure TfEditorCuentas.DuplicarInterno;
-var
- ACuenta : IBizCuenta;
+{var
+ ACuenta : IBizCuenta;}
begin
AppFactuGES.ShowCapado;
{
diff --git a/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.dfm b/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.dfm
index 28cd95ba..ac94cc64 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.dfm
+++ b/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.dfm
@@ -2,6 +2,7 @@ inherited fEditorCuentasEspeciales: TfEditorCuentasEspeciales
Left = 489
Top = 325
Caption = 'Lista de cuentas especiales'
+ ExplicitWidth = 320
ExplicitHeight = 471
PixelsPerInch = 96
TextHeight = 13
@@ -13,7 +14,7 @@ inherited fEditorCuentasEspeciales: TfEditorCuentasEspeciales
000000180806000000E0773DF8000000017352474200AECE1CE9000000046741
4D410000B18F0BFC6105000000206348524D00007A26000080840000FA000000
80E8000075300000EA6000003A98000017709CBA513C00000009704859730000
- 17110000171101CA26F33F000005F249444154484B7D950954945518862F9AA2
+ 17100000171001186111DB000005F249444154484B7D950954945518862F9AA2
C725C92C2D2D174C2B3C29E5392EA5A688961E4D33734754C446054D73064501
9545365359676010942DE4E0129882E9801AA48902C2A0C48E800CB36F6CF376
EFCF4090DACC79CE9DFFBB73DEF7BBF77EFF772D4467BC058306F4F124209D1F
diff --git a/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.pas b/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.pas
index b844c8d2..48ea7f7d 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.pas
+++ b/Source/Modulos/Contabilidad/Views/uEditorCuentasEspeciales.pas
@@ -120,8 +120,8 @@ begin
end;
procedure TfEditorCuentasEspeciales.DuplicarInterno;
-var
- ACuentaEspecial : IBizCuentaEspecial;
+{var
+ ACuentaEspecial : IBizCuentaEspecial;}
begin
AppFactuGES.ShowCapado;
{
diff --git a/Source/Modulos/Contabilidad/Views/uEditorDiario.dfm b/Source/Modulos/Contabilidad/Views/uEditorDiario.dfm
index 95c34aae..bd2b254e 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorDiario.dfm
+++ b/Source/Modulos/Contabilidad/Views/uEditorDiario.dfm
@@ -2,6 +2,8 @@ inherited fEditorDiario: TfEditorDiario
Left = 489
Top = 325
Caption = 'Libro de diario'
+ ExplicitWidth = 320
+ ExplicitHeight = 240
PixelsPerInch = 96
TextHeight = 13
inherited JvNavPanelHeader: TJvNavPanelHeader
diff --git a/Source/Modulos/Contabilidad/Views/uEditorDiario.pas b/Source/Modulos/Contabilidad/Views/uEditorDiario.pas
index 863449c6..1c9e4668 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorDiario.pas
+++ b/Source/Modulos/Contabilidad/Views/uEditorDiario.pas
@@ -96,8 +96,8 @@ begin
end;
procedure TfEditorDiario.NuevoInterno;
-var
- NumOrden: Integer;
+{var
+ NumOrden: Integer;}
begin
inherited;
@@ -141,8 +141,8 @@ begin
end;
procedure TfEditorDiario.DuplicarInterno;
-var
- AEpigrafe : IBizAsiento;
+{var
+ AEpigrafe : IBizAsiento;}
begin
AppFactuGES.ShowCapado;
{
diff --git a/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.dfm b/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.dfm
index 8fa27a75..f641d0de 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.dfm
+++ b/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.dfm
@@ -2,6 +2,7 @@ inherited fEditorEpigrafes: TfEditorEpigrafes
Left = 489
Top = 325
Caption = 'Lista de epigrafes'
+ ExplicitWidth = 320
ExplicitHeight = 471
PixelsPerInch = 96
TextHeight = 13
@@ -13,7 +14,7 @@ inherited fEditorEpigrafes: TfEditorEpigrafes
000000180806000000E0773DF8000000017352474200AECE1CE9000000046741
4D410000B18F0BFC6105000000206348524D00007A26000080840000FA000000
80E8000075300000EA6000003A98000017709CBA513C00000009704859730000
- 17110000171101CA26F33F000005F849444154484B7D957954945518C6AF99A1
+ 17100000171001186111DB000005F849444154484B7D957954945518C6AF99A1
69162E2D56E714E1C9CED163697F68567A4CD1CAFCA363298A111ADB1460E432
72CC000B704B53111860D8944544140545D61996401074409841F601019995D9
81E1E97E9725086DE6FCCEFDEEBDDF799EF77BEF7BEF9D1279EE0FFECC59CFF8
diff --git a/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.pas b/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.pas
index 7bdba6dc..4146188c 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.pas
+++ b/Source/Modulos/Contabilidad/Views/uEditorEpigrafes.pas
@@ -120,8 +120,8 @@ begin
end;
procedure TfEditorEpigrafes.DuplicarInterno;
-var
- AEpigrafe : IBizEpigrafe;
+{var
+ AEpigrafe : IBizEpigrafe;}
begin
AppFactuGES.ShowCapado;
{
diff --git a/Source/Modulos/Contabilidad/Views/uViewApuntes.pas b/Source/Modulos/Contabilidad/Views/uViewApuntes.pas
index e2dc212d..49b3f878 100644
Binary files a/Source/Modulos/Contabilidad/Views/uViewApuntes.pas and b/Source/Modulos/Contabilidad/Views/uViewApuntes.pas differ
diff --git a/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.dfm b/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.dfm
index ca9fbf4d..1ff2d7b5 100644
--- a/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.dfm
+++ b/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.dfm
@@ -128,9 +128,6 @@ inherited frViewExtractoMovimientos: TfrViewExtractoMovimientos
end
end
end
- inherited pnlAgrupaciones: TTBXDockablePanel
- ExplicitWidth = 128
- end
inherited dxComponentPrinter: TdxComponentPrinter
inherited dxComponentPrinterLink: TdxGridReportLink
ReportDocument.CreationDate = 38673.842406053240000000
diff --git a/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.pas b/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.pas
index 6ae9b2cf..ea99a7ae 100644
--- a/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.pas
+++ b/Source/Modulos/Contabilidad/Views/uViewExtractoMovimientos.pas
@@ -230,10 +230,11 @@ var
begin
inherited;
with TSubCuentasController.Create do
- begin
- SubCuentas := BuscarCajasBancos;
- Free;
- end;
+ try
+ SubCuentas := BuscarCajasBancos;
+ finally
+ Free;
+ end;
if Assigned(FController) then
begin
diff --git a/Source/Modulos/Contabilidad/Views/uViewListaSubCuentas.pas b/Source/Modulos/Contabilidad/Views/uViewListaSubCuentas.pas
index e3be4952..ef1fdca6 100644
--- a/Source/Modulos/Contabilidad/Views/uViewListaSubCuentas.pas
+++ b/Source/Modulos/Contabilidad/Views/uViewListaSubCuentas.pas
@@ -65,8 +65,6 @@ end;
procedure TfrViewListaSubcuentas.CustomViewCreate(Sender: TObject);
-var
- i : integer;
begin
inherited;
FTipoSubCuenta := tTodas;
diff --git a/Source/Modulos/Contactos/Controller/uContactosController.pas b/Source/Modulos/Contactos/Controller/uContactosController.pas
index f2e4da48..3dcf4920 100644
--- a/Source/Modulos/Contactos/Controller/uContactosController.pas
+++ b/Source/Modulos/Contactos/Controller/uContactosController.pas
@@ -29,7 +29,7 @@ type
AMensaje: String; AMultiSelect: Boolean): IBizContacto;
function ExtraerSeleccionados(AContactos: IBizContacto) : IBizContacto;
- procedure SetID_Tienda (AContacto: IBizContacto; const ID_Tienda: Integer);
+// procedure SetID_Tienda (AContacto: IBizContacto; const ID_Tienda: Integer);
function ElegirDireccion(AContacto: IBizContacto; AMensaje: String): IBizDireccionesContacto;
end;
@@ -61,7 +61,7 @@ type
procedure VerTodos(AContactos: IBizContacto); virtual; abstract;
function ElegirContacto(AContactos : IBizContacto;
AMensaje: String; AMultiSelect: Boolean): IBizContacto; virtual; abstract;
- procedure SetID_Tienda (AContacto: IBizContacto; const ID_Tienda: Integer);
+// procedure SetID_Tienda (AContacto: IBizContacto; const ID_Tienda: Integer);
function ElegirDireccion(AContacto: IBizContacto; AMensaje: String): IBizDireccionesContacto;
end;
@@ -292,7 +292,7 @@ begin
end;
end;
-procedure TContactosController.SetID_Tienda(AContacto: IBizContacto; const ID_Tienda: Integer);
+{procedure TContactosController.SetID_Tienda(AContacto: IBizContacto; const ID_Tienda: Integer);
var
EnEdicion: Boolean;
begin
@@ -312,7 +312,7 @@ begin
if EnEdicion then
AContacto.DataTable.Edit;
end;
-end;
+end;}
function TContactosController.ValidarContacto(AContacto: IBizContacto): Boolean;
begin
diff --git a/Source/Modulos/Facturas de cliente/Controller/uFacturasClienteController.pas b/Source/Modulos/Facturas de cliente/Controller/uFacturasClienteController.pas
index 806af578..7ad60a01 100644
--- a/Source/Modulos/Facturas de cliente/Controller/uFacturasClienteController.pas
+++ b/Source/Modulos/Facturas de cliente/Controller/uFacturasClienteController.pas
@@ -51,7 +51,6 @@ type
procedure CopiarDireccion (const ADireccionEnvio: IBizDireccionesContacto; AFactura: IBizFacturaCliente);
- procedure SetID_Tienda (AFactura: IBizFacturaCliente; const ID_Tienda: Integer);
procedure SetIdSubcuenta (AFactura: IBizFacturaCliente; const IdSubCuenta: Integer);
procedure SetIgnorarContabilidad (AFactura: IBizFacturaCliente; const Ignorar: Integer);
end;
@@ -116,7 +115,6 @@ type
procedure CopiarDireccion (const ADireccionEnvio: IBizDireccionesContacto; AFactura: IBizFacturaCliente);
- procedure SetID_Tienda (AFactura: IBizFacturaCliente; const ID_Tienda: Integer);
procedure SetIdSubcuenta (AFactura: IBizFacturaCliente; const IdSubCuenta: Integer);
procedure SetIgnorarContabilidad (AFactura: IBizFacturaCliente; const Ignorar: Integer);
end;
@@ -963,28 +961,6 @@ begin
FDetallesController := Value;
end;
-procedure TFacturasClienteController.SetID_Tienda(AFactura: IBizFacturaCliente; const ID_Tienda: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(AFactura) then
- begin
- EnEdicion := AFactura.DataTable.Editing;
- if not AFactura.DataTable.Editing then
- AFactura.DataTable.Edit;
-
- if ID_Tienda < 0 then
- AFactura.DataTable.FieldByName(fld_FacturasClienteID_TIENDA).AsVariant := Null
- else
- AFactura.ID_TIENDA := ID_Tienda;
-
- AFactura.DataTable.Post;
-
- if EnEdicion then
- AFactura.DataTable.Edit;
- end;
-end;
-
procedure TFacturasClienteController.SetIgnorarContabilidad(AFactura: IBizFacturaCliente; const Ignorar: Integer);
var
EnEdicion: Boolean;
@@ -1003,28 +979,6 @@ begin
end;
end;
-procedure TFacturasClienteController.SetIdSubCuenta(AFactura: IBizFacturaCliente; const IdSubCuenta: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(AFactura) then
- begin
- EnEdicion := AFactura.DataTable.Editing;
- if not AFactura.DataTable.Editing then
- AFactura.DataTable.Edit;
-
- if IdSubCuenta < 0 then
- AFactura.DataTable.FieldByName(fld_FacturasClienteID_SUBCUENTA).AsVariant := Null
- else
- AFactura.ID_SUBCUENTA := IdSubCuenta;
-
- AFactura.DataTable.Post;
-
- if EnEdicion then
- AFactura.DataTable.Edit;
- end;
-end;
-
function TFacturasClienteController.Guardar(AFactura: IBizFacturaCliente): Boolean;
var
IDNuevo : Integer;
diff --git a/Source/Modulos/Facturas de cliente/Model/uBizFacturasCliente.pas b/Source/Modulos/Facturas de cliente/Model/uBizFacturasCliente.pas
index cc8d019e..d005810e 100644
--- a/Source/Modulos/Facturas de cliente/Model/uBizFacturasCliente.pas
+++ b/Source/Modulos/Facturas de cliente/Model/uBizFacturasCliente.pas
@@ -69,7 +69,9 @@ type
procedure DESCUENTOOnChange(Sender: TDACustomField);
procedure IVAOnChange(Sender: TDACustomField);
procedure REOnChange(Sender: TDACustomField);
-
+ procedure SetID_TIENDAValue(const aValue: Integer);
+ procedure SetID_SUBCUENTAValue(const aValue: Integer);
+
procedure OnNewRecord(Sender: TDADataTable); override;
function GetSITUACIONValue: String; override;
@@ -278,6 +280,23 @@ begin
AsignarTipoIVA(ID_TIPO_IVA);
end;
+procedure TBizFacturaCliente.SetID_SUBCUENTAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_FacturasClienteID_SUBCUENTA].AsVariant := NULL
+ else
+ inherited SetID_SUBCUENTAValue(aValue);
+end;
+
+procedure TBizFacturaCliente.SetID_TIENDAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_FacturasClienteID_TIENDA].AsVariant := NULL
+ else
+ inherited SetID_TIENDAValue(aValue);
+end;
+
+
procedure TBizFacturaCliente.REOnChange(Sender: TDACustomField);
begin
CalcularImporteTotal;
diff --git a/Source/Modulos/Facturas de proveedor/Controller/uFacturasProveedorController.pas b/Source/Modulos/Facturas de proveedor/Controller/uFacturasProveedorController.pas
index db3a7d57..8979d60e 100644
--- a/Source/Modulos/Facturas de proveedor/Controller/uFacturasProveedorController.pas
+++ b/Source/Modulos/Facturas de proveedor/Controller/uFacturasProveedorController.pas
@@ -50,8 +50,6 @@ type
procedure CopiarDireccion (const ADireccionEnvio: IBizDireccionesContacto; AFactura: IBizFacturaProveedor);
- procedure SetID_Tienda (AFactura: IBizFacturaProveedor; const ID_Tienda: Integer);
- procedure SetIdSubcuenta (AFactura: IBizFacturaProveedor; const IdSubCuenta: Integer);
procedure SetIgnorarContabilidad (AFactura: IBizFacturaProveedor; const Ignorar: Integer);
end;
@@ -116,8 +114,6 @@ type
procedure CopiarDireccion (const ADireccionEnvio: IBizDireccionesContacto; AFactura: IBizFacturaProveedor);
- procedure SetID_Tienda (AFactura: IBizFacturaProveedor; const ID_Tienda: Integer);
- procedure SetIdSubcuenta (AFactura: IBizFacturaProveedor; const IdSubCuenta: Integer);
procedure SetIgnorarContabilidad (AFactura: IBizFacturaProveedor; const Ignorar: Integer);
end;
@@ -967,50 +963,6 @@ begin
FDetallesController := Value;
end;
-procedure TFacturasProveedorController.SetIdSubcuenta(AFactura: IBizFacturaProveedor; const IdSubCuenta: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(AFactura) then
- begin
- EnEdicion := AFactura.DataTable.Editing;
- if not AFactura.DataTable.Editing then
- AFactura.DataTable.Edit;
-
- if IdSubCuenta < 0 then
- AFactura.DataTable.FieldByName(fld_FacturasProveedorID_SUBCUENTA).AsVariant := Null
- else
- AFactura.ID_SUBCUENTA := IdSubCuenta;
-
- AFactura.DataTable.Post;
-
- if EnEdicion then
- AFactura.DataTable.Edit;
- end;
-end;
-
-procedure TFacturasProveedorController.SetID_Tienda(AFactura: IBizFacturaProveedor; const ID_Tienda: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(AFactura) then
- begin
- EnEdicion := AFactura.DataTable.Editing;
- if not AFactura.DataTable.Editing then
- AFactura.DataTable.Edit;
-
- if ID_Tienda < 0 then
- AFactura.DataTable.FieldByName(fld_FacturasProveedorID_TIENDA).AsVariant := Null
- else
- AFactura.ID_TIENDA := ID_Tienda;
-
- AFactura.DataTable.Post;
-
- if EnEdicion then
- AFactura.DataTable.Edit;
- end;
-end;
-
procedure TFacturasProveedorController.SetIgnorarContabilidad(AFactura: IBizFacturaProveedor; const Ignorar: Integer);
var
EnEdicion: Boolean;
@@ -1241,4 +1193,4 @@ begin
end;
end.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Source/Modulos/Facturas de proveedor/Model/uBizFacturasProveedor.pas b/Source/Modulos/Facturas de proveedor/Model/uBizFacturasProveedor.pas
index c563a9f7..c3cadec0 100644
--- a/Source/Modulos/Facturas de proveedor/Model/uBizFacturasProveedor.pas
+++ b/Source/Modulos/Facturas de proveedor/Model/uBizFacturasProveedor.pas
@@ -68,6 +68,8 @@ type
procedure DESCUENTOOnChange(Sender: TDACustomField);
procedure IVAOnChange(Sender: TDACustomField);
procedure REOnChange(Sender: TDACustomField);
+ procedure SetID_TIENDAValue(const aValue: Integer);
+ procedure SetID_SUBCUENTAValue(const aValue: Integer);
procedure OnNewRecord(Sender: TDADataTable); override;
@@ -230,6 +232,23 @@ begin
CalcularImporteTotal;
end;
+procedure TBizFacturaProveedor.SetID_SUBCUENTAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_FacturasProveedorID_SUBCUENTA].AsVariant := NULL
+ else
+ inherited SetID_SUBCUENTAValue(aValue);
+end;
+
+procedure TBizFacturaProveedor.SetID_TIENDAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_FacturasProveedorID_TIENDA].AsVariant := NULL
+ else
+ inherited SetID_TIENDAValue(aValue);
+end;
+
+
procedure TBizFacturaProveedor.IMPORTE_PORTEOnChange(Sender: TDACustomField);
begin
CalcularImporteTotal;
diff --git a/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.dfm b/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.dfm
index e9c7793d..ea81ea6e 100644
--- a/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.dfm
+++ b/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.dfm
@@ -199,6 +199,10 @@ inherited fEditorFacturaProveedor: TfEditorFacturaProveedor
object pagContenido: TTabSheet
Caption = 'Contenido'
ImageIndex = 1
+ ExplicitLeft = 0
+ ExplicitTop = 0
+ ExplicitWidth = 0
+ ExplicitHeight = 0
inline frViewDetallesFacturaProveedor1: TfrViewDetallesFacturaProveedor
Left = 0
Top = 0
diff --git a/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.pas b/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.pas
index a3d9f6a3..7d2f528f 100644
--- a/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.pas
+++ b/Source/Modulos/Facturas de proveedor/Views/uEditorFacturaProveedor.pas
@@ -253,8 +253,9 @@ begin
bEsNuevo := FFactura.EsNuevo;
{$IFDEF CONTABILIDAD}
+ FFactura.Edit;
FController.SetIgnorarContabilidad(FFactura, frViewListaSubCuentas1.eContabilizar.EditValue);
- FController.SetIdSubcuenta(FFactura, frViewListaSubCuentas1.IdSubCuenta);
+ FFactura.ID_SUBCUENTA := frViewListaSubCuentas1.IdSubCuenta;
{$ENDIF}
FController.Guardar(FFactura);
diff --git a/Source/Modulos/Pedidos a proveedor/Controller/uPedidosProveedorController.pas b/Source/Modulos/Pedidos a proveedor/Controller/uPedidosProveedorController.pas
index 43b18aab..26e3a511 100644
--- a/Source/Modulos/Pedidos a proveedor/Controller/uPedidosProveedorController.pas
+++ b/Source/Modulos/Pedidos a proveedor/Controller/uPedidosProveedorController.pas
@@ -47,8 +47,6 @@ type
function ExtraerSeleccionados(APedido: IBizPedidoProveedor) : IBizPedidoProveedor;
function ElegirPedidos(APedido: IBizPedidoProveedor; AMensaje: String; AMultiSelect: Boolean): IBizPedidoProveedor;
procedure RecuperarProveedor(APedido: IBizPedidoProveedor);
-
- procedure SetID_Tienda (APedido: IBizPedidoProveedor; const ID_Tienda: Integer);
end;
TPedidosProveedorController = class(TControllerBase, IPedidosProveedorController)
@@ -110,8 +108,6 @@ type
function ExtraerSeleccionados(APedido: IBizPedidoProveedor) : IBizPedidoProveedor;
function ElegirPedidos(APedido: IBizPedidoProveedor; AMensaje: String; AMultiSelect: Boolean): IBizPedidoProveedor;
-
- procedure SetID_Tienda (APedido: IBizPedidoProveedor; const ID_Tienda: Integer);
end;
implementation
@@ -677,28 +673,6 @@ begin
FDetallesController := Value;
end;
-procedure TPedidosProveedorController.SetID_Tienda(APedido: IBizPedidoProveedor; const ID_Tienda: Integer);
-var
- EnEdicion: Boolean;
-begin
- if Assigned(APedido) then
- begin
- EnEdicion := APedido.DataTable.Editing;
- if not APedido.DataTable.Editing then
- APedido.DataTable.Edit;
-
- if ID_Tienda < 0 then
- APedido.DataTable.FieldByName(fld_PedidosProveedorID_TIENDA).AsVariant := Null
- else
- APedido.ID_TIENDA := ID_Tienda;
-
- APedido.DataTable.Post;
-
- if EnEdicion then
- APedido.DataTable.Edit;
- end;
-end;
-
function TPedidosProveedorController.Guardar(APedido: IBizPedidoProveedor): Boolean;
var
IDNuevo : Integer;
@@ -820,4 +794,4 @@ begin
end;
end.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Source/Modulos/Pedidos a proveedor/Model/uBizPedidosProveedor.pas b/Source/Modulos/Pedidos a proveedor/Model/uBizPedidosProveedor.pas
index 8f98f579..cc16aba1 100644
--- a/Source/Modulos/Pedidos a proveedor/Model/uBizPedidosProveedor.pas
+++ b/Source/Modulos/Pedidos a proveedor/Model/uBizPedidosProveedor.pas
@@ -62,6 +62,7 @@ type
procedure SetID_PEDIDO_CLIENTEValue(const aValue: Integer); override;
// procedure SetINCIDENCIASValue(const aValue: IROStrings); override;
procedure SetID_FORMA_PAGOValue(const aValue: Integer); override;
+ procedure SetID_TIENDAValue(const aValue: Integer);
procedure IMPORTE_NETOOnChange(Sender: TDACustomField);
procedure IMPORTE_PORTEOnChange(Sender: TDACustomField);
@@ -215,6 +216,15 @@ begin
CalcularImporteTotal;
end;
+procedure TBizPedidoProveedor.SetID_TIENDAValue(const aValue: Integer);
+begin
+ if aValue < 0 then
+ DataTable.Fields[idx_PedidosProveedorID_TIENDA].AsVariant := NULL
+ else
+ inherited SetID_TIENDAValue(aValue);
+end;
+
+
function TBizPedidoProveedor.GetDetalles: IBizDetallesPedidoProveedor;
begin
Result := FDetalles;
diff --git a/Source/Modulos/Pedidos a proveedor/Views/PedidosProveedor_view.dproj b/Source/Modulos/Pedidos a proveedor/Views/PedidosProveedor_view.dproj
index 35dc420b..cb3db07a 100644
--- a/Source/Modulos/Pedidos a proveedor/Views/PedidosProveedor_view.dproj
+++ b/Source/Modulos/Pedidos a proveedor/Views/PedidosProveedor_view.dproj
@@ -41,60 +41,20 @@
Delphi.Personality
Package
-
- False
- True
- False
-
-
- True
- False
- False
-
-
- True
- False
- 1
- 0
- 0
- 0
- False
- False
- False
- False
- False
- 3082
- 1252
-
-
-
-
- 1.0.0.0
-
-
-
-
-
- 1.0.0.0
-
-
-
- PedidosProveedor_view.dpk
-
-
+FalseTrueFalseFalseFalseFalseTrueFalse1000FalseFalseFalseFalseFalse308212521.0.0.01.0.0.0PedidosProveedor_view.dpk
MainSource
-
-
-
-
-
-
-
+
+
+
+
+
+
+
TfEditorDireccionEntregaPedidoProveedor
@@ -146,7 +106,6 @@
-