on 08-24-2009 11:57 AM
How can I write a report showing all Sales Deliveries with the respective serial numbers related to each delivery note?
Try this one:
select
T0.DocNum
, T1.ItemCode
, T1.Dscription
, T3.IntrSerial
, T0.CardCode
, T0.CardName
from
dbo.ODLN T0 INNER join dbo.DLN1 T1 on T0.DocEntry = T1.Docentry
INNER join dbo.SRI1 T2 on T2.BaseNum = T0.DocNum AND T2.ItemCode = T1.ItemCode
INNER join dbo.OSRI T3 on T3.SysSerial = T2.SysSerial AND T3.ItemCode = T2.ItemCode
where
T1.ItemCode LIKE '[%0\]%' and T0.CardCode like '[%2\]'
order by
T0.CardCode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, it worked!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any ideas please guys?
I have the following query, but for every transaction it is returning all the serial numbers in the db related to that item code:
select
T0.DocNum
, T1.ItemCode
, T1.Dscription
, T2.IntrSerial
, T0.CardCode
, T0.CardName
from
ODLN T0 left outer join DLN1 T1 on T0.DocEntry = T1.Docentry
left outer join OSRI T2 on T2.ItemCode = T1.ItemCode
where
T1.ItemCode = 'SCG000018' and T0.CardCode not like 'VFRC%'
order by
T0.CardCode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I forgot to mention that I need to see one list with the business partner to who the deliveries were made.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See it in Inventory -->Inventory Reports
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.