on 10-01-2008 2:12 AM
How do I inner join OACT table ( acctcode) into this formula?
SELECT T0.[DocNum],T0.[CardCode], T0.[CardName], T0.[Address], T0.[DocStatus], T0.[NumAtCard], T1.[Dscription], T1.[VatSumSy], T1.[LineTotal], (T1.[LineTotal] + T1.[VatSumSy]) AS 'Row Total Incl Tax' FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
Great thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try this:
SELECT T0.DocNum,T0.CardCode, T0.CardName, T0.Address,
T0.DocStatus, T0.NumAtCard, T1.Dscription, T2.Formatcode,
T1.VatSumSy, T1.LineTotal, (T1.LineTotal + T1.VatSumSy)
AS 'Row Total Incl Tax' FROM ORDR T0 INNER JOIN RDR1 T1
ON T0.DocEntry = T1.DocEntry
INNER JOIN OACT T2 ON T2.AcctCode = T1.AcctCode
Where T0.DocType = 'S'
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have come across a query for a draft Ap invoice (no JE created) - does this help?
SELECT T0.DocNum, T0.DocDate, T0.CardName, T0.CardCode, T2.FormatCode, T2.[Segment_1], T2.[Segment_0], T2.[AcctName], T1.Dscription, T1.LineTotal, T1.VatSum FROM [dbo].[ODRF] T0 Inner Join [dbo].[DRF1] T1 ON T1.DocEntry = T0.DocEntry Inner Join [dbo].[OACT] T2 ON T2.AcctCode = T1.AcctCode Where T0.ObjType = '18' and T0.DocType = 'S'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Suda,
This is a 'service' sales order, and although there is no JE, the G/L codes are used in the document.
No way to link codes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AcctCode with which field in ORDR?
There is no Journal Entry created on an Sales Order and we could not link it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
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.