on 05-09-2010 4:53 PM
Hi
SELECT sum(T1.[TaxSum]) FROM OSTT T0 INNER JOIN RDR4 T1 ON T0.AbsId = T1.staType INNER JOIN ORDR T2 ON T1.DocEntry = T2.DocEntry WHERE (T0.[AbsId]=-90 or T0.[AbsId]=-60 or T0.[AbsId]=-55 or T0.[AbsId]=-10 or T0.[AbsId]=5 or T0.[AbsId]=6) AND (T2.[DocNum] =$[ORDR.docnum] AND T2.[DocDate] =$[ORDR.docdate])
This query is giving erro after i have written line T2.[DocDate] =$[ORDR.docdate]
Thanks
Closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
SELECT sum(T1.TaxSum) FROM
RDR4 T1
INNER JOIN ORDR T2 ON T1.DocEntry = T2.DocEntry
WHERE T1.staType IN (-90,-60,-55,-10,5,6) AND T2.DocNum =$[ORDR.docnum]
Perhaps your Docdate will not work here as it is..
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You may try this same logic in the simplified version:
SELECT sum(T1.TaxSum) FROM
RDR4 T1
INNER JOIN ORDR T2 ON T1.DocEntry = T2.DocEntry
WHERE T1.staType IN (-90,-60,-55,-10,5,6) AND T2.DocNum =$[ORDR.docnum\] AND T2.DocDate =$[ORDR.docdate\]
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
10 | |
6 | |
3 | |
3 | |
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.