#355 Listo para subida 1.0.1
git-svn-id: https://192.168.0.254/svn/Proyectos.Noviseda_FactuGES2/trunk@95 f33bb606-9f5c-448d-9c99-757f00063c96
This commit is contained in:
parent
f6028e4dd5
commit
d2d97e8ea5
BIN
Build/Build.fbl6
BIN
Build/Build.fbl6
Binary file not shown.
@ -59,6 +59,9 @@ end;
|
||||
procedure TReferenciasController.FiltrarEmpresa(AReferencias: IBizReferencia);
|
||||
var
|
||||
Condicion: TDAWhereExpression;
|
||||
Condicion1: TDAWhereExpression;
|
||||
Condicion2: TDAWhereExpression;
|
||||
|
||||
begin
|
||||
if AReferencias.DataTable.Active then
|
||||
AReferencias.DataTable.Active := False;
|
||||
@ -66,9 +69,14 @@ begin
|
||||
// Filtrar las facturas actuales por empresa
|
||||
with AReferencias.DataTable.DynamicWhere do
|
||||
begin
|
||||
// (ID_EMPRESA >= ID)
|
||||
Condicion := NewBinaryExpression(NewField('', fld_ReferenciasID_EMPRESA),
|
||||
|
||||
// (ID_EMPRESA = ID)
|
||||
Condicion1 := NewBinaryExpression(NewField('', fld_ReferenciasID_EMPRESA),
|
||||
NewConstant(AppFactuGES.EmpresaActiva.ID, datInteger), dboEqual);
|
||||
// (ID_EMPRESA = NULL)
|
||||
Condicion2 := NewBinaryExpression(NewField('', fld_ReferenciasID_EMPRESA), NewNull(), dboEqual);
|
||||
|
||||
Condicion := NewBinaryExpression(Condicion1, Condicion2, dboOr);
|
||||
|
||||
if IsEmpty then
|
||||
Expression := Condicion
|
||||
|
||||
@ -21,7 +21,7 @@ object srvReferencias: TsrvReferencias
|
||||
Name = 'IBX'
|
||||
SQL =
|
||||
'SELECT '#10' ID, ID_EMPRESA, CODIGO, VALOR, DESCRIPCION'#10' FROM'#10' ' +
|
||||
' REFERENCIAS'#10' WHERE ID_EMPRESA IS NULL'#10' or {Where}'#10
|
||||
' REFERENCIAS'#10' WHERE {Where}'#10
|
||||
StatementType = stSQL
|
||||
ColumnMappings = <
|
||||
item
|
||||
|
||||
Binary file not shown.
@ -14,7 +14,7 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "FileVersion", "1.0.1.0\0"
|
||||
VALUE "ProductVersion", "1.0.1.0\0"
|
||||
VALUE "CompileDate", "viernes, 12 de febrero de 2010 10:26\0"
|
||||
VALUE "CompileDate", "viernes, 12 de febrero de 2010 10:53\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
Reference in New Issue
Block a user