Sunday 14 July 2013

AR RECEIPT API

AR_RECEIPT_API_PUB.CREATE_CASH
(P_API_VERSION => 1.0,
P_INIT_MSG_LIST => FND_API.G_TRUE,
P_COMMIT => FND_API.G_TRUE,
P_VALIDATION_LEVEL => FND_API.G_VALID_LEVEL_FULL, X_RETURN_STATUS => L_RETURN_STATUS,
X_MSG_COUNT => L_MSG_COUNT,
X_MSG_DATA => L_MSG_DATA,
P_CURRENCY_CODE => V_CUR_DATA.RECEIPT_CURRENCY_CODE, P_AMOUNT => V_CUR_DATA.UNAPPLIED_AMOUNT,
P_RECEIPT_NUMBER => V_CUR_DATA.RECEIPT_NUMBER,
P_RECEIPT_DATE => V_CUR_DATA.RECEIPT_DATE,
P_GL_DATE => V_CUR_DATA.RECEIPT_DATE,
P_CUSTOMER_NUMBER => V_CUR_DATA.CUSTOMER_NUMBER, P_CUSTOMER_SITE_USE_ID => V_CUR_DATA.SITE_USE_ID, P_REMITTANCE_BANK_ACCOUNT_ID => V_BANK_ACC_ID, P_RECEIPT_METHOD_ID => V_RECEIPT_METHOD_ID,
P_CR_ID => L_CASH_RECEIPT_ID, -- Out Parameter
P_ORG_ID => FND_PROFILE.VALUE ('ORG_ID'));
-----------------------------------------------------------
AR_RECEIPT_API_PUB.APPLY_ON_ACCOUNT
(P_API_VERSION => 1.0,
P_INIT_MSG_LIST => FND_API.G_TRUE,
P_COMMIT => FND_API.G_TRUE,
P_VALIDATION_LEVEL => FND_API.G_VALID_LEVEL_FULL, X_RETURN_STATUS => L_RETURN_STATUS_ACC, X_MSG_COUNT => L_MSG_COUNT_ACC,
X_MSG_DATA => L_MSG_DATA_ACC,
p_cash_receipt_id =>L_CASH_RECEIPT_ID,
p_amount_applied =>V_CUR_DATA.ON_ACCOUNT_AMOUNT, p_apply_date => V_CUR_DATA.RECEIPT_DATE,
p_apply_gl_date => V_CUR_DATA.RECEIPT_DATE,
p_org_id => FND_PROFILE.VALUE ('ORG_ID'));

No comments:

Post a Comment