on ‎2011 Mar 07 4:09 AM
Dear Experts,
I need to create a report of history transaction, and need to get :
-INVOICE / DP NO
-AMOUNT INVOICE / DP
-INCOMING PAYMENT NO
-AMOUNT INCOMING PAYMENT PER INVOICE / DP
Does anyone can help the relationship table between ORCT and OINV/ODPI?
Thank you,
-Flo
Request clarification before answering.
Ah, i think i got it :
SELECT *
FROM ORCT T0
LEFT JOIN RCT2 T1 ON T1.DocNum=T0.DocNum
LEFT JOIN OINV T2 ON T2.DocNum=T1.DocEntry
That one is for invoice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the correct relationship is....
SELECT * FROM
ORCT T0
LEFT JOIN RCT2 T1 ON T1."DocNum" = T0."DocEntry"
LEFT JOIN OINV T2 ON T2."DocEntry" = T1."DocEntry"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct answer is:
SELECT
FROM
OINV T0
LEFT JOIN RCT2 TC1 ON T0."DocEntry" = TC1."baseAbs" AND TC1."InvType" = 13
LEFT JOIN ORCT TC0 ON TC0."DocEntry" = TC1."DocNum"
WHERE T0."Canceled"='N' AND TC0."Canceled"='N'Yo need to tell the base document type for payment. 13 for invoices.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii. Please refer to this link.
Hope it answers your question.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii,
Try this:
SELECT *
FROM OINV T0 LEFT JOIN ORCT T1 ON T0.[ReceiptNum] = T1.[DocEntry] LEFT JOIN INV1 T2 ON T0.[DocEntry] = T2.[DocEntry] LEFT JOIN RCT2 T3 ON T1.[DocEntry]=T3.[DocNum]
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry by me english, but reply is bad the correct answer is :
OINV.DocEntry = INV1.DocEntry
OINV.DocEntry = RCT2.DocEntry
ORCT.DocNum = RCT2.DocNum
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 40 | |
| 21 | |
| 15 | |
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.