Can you run this SQL statement against your database:
Select CpnyID,
ShipperID,
InvcNbr
From SOShipHeader (NOLOCK)
Where Status = 'C'
And ShipRegisterID = ''
And ConsolInv = 1
And InvcNbr <> ''
And Exists(select *
from SOEvent (NOLOCK)
where CpnyID = SOShipHeader.CpnyID And ShipperID = SOShipHeader.ShipperID And EventType = 'PINV')
Order By InvcNbr
Does it return any results?
If it doesn't return any results, can you run these two statements and post the result:
select CpnyID, ShipperID, InvcNbr, Status, ShipRegisterID, ConsolInv, InvcNbr
from SOShipHeader
where ShipperID = 'One of your Shipper numbers here.'
select *
from SOEvent
where ShipperID = 'Same Shipper number as above here.'
Thanks,
DB