Quantcast
Channel: Microsoft Dynamics SL
Viewing all articles
Browse latest Browse all 14486

Forum Post: RE: Invoice consolidate with Sale Journal

$
0
0

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


Viewing all articles
Browse latest Browse all 14486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>