Error al cambiar a "Gestion por lotes"

Lo que sucede es que no me lo estaba permitiendo.
Corrí una consulta inicialmente que verificaba entre ordenes de fabricación y ordenes de compra, pero no me mostraba información, (yo ya había cerrado - cancelado) esos documentos.

Consulté con el Partner y lograron encontrar la causa, existen documentos abiertos tales como:
Devoluciones de mercancías, Notas de crédito de proveedores, Recepción de mercancías, etc. que no se muestran como parte del comprometido ni de la cantidad pedida.

La consulta verifica en varios tipos de documento.

Slds
Alfonso Azofeifa

La consulta es esta, espero que les sirva:

select 'Recepcion de Mercancias', T2."DocEntry", T2."DocNum" 
       from "PDN1" T1 Inner Join "OPDN" T2 on T1."DocEntry"=T2."DocEntry"
     where T1."TargetType"<>'21'
         and T1."LineStatus"='O'
         and T1."ItemCode"=[%0] 
UNION ALL
    select 'Devolucion de Mercancias', T2."DocEntry",  T2."DocNum"
      from "RPD1" T1 Inner Join "ORPD" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."TrgetEntry" is null
        and T1."BaseType"<>'20'
        and T1."ItemCode"=[%0]
        and T1."LineStatus"='O'
UNION ALL
    select  'Factura de proveedores', T2."DocEntry",  T2."DocNum"
      from "PCH1" T1 Inner Join "OPCH" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."ItemCode"=[%0]
        and T1."LineStatus"='O'
        and T1."BaseEntry" is null
UNION ALL
    select  'Nota crédito proveedores', T2."DocEntry",  T2."DocNum"
      from "RPC1" T1 Inner Join "ORPC" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."ItemCode"=[%0]
        and T1."LineStatus"='O'
UNION ALL
    select 'Entrega', T2."DocEntry",  T2."DocNum"
      from "DLN1" T1 Inner Join "ODLN" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."TargetType"<>'16'
        and T1."ItemCode"=[%0]
        and T1."LineStatus"='O'
UNION ALL
    select 'Devoluciones', T2."DocEntry",  T2."DocNum"
      from "RDN1" T1 Inner Join "ORDN" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."TrgetEntry" is null
        and T1."BaseType"<>'15'
        and T1."ItemCode"=[%0]
        and T1."LineStatus"='O'
UNION ALL
    select 'Factura de Clientes', T2."DocEntry" ,  T2."DocNum"
      from "INV1" T1 Inner Join "OINV" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."ItemCode"=[%0] 
        and T1."LineStatus"='O'
        and T1."BaseEntry" is null
UNION ALL
    select 'Nota de Credito', T2."DocEntry" ,  T2."DocNum"
      from "RIN1" T1 Inner Join "ORIN" T2 on T1."DocEntry"=T2."DocEntry"
    where T1."ItemCode"=[%0]
        and T1."LineStatus"='O'
UNION ALL
     select 'Orden de produccion', T0."DocEntry", T0."DocNum"
      from "OWOR" T0 INNER JOIN "IGN1" T1 ON T1."BaseEntry" = T0."DocEntry" AND T1."BaseType" = '202'
    where T0."ItemCode" = [%0]
        and T0."Status"= ('R')
6 Me gusta