P. 1
Xxpic Form Gb Inv Header V

Xxpic Form Gb Inv Header V

|Views: 20|Likes:
Published by Manikumar Kolla

More info:

Published by: Manikumar Kolla on Jul 13, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

10/31/2013

pdf

text

original

CREATE OR REPLACE VIEW XXPIC_FORM_GB_INV_HEADER_V (CONS_BILLING_NO,BILLING_DATE,SITE_USE_ID,CONS_INV_LINE_NUMBER, PROJECT_ID, DRAF T_INVOICE_NUM, INVOICE_DATE,CURRENCY_CODE, INVOICE_NUMBER,CUSTOMER_TRX_ID

,LEGAL_ENTITY_ID,TERM_ID,TERM_NAME,TERM_DUE_DATE, CUSTOMER_NAME,CUSTOMER_NUMBER, AGREEMENT_NUMBER, BILL_TO_CUSTOMER_NAME, BILL_ TO_CUSTOMER_NUMBER, BILL_TO_ADDRESS1, BILL_TO_ADDRESS2, BILL_TO_ADDRESS3, BILL_TO_CITY, BILL_TO_STA TE, BILL_TO_COUNTRY, BILL_TO_POSTAL_CODE, SHIP_TO_CUSTOMER_NAME, SHIP_TO_CUSTOMER_NUMBER,REGISTRATION_NUMBER, REGISTERED_ NAME, SOURCE_ID, LOCATION_ID, ORG_ADDRESS1,ORG_ADDRESS2,ORG_ADDRESS3,ORG_CITY,ORG_STATE, ORG_COUNTRY, ORG_POS TAL_CODE,COLLECTOR_NAME, COLLECTOR_TELEPHONE_NUMBER, COLLECTOR_FAX,COLLECTOR_EMAIL ) AS select cmp.CONSOLIDATED_INVOICE_NUMBER, ci.BILLING_DATE, ci.SITE_USE_ID, cit.CONS_INV_LINE_NUMBER, pdi.project_id, pdi.DRAFT_INVOICE_NUM, pdi.INVOICE_DATE, pdi.INV_CURRENCY_CODE, trx.TRX_NUMBER, trx.CUSTOMER_TRX_ID, trx.LEGAL_ENTITY_ID, trm.TERM_ID, trm.NAME, trx.TERM_DUE_DATE, billc.CUSTOMER_NAME, billc.CUSTOMER_NUMBER, pa.AGREEMENT_NUM, billc.CUSTOMER_NAME, billc.CUSTOMER_NUMBER, bhl.ADDRESS1, bhl.ADDRESS2, bhl.ADDRESS3, bhl.CITY, bhl.STATE, bhl.COUNTRY, bhl.POSTAL_CODE , shipc.CUSTOMER_NAME, shipc.CUSTOMER_NUMBER, xlr.REGISTRATION_NUMBER, xlr.REGISTERED_NAME, xlr.SOURCE_ID, xlr.LOCATION_ID, orgl.ADDRESS1, orgl.ADDRESS2, orgl.ADDRESS3, orgl.CITY, orgl.STATE, orgl.COUNTRY, orgl.POSTAL_CODE, ac.NAME, ac.TELEPHONE_NUMBER, ac.ATTRIBUTE1, ac.ATTRIBUTE2 from xxpic_consolidated_invoice_map CMP, --cons bill

cons bill.cust_acct_site_id and bhp.party_site_id = bcs.ship cust xle_registrations xlr.location_id = bhp.cons_billing_number and cit. trx. / .bill_to_customer_id and hcp.cust_acct_site_id = bsu. -.customer_trx_id = trx.customer_id = trx.site_use_id = trx.org_id order by cmp.customer_id = trx.bill site pa_draft_invoices_all pdi. -.draft_invoice_num = cmp.org add hz_customer_profiles hcp.cons_inv_id and cit.bill_to_customer_id and shipc.cit. -.source_id = trx.bill site hz_party_sites bhp.org hz_locations orgl.agreement_id and trm.terms pa_agreements_all pa where cmp.draft_invoice_num and pdi.bill site hz_locations bhl.location_id and hcp.bill_to_site_use_id and bcs.collector hz_cust_site_uses_all bsu.term_id and trx.cons_inv_id = ci.collector_id = hcp.project_id and pdi.trx_number and pdi.customer_trx_id and billc.org_id=pdi.draft inv ra_terms_tl trm .RA_INVOICE_NUMBER=trx.bill site hz_cust_acct_sites_all bcs.bill cust no. -. trx ra_customer_trx_all trx.trx --ra_customer_trx_lines_all trl. -.ship_to_customer_id and xlr.trxl pa_customers_v billc.cust_account_id = trx. -.location_id and pdi. -. -.collector ar_collectors ac.CONSOLIDATED_INVOICE_NUMBER.party_site_id and bhl.ar_cons_inv_all CI.legal_entity_id and orgl. -.trx_numbe r. -. -.site_use_id IS NULL and ac. -.term_id = trx.consolidated_invoice_number = ci.customer_trx_id --and trl.customer_trx_id = trx.collector_id and bsu. -. -. nmae pa_customers_v shipc.cons bill ar_cons_inv_trx_all cit.-.project_id = cmp. -.location_id(+) = xlr.agreement_id=pa.CONS_INV_LINE_NUMBER.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->