AR aging by the account request

Hello

I am building a vision that should have the information of aging for all customers who have a remaining amount.


Here I have 1 query that gives all the rights for all clients.

Select trx_number
ps.trx_date
ps.due_date
ps.invoice_currency_code
sob.currency_code
ps.class
ps.amount_due_original
, ps.amount_due_original * nvl (exchange_rate, 1) acctd_amount_due_original
ps.amount_due_remaining
ps.acctd_amount_due_remaining
ps.status
ps.cust_trx_type_id
ps.customer_id
ps.customer_site_use_id
ps.customer_trx_id
ps.cash_receipt_id
ps.gl_date
ps.org_id
of gl_sets_of_books ob
, hr_operating_units or
ar_payment_schedules_all ps
where sob.set_of_books_id = ou.set_of_books_id
and ou.organization_id = ps.org_id
and ps.status = 'OP '.
and ps.org_id is not null
order of ps.org_id asc, desc ps.due_date

I added buckets and other details of the query in the form

Select rc.customer_number
rc2. CUSTOMER_NUMBER Brand_Cust_Number
rc. CLIENT_NAME
rc2. Client_name Brand_Customer_Name
ps.trx_number
ps.trx_date
ps.due_date
ps.class
ps.status
ps.cust_trx_type_id
ps.customer_id
nvl (rcta.attribute5, ps. CUSTOMER_ID) Brand_Customer_id
ps.customer_site_use_id
ps.customer_trx_id
ps.cash_receipt_id
ps.gl_date
sob.set_of_books_id
sob.chart_of_accounts_id
gcc. Company of SEGMENT1
gcc. SEGMENT2 location
gcc. Department of SEGMENT3
gcc. SEGMENT4 account
gcc. Future_1 SEGMENT5
gcc. SEGMENT6 Future_2
gcc. SEGMENT7 Future_3
gcc. CONCATENATED_SEGMENTS gl_cc_concat_kff
gcc. CODE_COMBINATION_ID
ps.invoice_currency_code invoice_currency_code
sob.currency_code SOB_Currency_Code
ps.amount_due_original inv_curr_amount_original
, round (ps.amount_due_original * nvl (ps.exchange_rate, 1), sob_acctd_amount_due_original 2).
ps. AMOUNT_DUE_REMAINING
ps. ACCTD_AMOUNT_DUE_REMAINING sob_acctd_amount_due_REMAINING
ps.org_id
round(sysdate-ps.due_date) No_Of_Days
sysdate Run_date
as_of_date sysdate
, (CASE WHEN round(sysdate-ps.due_date) < 0 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Current_amt
, (CASE WHEN round(sysdate-ps.due_date) between 0 and 30 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Days_0_to_30
, (CASE WHEN round(sysdate-ps.due_date) between 31 and 60 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Days_31_to_60
, (CASE WHEN round(sysdate-ps.due_date) between 61 and 90 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Days_61_to_90
, (CASE WHEN round(sysdate-ps.due_date) between 91 and 120 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Days_91_to_120
, (CASE WHEN round(sysdate-ps.due_date) 121 to 180 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Days_121_to_180
, (CASE WHEN round(sysdate-ps.due_date) > 180 THEN AMOUNT_DUE_REMAINING END) Inv_Cur_Days_180_plus
(CASE WHEN round(sysdate-ps.due_date) < 0 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Current_amt
(CASE WHEN round(sysdate-ps.due_date) between 0 and 30 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Days_0_to_30
(CASE WHEN round(sysdate-ps.due_date) between 31 and 60 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Days_31_to_60
(CASE WHEN round(sysdate-ps.due_date) between 61 and 90 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Days_61_to_90
(CASE WHEN round(sysdate-ps.due_date) between 91 and 120 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Days_91_to_120
(CASE WHEN round(sysdate-ps.due_date) 121 to 180 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Days_121_to_180
(CASE WHEN round(sysdate-ps.due_date) > 180 THEN ACCTD_AMOUNT_DUE_REMAINING END) sob_Cur_Days_180_plus
of gl_sets_of_books ob
, hr_operating_units or
ar_payment_schedules_all ps
ra_customers rc
ra_cust_trx_line_gl_dist_all rctlda
gl_code_combinations_kfv gcc
ra_customer_trx_all ATCM
ra_customers rc2
where sob.set_of_books_id = ou.set_of_books_id
and ou.organization_id = ps.org_id
and ps.status = 'OP '.
and ps.org_id is not null
and ps. CUSTOMER_ID = rc. CUSTOMER_ID
and ps. CUSTOMER_TRX_ID = rctlda. CUSTOMER_TRX_ID
and rctlda. ACCOUNT_CLASS = "REC".
and rctlda.latest_rec_flag = 'Y '.
and rctlda. CODE_COMBINATION_ID = gcc. CODE_COMBINATION_ID
and ps. CUSTOMER_TRX_ID = ATCM. CUSTOMER_TRX_ID
and gcc.segment4 in ('111100 ',' 111102 ', ' 4110000')
and nvl (ATCM. ATTRIBUTE5, ps. CUSTOMER_ID) = rc2. CUSTOMER_ID
and ps. CUSTOMER_ID = 14273
order of rc.customer_name

This query, Miss me record payments, because of this I am unable to get the appropriate customer balance.

actually I could go out straight from request 1 but I need to restrict to certain accounts, as I wrote in the second query where clause.

to get to what I wrote a query more identical to the second, but instead of ra_cust_gl_dist_lines_all I used ar_receivables_applications_all to get code_combintaion with money received id.

2nd request is the perfect job and giving all the details and the amounts, but it lacks the details of payments that I said in the above.

Coud you please tell me how get/payments/receipts, applied a request by customer, or if you have the complete query of aging.

Thank you
THERE

Hello
I have the aging AR query but with the following SYNONYM.

AR_RECEIVABLES_TRX

Kind regards
Taj

Tags: Oracle Applications

Similar Questions

  • Report, which reflects the age of the service request with respesct to the Regio

    Hello


    Is there a way we could create a report that displays the following:

    The age (days) of the North-South Centre

    90 + 21 1 1
    60 - 79 2 32 2
    30-59 2 3 2
    10-29 1 2 4
    09 - 1 1 1 1


    What we are trying to do is to create a report that shows that how much SR are open age given to each region. For example one of the SRs, with age > 90 are open and which region.

    Note: The age = Diff between SR Date of opening and the current Date

    Any help would be really appreciated.


    Thank you

    Ahmed

    Hi, something like this can help you

    CASE
    WHEN (TimestampDiff (SQL_TSI_DAY, "Closed Date". To date, "Date Opened". (Date) > 90) THEN ' AGE > 90'
    WHEN (TimestampDiff (SQL_TSI_DAY, "Closed Date". To date, "Date Opened". Date) > 59 AND TimestampDiff (SQL_TSI_DAY, "Closed Date". To date, "Date Opened". Date)< 91)="" then="" 'age="" 60="" -="">
    ANOTHER '' nothing. ''
    END

    -John CRMIT

  • need help with the account request

    Hello

    I'm terrible @ oracle, so bear with me. I am trying to use count with my query, but it has rows in different tables.

    I want my query basically add one column of another table, but they do not form part of the County.

    Say that table1 table2, table3. My account is good between the first two tables (buyers, 5). But given that in table 3, there are double values (or accounts in this box (3), the multiple that many County) (15)

    I need to read buyers, 5, # account. I tried separate and one Union, but nothing helped.

    Help me please.

    If I understand you correctly, you want to count the records in table1 and table2 that have a one to one relationship, but you need to show additional data from table3 which has a one-to-many relationship. If this is correct, you must use a view online to join table1 and table2, then join this view online table 3 to display the data. Something along the lines of:

    SELECT v.col1, v.col2, v.col3, v.col4, v.cnt, t3.col1 t3col1, t3.col2 t3col2
    FROM (SELECT t1.col1, t1.col2, t2.col1 col3, t2.col2 col4, COUNT(*) cnt
          FROM table1 t1, table2 t2
          WHERE  and
                
          GROUP BY t1.col1, t1.col2, t2.col1, t2.col2) v,
         table3 t3
    WHERE 
          
    

    John

  • Microsoft please let us change our age on the xbox live account

    Microsoft please let us change our age on the xbox live, my account is on TEENAGER so I can't make friends. I don't want to do another gamer label because its goes a bunch of months to get my peaple achievements already want to be my friend but I also can't acept friend reqests.

    Jaime

    You may be able to transfer your gamertag to another ID Windows Live ID. If you are on a child's account, then you will need to contact the person who made the parent account to adjust your settings. See the link below on how to transfer your gamertag. If it does not my only suggestion would be to create a new Windows Live ID.

    http://support.Xbox.com/en-us/billing-and-subscriptions/account-management/manage-Live-ID

  • My hotmail account has been blocked. I tried to send a request to reopen the account. It is said that you will get a feedback within 24 hours. There are now more than 48 and I can't hear anything

    Original title: hotmail

    My hotmail account has been blocked. I tried to send a request to reopen the account. Itsays you will get feedback within 24 hours, there are now more than 48 and I hearnothing...
    What should I do?

    Hello

    This problem is specific to Hotmail, I you should post the question in the forums of Windows Live e-mail.
    http://windowslivehelp.com/forums.aspx?ProductID=15

  • Worst ever customer service! Took a month to solve my request for an account that was signed for fraud with my bank details, and would not deliver even a refund of $1 for fraudulent use of the account. If they treat their employees the way cu

    Worst ever customer service! Took a month to solve my request for an account that was signed for fraud with my bank details, and would not deliver even a refund of $1 for fraudulent use of the account. If they treat their employees the way of customer service treats its customers, not surprising that the service is the worst I've ever met.  Bad form Adobe.  What a month subscription pay you? Adobe Community

    If your card has been used fraudulently to subscribe, you should be able to get the charges reversed with your credit card company. Not to defend the whole Adobe Customer Service, but in this case Adobe has no way to tell if it is a fraudulent use.

  • Error in the seizure of the accounts freeze Thunderbird so can't access accounts correct.

    I inadvertently detailed a pop3 as an imap account. Firefox cannot have a non-existent account and request for readmission of password, this may not work and so Thunderbird freezes, so that I can't access the account of adjustment to correct or access tools / accounts to remove the download.

    When asked for the password click on Cancel.
    then pass in "offline" mode
    Click on two screen blue low location icon in the status bar to the left.
    It must pass two black screen offline icon.

    then Tools > accounts settings
    Select the name of the account
    Click on "Actions account."
    Select 'delete account '.
    Click Ok

    Then click the two black screen icon to return to online mode.
    Add new existing e-mail account, and then verify that it is set to Pop before selecting 'Done '.

  • The import Skype contacts you return the Contact request?

    I want to import the contacts from my old Skype account, exported in my new Skype account.

    Skype will return the contact request to all the imported contacts?

    N ° you need me to send the invitation contact for each of the imported contacts.

  • I need to access the e-mail account of my dead son, the account is locked and I don't know the password, nor answers to security questions... Help!

    My son's e-mail address is * address email is removed from the privacy * I tried to reset the password, but the account is locked... apparently, someone else tried to access his account.  My address is * address email is removed from the privacy *.  I have a death certificate, his date of birth and place of birth, but cannot go further.  I need to access his account to clear and close.  In addition, need access to his FaceBook page that requires the use of its email account...  He died last December, and people still hold on him through these 2 avenues... just want to get them closed.  I spoke with Windows Live and also Microsoft support and they just pass me to other phone numbers that don't work or back to Windows Live internet support... go into vicious circles now and don't get no where...

    Please help me!

    Rodney Voris

    While your application may very well be authentic, it could also be interpreted as a surreptitious attempt to bypass security.

    It is in the terms of use and the Code of conduct of the responses of these forums to request or provide assistance to the cracking a password. Do not forget that you agreed to these and review if necessary.

    You can view the policy of Microsoft about lost or forgotten passwords (KB189126) for more information on what resources are available to you.

    The only advice I can offer you is to use the computer of your son end access to e-mail and social networking areas. The passwords can be recalled on the computer account.

    With all that said, you have my deepest condolences for your loss.

  • Safety code for the account verification can not receive Hotmail sign in

    Hotmail now wants to verify my sign in outlook, but provides only the old phone numbers to send a security code.  Can not use live help without connecting to the account, which I am now blocked to make this verification process.  Online form for having watched question requires further information I have for the automated control agree to resolve my problem.  How can I talk to a human being to solve this circle of catch 22.  I have the right address, password and even the original account security questions and answers.

    Hi & welcome,

    As your question will require personal information to be exchanged between you and Outlook.com support team please click here to access the help.

    Select the error you must help with and fill in the information requested on the next page.

    You must be connected to a Microsoft account to access the form.

    If you are unable to access your main account, you can use another account (if you have one), or create a new.

    You can read more information about codes & blocked accounts here

  • It's true that Windows Live team asks customers to re-confirm their names, password and things like that before a certain date or they will delete the account?

    I received the following message and it's in my junk e-mail folder, and I don't know if I should respond? Dear account owner

     

    It is Windows Live Hotmail e-mail and we send it to you for your safety. Due to the anonymous registration of accounts that causes congestion at our service, we close some accounts and your account was among those to delete. The purpose of this message is to respond to you to verify that you are the owner of this account and using it again by completing the information below after clicking the button:


    * User name:...
    * Password:...
    * Date of birth:...
    * Country or territory:. ......

    Warning! The account holder who fails to check access to his account after two weeks of receiving this warning will lose his account permanently.
     
    You have received this e-mail because you have subscribed to Windows Live Alerts . Presents an unmonitored email account. This email was sent by , of the Microsoft Corporation, One Microsoft Way, Redmond, WA 98052. © 2011 Microsoft Corporation. All rights reserved

    It's a scam.  Don't answer and certainly do not provide them with any information they have requested.

  • I get emails saying: Dear user of the account, ask for password etc. What should I do?

    Dear user,

    This email is from Windows Live Customer Care®. We will send it to all owners of hotmail account for upgrade of the account. We cross the network congestion due to the anonymous registration of hotmail e-mail accounts. To avoid this, we close inactive accounts. Your account should be disabled.

    We send this mail to you so that you can check and let us know if your account is still valid. Click the reply button and fill in your information:

    Full Name..........................................................

    User Name:.......................................................

    Password:..........................................................

    Alternative e-mail:...
     
    Password:............................................................

    Year of birth: ......................................................

    Country or territory:...


     
    After you follow the instructions in the sheet, your account will not be interrupted and will continue as usual. Thanks for your attention to this request. We apologize for the inconvenience.

    Caveat! Account owners who refuse to update their accounts after 24 hours of receipt of this warning will definitely lose their accounts.

    Sincerely,
    The Windows Live team
    Microsoft Corporation. Microsoft respects your privacy. Please read our online privacy statement. Microsoft Corporation, One Microsoft way, Redmond, WA 98052, United States


    Please see the bulletin: avoid scams that use the Microsoft name fraudulently

  • Dear user of the account, this e-mail is Windows Live Customer Care it's a fake?

    Dear user,

    This email is from Windows Live Customer Care®. We will send it to all owners of hotmail account for upgrade of the account. We cross the network congestion due to the anonymous registration of hotmail e-mail accounts. To avoid this, we close inactive accounts. Your account should be disabled.

    We send this mail to you so that you can check and let us know if your account is still valid. Click the reply button and fill in your information:

    Full Name.............................................................

    User Name:..........................................................

    Password:...........................................................

    Alternative e-mail:...
     
    Password:...........................................................

    Occupation:.........................................................

    Year of birth: .......................................................

    Country or territory:...


     
    After you follow the instructions in the sheet, your account will not be interrupted and will continue as usual. Thanks for your attention to this request. We apologize for the inconvenience.

    Caveat! Account owners who refuse to update their accounts after 24 hours of receipt of this warning will definitely lose their accounts.

    Sincerely,
    The Windows Live team
    Microsoft Corporation. Microsoft respects your privacy. Please read our online privacy statement. Microsoft Corporation, One Microsoft way, Redmond, WA 98052, United States

    • noted, this and want to know if it is of fatty and why I wonder this information? I had my account for more than 7 years and no problem. Thank you

    Hello

    Its a SCAM! To steal your password and anti-SPAM or SCAM your contacts.

    Unfortunately the answers is a site of support of peers supported and has no real influence
    with Windows Live.

    Check with Windows Live Support and Forums

    Windows Live Mail Forums
    http://www.windowslivehelp.com/forums.aspx?ProductID=15

    Windows Live Solutions
    http://www.windowslivehelp.com/solutions.aspx?ProductID=15

    Windows Live Solution Center
    http://www.windowslivehelp.com/

    Compromised account - unauthorized account access
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Program (Explorer, Notrpad, any) "stopped working" window on the print request or Ctrl-P

    Vista operating system. Whenever I try to print, menu, Ctrl-P or other, I get a window saying that the program has ceased to operate and close the program. Have done a lot of things to fix: reinstall the printer, download the new driver, repair of boot F8 system, return to previous IE, chat with HP since it is a HP printer, cursing, stand up on my fu... en ' head. The devil won't go away.

    Hi BikeBun,
     
    1. the problem occurs only on the above requests?
    2. what changes have been made to your machine before the problem?
     
    I suggest that you follow the steps mentioned below.
     
    Step 1:
    It can also be caused by a software application third party in conflict with the printer. I wish that you perform clean boot on your computer in order to eliminate conflicts of third party software.
     
    Note: Follow step 7 to reboot your machine as usual.
     
    Step 2:
    Test the issue in a new user account.
     
    See also:
     
    Step 3:
     
    Perform the scan SFC to verify if this is caused by a lack or a damaged system file.

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • The link "forgotten password?" asks me to enter the email associated with the account...

    I forgot my password. I can't create a new account because I get an error message saying that my e-mail address is already associated with an account.  So, I use the link 'forgot password?'.  The link request my email address I provided.  Then I get an error message asking me to enter the email associated with the account.  I'm stuck.  What should I do?

    I'm sorry that you have this problem.

    If you have a snapfish account, use your snapfish e-mail address and the password to connect to ePrintCenter.com with. If you do not have an account, snapfish, go to snapfish.com and create an account and then use the information that you create on snapfish to connect to ePrintCenter.com

Maybe you are looking for