Thursday 26 February 2015

Query to retrieve Transaction & Receipt details.

SELECT rcta.trx_number transaction_number ,
  haou1.name operating_unit ,
  rctta.name transaction_type ,
  rcta.trx_date transaction_date ,
  hca.account_name bill_to_customer ,
  hl.address1
  ||' ,'
  ||hl.city
  ||' ,'
  ||hl.state
  ||' ,'
  ||hl.postal_code
  ||' ,'
  ||hl.country bill_to_address,
  gsob.name ledger ,
  rcta.interface_header_attribute1 order_number ,
  rcta.interface_header_attribute2 order_type ,
  rcta.interface_header_context invoice_source ,
  CASE rcta.complete_flag
    WHEN 'Y'
    THEN 'YES'
    WHEN 'N'
    THEN 'NO'
  END transaction_complete ,
  rtt.name payment_terms ,
  haou.name ship_from_organization ,
  rctla.line_number ,
  rctla.line_type ,
  rcta.ship_via ,
  msib.segment1 item ,
  rctla.description item_description ,
  rctla.quantity_ordered ,
  rctla.quantity_invoiced ,
  rctla.quantity_credited ,
  rctla.unit_standard_price item_standard_price ,
  rctla.unit_selling_price item_selling_price ,
  fct.name currency ,
  (rctla.unit_selling_price      * rctla.quantity_invoiced) line_total ,
  (SELECT SUM(unit_selling_price * quantity_invoiced)
  FROM ra_customer_trx_lines_all
  WHERE rcta.customer_trx_id=customer_trx_id
  ) invoice_total,
  NVL(acra.receipt_number,'No receipt created for this transaction') receipt_number,
  (SELECT name
  FROM ar_receipt_methods
  WHERE acra.receipt_method_id=receipt_method_id
  ) receipt_method ,
  (SELECT meaning
  FROM fnd_lookup_values
  WHERE acra.type =lookup_code
  AND lookup_type ='CASH_RECEIPT_TYPE'
  ) receipt_type ,
  acra.receipt_date ,
  acra.amount received_amount ,
  (SELECT meaning
  FROM fnd_lookup_values
  WHERE lookup_code=araa.status
  AND lookup_type  ='PAYMENT_TYPE'
  ) receipt_status ,
  acra.comments ,
  hp1.party_name bank_name ,
  hp.party_name branch_name ,
  cba.bank_account_name ,
  cba.bank_account_num
FROM ra_customer_trx_all rcta ,
  hz_cust_accounts_all hca ,
  hz_cust_acct_sites_all hcasa ,
  hz_party_sites hps ,
  hz_locations hl ,
  ra_terms_tl rtt ,
  gl_sets_of_books gsob ,
  ra_customer_trx_lines_all rctla ,
  ra_cust_trx_types_all rctta ,
  fnd_currencies_tl fct ,
  hr_all_organization_units haou ,
  hr_all_organization_units haou1 ,
  mtl_system_items_b msib ,
  ar_receivable_applications_all araa ,
  ar_cash_receipts_all acra ,
  hz_parties hp1,
  hz_parties hp ,
  ce_bank_accounts cba
WHERE rcta.term_id                              =rtt.term_id      --to get payment terms
AND rcta.invoice_currency_code                  =fct.currency_code--to get currency
AND fct.language                                ='US'
AND rcta.org_id                                 =haou1.organization_id--to get operating unit
AND rcta.sold_to_customer_id                    =hca.cust_account_id  --TO GET CUSTOMER DETAIL
AND hca.cust_account_id                         =hcasa.cust_account_id--to get account site
AND rcta.org_id                                 =hcasa.org_id
AND hcasa.party_site_id                         =hps.party_site_id        --to get account site
AND hps.location_id                             =hl.location_id           --to get site location
AND rctla.inventory_item_id                     =msib.inventory_item_id(+)--to get item
AND rctla.org_id                                =msib.organization_id(+)
AND rcta.set_of_books_id                        =gsob.set_of_books_id   --for set of books
AND to_number(rcta.interface_header_attribute10)=haou.organization_id(+)--ship from organization(warehouse)
AND rcta.cust_trx_type_id                       =rctta.cust_trx_type_id --transaction type
AND rcta.org_id                                 =rctta.org_id
AND rcta.customer_trx_id                        =rctla.customer_trx_id          --for line details
AND rcta.customer_trx_id                        =araa.applied_customer_trx_id(+)--for receipt application
AND rcta.trx_number                             = :transaction_number           --'10037542'
AND araa.cash_receipt_id                        =acra.cash_receipt_id(+)        --to get receipt details
AND acra.remit_bank_acct_use_id                 =cba.bank_account_id(+)         --for beneficiary bank account
AND cba.bank_branch_id                          =hp.party_id(+)                 --for branch name
AND cba.bank_id                                 =hp1.party_id(+);               --for bank name

10 comments :

  1. Are you in a financial crisis, looking for money to start your own business or to pay your bills?
    GET YOUR BLANK ATM CREDIT CARD AT AFFORDABLE PRICE*
    We sell this cards to all our customers and interested buyers
    worldwide,Tho card has a daily withdrawal limit of $5000 and up to $50,000
    spending limit in stores and unlimited on POS.

    YOU CAN ALSO MAKE BINARY INVESTMENTS WITH LITTLE AS $500 AND GET $10,000 JUST IN SEVEN DAYS

    **WHAT WE OFFER**

    *1)WESTERN UNION TRANSFERS/MONEY GRAM TRANSFER*
    *2)BANKS LOGINS*
    *3)BANKS TRANSFERS*
    *4)CRYPTO CURRENCY MINNING*
    *5)BUYING OF GIFT CARDS*
    *6)LOADING OF ACCOUNTS*
    *7)WALMART TRANSFERS*
    *8)BITCOIN INVESTMENTS*
    *9)REMOVING OF NAME FROM DEBIT RECORD AND CRIMINAL RECORD*
    *10)BANK HACKING*
    **email blankatmmasterusa@gmail.com *
    **you can also call or whatsapp us Contact us today for more enlightenment *
    *+1(539) 888-2243*
    **BEWARE OF SCAMMERS AND FAKE HACKERS IMPERSONATING US BUT THEY ARE NOT
    FROM *
    *US CONTACT US ONLY VIA THIS CONTACT **
    *WE ARE REAL AND LEGIT...........

    2020 FUNDS/FORGET ABOUT GETTING A LOAN..*

    IT HAS BEEN TESTED AND TRUSTED

    ReplyDelete
  2. Are you interested in trading bitcoin binary and forex trade where you can earn 100% of your investment daily If you invest as low as $200 you will get a profit of $2,000 after 72 hours if you are intrested you can contact him via email: hackintechnology@gmail.com +12132951376(WHATSAPP)

    ReplyDelete
  3. Are you in a financial crisis, looking for money to start your own business or to pay your bills?
    GET YOUR BLANK ATM CREDIT CARD AT AFFORDABLE PRICE*
    We sell this card to all our customers and interested buyers worldwide,Tho card has a daily withdrawal limit of $5000 and up to $50,000 spending limit in stores and unlimited on POS.
    **WHAT WE OFFER**
    *1)WESTERN UNION TRANSFERS/MONEY GRAM TRANSFER*
    *2)BANKS LOGINS*
    *3)BANKS TRANSFERS*
    *4)CRYPTO CURRENCY MINNING*.
    *5)BUYING OF GIFT CARDS*,
    *6)LOADING OF ACCOUNTS*
    *7)WALMART TRANSFERS*
    *8)BITCOIN INVESTMENTS*
    *9)REMOVING OF NAME FROM DEBIT RECORD AND CRIMINAL RECORD*
    *10)BANK HACKING*
    email blankatmhacker007@yahoo.com
    you can also call or whatsapp us Contact us today for more enlightenment

    +1 (620) 307-3174
    WE ARE REAL AND LEGIT...........2019 FUNDS/FORGET ABOUT GETTING A LOAN..

    IT HAS BEEN TESTED AND TRUSTED

    whatsapp only ===>> +1 (620) 307-3174
    Cheap as $200

    ReplyDelete
  4. email: visacreditcardsolution@gmail.comGET YOUR BLANK ATM CREDIT CARD AT AFFORDABLE PRICE*
    **We sell these cards to all our customers and interested buyers
    worldwide,the card has a daily withdrawal limit of $5000 and up to $50,000
    spending limit in stores and unlimited on POS.**

    **WHAT WE OFFER**

    *1)WESTERN UNION TRANSFERS/MONEY GRAM TRANSFER*
    *2)BANKS LOGINS*
    *3)BANKS TRANSFERS*
    *4)CRYPTO CURRENCY MINNING*
    *5)BUYING OF GIFT CARDS*
    *6)LOADING OF ACCOUNTS*
    *7)WALMART TRANSFERS*
    *8)BITCOIN INVESTMENTS*
    *9)REMOVING OF NAME FROM DEBIT RECORD AND CRIMINAL RECORD*
    *10)BANK HACKING*

    ReplyDelete

  5. Cool way to have financial freedom!!! Are you tired of living a poor life, here is the opportunity you have been waiting for. Get the new ATM BLANK CARD that can hack any ATM MACHINE and withdraw money from any account. You do not require anybody’s account number before you can use it. Although you and I knows that its illegal,there is no risk using it. It has SPECIAL FEATURES, that makes the machine unable to detect this very card,and its transaction can’t be traced .You can use it anywhere in the world. With this card,you can withdraw nothing less than $4,500 a day. So to get the card,reach the hackers via email address : besthackersworld58@gmail.com or whatsapp him on +1(323)-723-2568

    ReplyDelete
  6. Hey
    My name is Klaus Dieter, I work for the French financial institution Crédit Mutuel in cooperation with BNP Paribas. We offer you offers with an interest rate of 1.5% per year, starting with new projects:
    - You have outstanding debts.
    - Buy a new house.
    - Buy a new car.
    - Buy a new apartment or land.
    Get personal loans, business loans.
    If you want loans to start your own business, send us an email:

    bnpfinanzenhilfe@gmail.com

    WhatsApp: +4917683840419

    ReplyDelete
  7. Emergency Cash Loans Hello Everybody, My name is Mrs. Phyllis Sue South. I live in UK London and i am a happy woman today? and i told my self that any lender that rescue my family from our poor situation, i will refer any person that is looking for loan to him, he gave me happiness to me and my family, i was in need of a loan of $350,000.00 to start my life all over as i am a single mother with 2 kids I met this honest and GOD fearing man loan lender that help me with a loan of $350,000.00 U.S. Dollar, he is a GOD fearing man, if you are in need of loan and you will pay back the loan please contact him tell him that is Mrs. Phyllis Sue South that refer you to him. contact Dr. James Eric via email: financialserviceoffer876@gmail.com Whats-App +918929509036

    ReplyDelete
  8. Hello my name is Scott Mcall. I want to use this medium to share to you guys about how my life changed for the better after meeting good hackers, I got $15,000USD while working with them. They are really efficient and reliable, they perform various hack such as.
    BLANK ATM CARD
    PAYPAL HACK TRANSFER
    WESTERN UNION HACK
    MONEY HACK
    BITCOIN INVESTMENT

    Please if you are interested in any of this, contact them via Jaxononlinehackers@gmail.com
    WhatsApp: ‪+1 (219)2714465

    Contact them today and be happy

    ReplyDelete
  9. I never thought that I will be qualify for a loan that Officer Pedro and his loan company granted me which was very smooth and transparent in every conversation that we make through the loan process, I will once again thank him and his loan organization for a job well done by offering me a loan of 22 million Euro with the low rate of 2% annual return they are genuine and loan register company with simple terms and conditions.
    Contact the loan company through pedroloanss@gmail.com whatsapp: + 1-8632310632.

    ReplyDelete
  10. (NO MEMBERSHIP FEE TO JOIN ILLUMINATI), I am giving a testimony on how i became rich and famous today… i was deeply strangled up by poverty and i had no body to help me, and also i searched for help from different corners but to no avail… I see people around me getting rich but to me i was so ashamed of my self so i met a man on my way he was very rich and he was a doctor so he told me something and i thought over it through out the day so the next day i looked up and i keep repeating what he said to me.” if you want to get rich quick and be famous” you need to cross your heart and do what is in your mind so i tried all i could in other for me to do as he said so later on i told my fellow friend about this same thing then my friend was interested in my suggestions so i decided to look in the internet and i found an email of an agent Jackson illuminatiriches50085@gmail.com and we decided to contact them and fortunately we did as they instructed us to do and later, they told us to get some requirements and all the rest… so this initiation took us just a week and later on the great Illuminati gave us $7,000,000.00 to start up our lives…. and now am testifying that if in any case you want to join any great Illuminati all you need to do is for you to contact him on whats-app +1(409)2993890.

    ReplyDelete