Problema con LOCATES y nueva versión de DA. Al realizar un locate sobre un campo de tipo integer con valor real NULL (que es un 0 en integer), el locate no tiene en cuenta el 0 si no el NULL. (detectado en Tecsitel)
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@414 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
b55dd9382c
commit
2feca4472f
@ -219,7 +219,7 @@ begin
|
||||
APedido.Detalles.First;
|
||||
//Se cambia porque puede haber articulos del pedido que no tengan referencia de proveedor
|
||||
// if not APedido.Detalles.DataTable.Locate(fld_ArticulosREFERENCIA, ADetalles.REFERENCIA, []) then
|
||||
if not APedido.Detalles.DataTable.Locate(fld_INVENTARIOID_ARTICULO, ADetalles.ID_ARTICULO, []) then
|
||||
if not APedido.Detalles.Locate(fld_INVENTARIOID_ARTICULO, VarArrayOf([ADetalles.DataTable.FieldByName('ID_ARTICULO').AsVariant]), []) then
|
||||
raise Exception.Create(Format('No se ha encontrado el artículo del pedido con REFERENCIA %s (CopiarArticulosAAlbaran)', [ADetalles.REFERENCIA]));
|
||||
ADetalles.IMPORTE_UNIDAD := APedido.Detalles.IMPORTE_UNIDAD;
|
||||
ADetalles.DESCUENTO := APedido.Detalles.DESCUENTO;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user