-- purpose: 应付标准发票核销预付款发票中的一行 -- 12.2.6 环境 -- author:jenrry create_date: 2017-06-08 declare l_error_message VARCHAR2(2000); p_prepay_line_num number; l_prepay_dist_info ap_prepay_pkg.prepay_dist_tab_type; l_result_boolean BOOLEAN; begin BEGIN FND_GLO…
--取消核销 created by jenrry 20170425 DECLARE l_result BOOLEAN; l_msg_count NUMBER; l_result_n varchar2(2); l_error_message VARCHAR2(2000); l_num_c NUMBER; l_num_nc NUMBER; BEGIN -- Call the procedure fnd_global.APPS_INITIALIZE(1111, 50737, 20005); mo_gl…
--1.0 生成与发票一样的贷项通知单 created by jenrry 20170423 DECLARE L_CUSTOMER_TRX_ID NUMBER; L_INVOICE_NUMBER VARCHAR2(30); L_BATCH_SOURCE_REC AR_INVOICE_API_PUB.BATCH_SOURCE_REC_TYPE; L_TRX_HEADER_TBL AR_INVOICE_API_PUB.TRX_HEADER_TBL_TYPE; L_TRX_LINES_TBL AR_I…
--1.Invoice创建时生成数据如下表 --Invoice主表 SELECT * FROM AP_INVOICES_ALL A WHERE A.INVOICE_NUM = '20111213001'; --Invoice分配表 SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL B WHERE B.INVOICE_ID = 697444; --Invoice付款计划表 SELECT * FROM AP_PAYMENT_SCHEDULES_ALL C WHER…
-- purpose: 应付发票放弃发票行 -- 12.2.6 环境 -- author:jenrry create_date: 2017-06-07 declare l_dummy_msg VARCHAR2(2000); l_msg_data VARCHAR2(2000); l_line_rec ap_invoice_lines%ROWTYPE; l_result_boolean BOOLEAN; begin BEGIN FND_GLOBAL.APPS_INITIALIZE(USER_ID =…
1>找出相应的发票; SELECT DISTINCT ai.invoice_id, ai.invoice_num invoice_num, pv.segment1 vendor_num, pv.vendor_name vendor_name, 'The fully Paid invoice should be closed!' status FROM ap.ap_invoices_all ai, po.po_vendors pv, ap.ap_payment_schedules_all aps…
--取消发票 created by jenrry 20170425 declare l_result BOOLEAN; l_message_name VARCHAR2(240); l_invoice_amount NUMBER; l_base_amount NUMBER; l_temp_cancelled_amount NUMBER; l_cancelled_by NUMBER; l_cancelled_amount NUMBER; l_cancelled_date DATE; l_last_u…
--取消付款 created by jenrry 20170425 declare l_return_status varchar2(50); l_msg_count number; l_msg_data varchar2(2000); begin FND_GLOBAL.APPS_INITIALIZE(USER_ID => 1111, RESP_ID => 50737, RESP_APPL_ID => 20005); mo_global.init('SQLAP'); mo_global.…
--创建供应商地址上的电话号码 created by jenrry 20170419 DECLARE l_return_status VARCHAR2(1); l_msg_count NUMBER; l_msg_data VARCHAR2(1000); l_vendor_contact_rec hz_contact_point_v2pub.contact_point_rec_type; l_vendor_edi_rec hz_contact_point_v2pub.edi_rec_type; l…
AR_RECEIVABLE_APPLICATIONS APP, AR_CASH_RECEIPTS CR, AR_PAYMENT_SCHEDULES PS_INV, HZ_CUST_ACCOUNTS CUST, HZ_PARTIES PARTY, RA_CUSTOMER_TRX CT, RA_CUST_TRX_TYPES CTT, RA_CUSTOMER_TRX_LINES CTL, RA_BATCH_SOURCES BS, HZ_CUST_SITE_USES SU, AR_CONS_INV CI…