Thursday, 26 September 2019

Oracle APPS R12 Query to find PAYMENT AGAINST INVOICE

SELECT b.segment1 vendor_number,
       b.vendor_name vendor_name,
       c.vendor_site_code,
       c.pay_group_lookup_code,
       a.invoice_num invoice_number,
       a.invoice_date,
       a.gl_date,
       d.due_date,
       a.invoice_currency_code,
       a.invoice_amount,
       a.amount_paid,
       a.pay_group_lookup_code,
       d.payment_priority,
       (SELECT MAX (check_date)
          FROM ap_checks_all aca, ap_invoice_payments_all aip
         WHERE aca.CHECK_ID = aip.CHECK_ID AND aip.invoice_id = a.invoice_id)
          "Last Payment Made on",
          a.cancelled_date
  FROM apps.ap_invoices_all a,
       apps.ap_suppliers b,
       apps.ap_supplier_sites_all c,
       apps.ap_payment_schedules_all d,
       apps.ap_invoice_payments_all ap,
       ap_checks_all ac
WHERE     a.vendor_id = b.vendor_id
       AND a.vendor_site_id = c.vendor_site_id
       AND b.vendor_id = c.vendor_id
       AND a.invoice_id = d.invoice_id
       AND ap.invoice_id = a.invoice_id
       AND ac.CHECK_ID = ap.CHECK_ID
       and ac.STATUS_LOOKUP_CODE <> 'VOIDED'
       AND a.org_id = 89
       and a.invoice_id= 1234
       AND a.pay_group_lookup_code IN ('DISTRIBUTOR')
       AND ac.check_date BETWEEN TO_DATE ('01-Apr-2014', 'DD-MON-YYYY') AND TO_DATE ('30-Jun-2014 23:59:59', 'DD-MON-YYYY HH24:MI:SS')


Thanks
Amar Alam

15 comments:

Julia Loi said...

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
mobile phone repair in Novi
iphone repair in Novi
cell phone repair in Novi
phone repair in Novi
tablet repair in Novi
ipad repair in Novi
mobile phone repair Novi
iphone repair Novi
cell phone repair Novi
phone repair Novi

hrroman said...

If you are stuck with your management assignment then in this case you can opt for our Management Assignment. we provide the best assignment help online.We also provide Risk Management Assignment for students across the globe. for more information contact us +16692714848

tech zone said...

all123movies.pictures Nice blog, keep it up for more updates. Get the best IVF treatment by Noble IVF in Aligarh by infertility experts.

lovemaster said...

vidalista20france.com
Toptada 20
Vidalista-20

TOM said...

Well I am often stuck in Oracle APPS R12 as I have no idea how to run it. This gave me a lot of knowledge. Thanks for sharing it. Now it's time to avail Inbound Call Center Services for more information.

vr said...

"Nice insights! Our boomi course
helps you master data integration, error handling, API management, and deployment with practical, job-focused projects."

vr said...
This comment has been removed by the author.
ab initio course said...

SFDC Admin Training
SFDC Admin Training equips learners with the skills required to manage Salesforce effectively. It emphasizes real-time scenarios and hands-on practice. Trainers guide students through various administrative tasks. It’s a reliable way to build expertise in Salesforce

vr said...

"Excellent read! Our dell boomi online training
helps professionals build practical skills in cloud and on-prem integration, workflow automation, and API management to enhance career growth and industry readiness."

salesforce cpq course said...

cpq training is explained nicely here with real-world relevance and benefits.
cpq training

salesforce cpq course said...

Salesforce CPQ training is one of the best ways to understand how modern sales teams manage complex pricing and quoting processes. A well-structured course makes it easier to learn configuration, pricing rules, and automation with real-time examples.salesforce cpq training

salesforce cpq course said...

Great overview of Salesforce CPQ training! It’s really helpful for beginners who want to understand pricing and quoting automation in Salesforce.salesforce cpq training

salesforce cpq course said...

I’ve been exploring different platforms, and ServiceNow training seems like a great way to get into ITSM and workflow automation. Would love to hear recommendations from anyone who has completed it recently.training servicenow

salesforce cpq course said...

The MuleSoft course is a great way to understand API integrations and build strong skills for modern enterprise applications.mulesoft course

salesforce cpq course said...

I recently came across this blog while looking for ways to enhance my Salesforce skills. The insights on Salesforce CPQ are really practical! Enrolling in a Salesforce CPQ training course really helped me understand pricing automation, quoting workflows, and product configuration in depth. Anyone looking to streamline their sales processes should definitely consider formal training."mulesoft course

Post a Comment