web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to show bank account Information in Process report method in SSRS Report

(0) ShareShare
ReportReport
Posted on by 115

BankDetail.jpg

I try to develop " Customized SALES TAX Invoice Report "  of SSRS RDP Report .

in this , i need Join to  CustinvoiceLine with BankDetails Table(something)    ,

so , my question is , what is the exact code , to retrive bank account Information ,Related to custInvoiceLine table   in the process report method ..

my current process report code is below

select * from custInvoiceTable  where custInvoiceTable.OrderAccount == custAccount
     && custInvoiceTable.InvoiceDate >= _FromDate && custInvoiceTable.InvoiceDate <= _Todate
        join custInvoiceLine
        where custInvoiceLine.ServiceAccountingCodeTable_IN == ServiceAccountingCodeTable_IN.RecId
        join ServiceAccountingCodeTable_IN 
       ;
         {
             
                TaxInvoiceTmp.InvoiceId            =      custInvoiceTable.InvoiceId;
                TaxInvoiceTmp.Name                 =      custInvoiceTable.Name;
                TaxInvoiceTmp.InvoiceDate          =      custInvoiceTable.InvoiceDate ;
               TaxInvoiceTmp.GSTIN               =      taxinfo.GSTIN ;
                 TaxInvoiceTmp.PanNo               =      TaxInformationCustTable_IN::findByCustTable( RAMA_TaxInvoiceTmp.InvoiceId ).PANNumber;
                 TaxInvoiceTmp.SAC                 =      ServiceAccountingCodeTable_IN.SAC ;
                 TaxInvoiceTmp.SacDescription      =      ServiceAccountingCodeTable_IN.Description ;
                //  TaxInvoiceTmp.BankName             =    
                //  TaxInvoiceTmp.BankAcNo             =  
                 // TaxInvoiceTmp.BankBranch           = 
                 // TaxInvoiceTmp.RTGS   
                 TaxInvoiceTmp.insert() ;
                 
        }

I have the same question (0)
  • Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    Let me start by formatting your code, so it's easier to read:

    select custInvoiceTable
        where custInvoiceTable.OrderAccount == custAccount
           && custInvoiceTable.InvoiceDate >= _fromDate
           && custInvoiceTable.InvoiceDate <= _todate
        join custInvoiceLine
        join serviceAccountingCodeTable_IN
            where serviceAccountingCodeTable_IN.RecId = custInvoiceLine.ServiceAccountingCodeTable_IN;
          
    taxInvoiceTmp.InvoiceId         = custInvoiceTable.InvoiceId;
    taxInvoiceTmp.Name              = custInvoiceTable.Name;
    taxInvoiceTmp.InvoiceDate       = custInvoiceTable.InvoiceDate ;
    taxInvoiceTmp.GSTIN             = taxInfo.GSTIN ;
    taxInvoiceTmp.PanNo             = TaxInformationCustTable_IN::findByCustTable(RAMA_taxInvoiceTmp.InvoiceId).PANNumber;
    taxInvoiceTmp.SAC               = serviceAccountingCodeTable_IN.SAC ;
    taxInvoiceTmp.SacDescription    = serviceAccountingCodeTable_IN.Description;
    
    taxInvoiceTmp.insert();

    Now there is an obvious bug - you joined custInvoiceLine to custInvoiceTable but you forgot to specify any join condition.

  • Blue Wang Profile Picture
    on at

    Hi Praveen,

    so, my question is, what is the exact code, to retrive bank account Information, Related to custInvoiceLine table in the process report method ..

    Debug your code, are there any errors or other problems? Please share with us, thank you.

  • Suggested answer
    Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    Does the information really exist on lines at all? Isn't the bank account defined on the header only, in CustInvoiceTable.CustBankAccountId?

  • PK mishra Profile Picture
    115 on at

    There is No any Error ,

  • WillWU Profile Picture
    22,361 on at

    Hi Praveen,

    Have you considered taking the report based on CustInvoiceJour/CustInvoiceTrans to get the information of all posted invoices.

    See the thread:

    community.dynamics.com/.../getting-physical-customer-information

  • PK mishra Profile Picture
    115 on at

    Yes

    Will....

  • Verified answer
    PK mishra Profile Picture
    115 on at

    I got solution from below code , thanks  

    select * from CompanyBankAccountTableData where CompanyBankAccountTableData.AccountID==CompanyInfo::find().Bank;

                            {

                               TaxInvoiceTmp.BankAcNo       =   CompanyBankAccountTableData.AccountNum;

                               TaxInvoiceTmp.BankBranch     =   CompanyBankAccountTableData.TEC_BankBranch;

                               TaxInvoiceTmp.RTGS           =   CompanyBankAccountTableData.TEC_IFSC;

                               TaxInvoiceTmp.BankName       =   CompanyBankAccountTableData.Name;

                               TaxInvoiceTmp.Bank_Swift     =   CompanyBankAccountTableData.SWIFTNo;

                             }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans