Skip to Content
author's profile photo Former Member
Former Member

make a query , that will show credit and debit in system and local currency?

hi, I wan to make a query , regarding trial balance that will show my credits and debits in system currency and local currency , how i do it?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Nov 08, 2019 at 05:02 AM

    DEAR ,

    TRY THIS

    SELECT distinct T1."Account", T2."AcctName", Sum(T1."Debit") AS "Debit",
    Sum(T1."Credit") As "Credit", Sum (T1."Debit" - T1."Credit") As "Balance" ,T1."Project"
    FROM OJDT T0
    INNER JOIN JDT1 T1 ON T0."TransId" = T1."TransId"
    INNER JOIN OACT T2 ON T1."Account" = T2."AcctCode"
    WHERE T0."RefDate" >='[%0]' AND T0."RefDate" <='[%1]'
    GROUP BY T1."Account",T2."AcctName",T1."Project"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 08, 2019 at 08:51 AM

    Dears,

    I would add to Mr. Mohd query's the attached modification showing the total in system currency as requested:

    SELECT distinct T1."Account", 
    				T2."AcctName",
    				Sum(T1."Debit") AS "Debit",
    				Sum(T1."Credit") As "Credit",
    				Sum (T1."Debit" - T1."Credit") As "Balance LC",
    				Sum(T1."SysDeb") AS "Debit SC",
    				Sum(T1."SysCred") As "Credit SC",
    				Sum (T1."SysDEb" - T1."SYSCred") As "Balance SC",
    
    
    				T1."Project"
    FROM OJDT T0
    INNER JOIN JDT1 T1 ON T0."TransId" = T1."TransId"
    INNER JOIN OACT T2 ON T1."Account" = T2."AcctCode"
    WHERE T0."RefDate" >='[%0]' AND T0."RefDate" <='[%1]'
    GROUP BY T1."Account",T2."AcctName",T1."Project"
    

    Thank you,

    Aziz

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2017 at 11:31 AM

    Hi

    Try accessing OJDT and JDT1 table. Also for the SYSCODE field you need to access/link with the OACT table to find the value.

    I hope this helps.

    Regards

    Iftikhar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2017 at 11:31 AM

    Hi

    Try accessing OJDT and JDT1 table. Also for the SYSCODE field you need to access/link with the OACT table to find the value.

    I hope this helps.

    Regards

    Iftikhar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 07, 2019 at 12:00 PM

    Hi,

    Use the following query

    select Debit, Credit, SYSCred, SYSDeb, FCDebit, FCCredit from JDT1

    Thanks,

    Karthik Kannan S

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.