2
select sum(cr.amount), rm.name, cr.type, hr.status , cr.receipt_date , ps.due_date , ps.trx_date , ps.trx_number from AR_CASH_RECEIPT_HISTORY_ALL hr, ar_payment_schedules_all ps, AR_CASH_RECEIPTS_ALL CR, AR_RECEIPT_METHODS rm where ps.cash_receipt_id = cr.cash_receipt_id AND CR.RECEIPT_METHOD_ID = RM.RECEIPT_METHOD_ID and hr.cash_receipt_id = cr.cash_receipt_id and hr.cash_receipt_id = ps.cash_receipt_id --and cr.receipt_date between '18-sep-2011' and '17-oct-2011' and ps.due_date between '28-sep-2011' and '2-oct-2011' and rm.name = '62Ramco Mans Checks' and hr.status <> 'CLEARED' and hr.status <> 'REMITTED' group by rm.name, cr.type, hr.status , cr.receipt_date , ps.due_date , ps.trx_date , ps.trx_number order by ps.due_date How we can validate Cash Forecast Type Sources ? We can make it by using below statements Customer Receipt (Future) : Forecast future period for customer receipt means unleaded receipts Customer_R eciept_(Fut... Customer Invoices : This type forecast unpaid invoices (invoice didn't have receipt select sum(ps.amount_due_remaining) from AR_PAYMENT_SCHEDULES_ALL ps, AR_CASH_RECEIPTS_ALL cr where ps.org_id = 24 and PS.CASH_RECEIPT_ID = CR.CASH_RECEIPT_ID(+) and ps.due_date between '6-sep-2011' and '10-sep-2011' and CR.CASH_RECEIPT_ID is null Customer_in voices --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Supplier Payment (Future) : Payments scheduled to have been cleared before the forecast start date or period, but that are still uncleared. select pc.amount, pc.check_date, pc.anticipated_value_date from AP_CHECKS_all pc where pc.Status_Lookup_Code not in ('CLEARED', 'VOIDED') and pc.org_id = 24 and pc.anticipated_value_date between '6-aug-2011' and '10-aug-2011' order by pc.check_number ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Supplier Payment (Historical) : This Type get all cleared checks select * from AP_CHECKS_all pc where pc.Status_Lookup_Code = ('CLEARED')-- 'VOIDED') --and pc.cleared_base_amount is null and pc.org_id = 24 and pc.cleared_date between '6-aug-2011' and '10-aug-2011' order by pc.check_number Supplier_Pay ment (Futu... -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Supplier_Pay ment (Futu... -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Supplier_Pay ment (Futu... Unfiled Notes Page 1

How We Can Validate Cash Forecast Type Sources

Embed Size (px)

DESCRIPTION

How We Can Validate Cash Forecast Type Sources

Citation preview

  • select sum(cr.amount), rm.name, cr.type, hr.status , cr.receipt_date , ps.due_date , ps.trx_date , ps.trx_number from AR_CASH_RECEIPT_HISTORY_ALL hr, ar_payment_schedules_all ps, AR_CASH_RECEIPTS_ALL CR, AR_RECEIPT_METHODS rm

    where ps.cash_receipt_id = cr.cash_receipt_id AND CR.RECEIPT_METHOD_ID = RM.RECEIPT_METHOD_ID and hr.cash_receipt_id = cr.cash_receipt_id and hr.cash_receipt_id = ps.cash_receipt_id--and cr.receipt_date between '18-sep-2011' and '17-oct-2011' and ps.due_date between '28-sep-2011' and '2-oct-2011' and rm.name = '62Ramco Mans Checks'and hr.status 'CLEARED' and hr.status 'REMITTED'group by rm.name, cr.type, hr.status , cr.receipt_date , ps.due_date , ps.trx_date , ps.trx_numberorder by ps.due_date

    How we can validate Cash Forecast Type Sources ?

    We can make it by using below statements

    Customer Receipt (Future) :

    Forecast future period for customer receipt means unleaded receipts

    Customer_Reciept_(Fut...

    Customer Invoices :This type forecast unpaid invoices (invoice didn't have receipt

    select sum(ps.amount_due_remaining) from AR_PAYMENT_SCHEDULES_ALL ps, AR_CASH_RECEIPTS_ALL crwhere ps.org_id = 24 and PS.CASH_RECEIPT_ID = CR.CASH_RECEIPT_ID(+) and ps.due_date between '6-sep-2011' and '10-sep-2011' and CR.CASH_RECEIPT_ID is null

    Customer_invoices

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Supplier Payment (Future) :Payments scheduled to have been cleared before the forecast start date or period, but that are still uncleared.

    select pc.amount, pc.check_date, pc.anticipated_value_date from AP_CHECKS_all pcwhere pc.Status_Lookup_Code not in ('CLEARED', 'VOIDED') and pc.org_id = 24 and pc.anticipated_value_date between '6-aug-2011' and '10-aug-2011'order by pc.check_number

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Supplier Payment (Historical) : This Type get all cleared checks

    select * from AP_CHECKS_all pcwhere pc.Status_Lookup_Code = ('CLEARED')-- 'VOIDED') --and pc.cleared_base_amount is null and pc.org_id = 24and pc.cleared_date between '6-aug-2011' and '10-aug-2011'order by pc.check_number

    Supplier_Payment (Futu...

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Supplier_Payment (Futu...

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Supplier_Payment (Futu... Unfiled Notes Page 1

  • Supplier Invoices This Type get all unpaid invoices select * from AP_INVOICES_ALL INVwhere inv.invoice_date between '1-aug-2011' and '5-aug-2011' and inv.amount_paid is null and inv.org_id=24

    Supplier_Payment (Futu...

    Peter Nadeen

    Oracle Application Developer

    Unfiled Notes Page 2