Search Results cs_calculate_credit
Overview
CS_CALCULATE_CREDIT is a PL/SQL package in the Oracle E-Business Suite Customer Service (CS) module, owned by the APPS schema and defined with AUTHID CURRENT_USER. Its header identifies it as part of the service transaction infrastructure, with a source control stamp (csxstsvs.pls) reflecting its Service (CSX) lineage and origin in the R11-era codebase that carried forward into EBS 12.1.1 and 12.2.2. The package supports the Credit and Returns/Service Request lifecycle by exposing two application programming interfaces: one that computes credit amounts associated with the termination or winding-down of a service, and one that creates a service interaction from a form invocation.
In deployments where users search for "Crédito de consumo fácil" (a colloquial Spanish phrase for a simple consumer credit or easy consumer credit flow), this package is the technical anchor for the credit-derivation logic executed against a customer service contract or service record. Rather than a financials-ledger credit package, it operates on the Customer Service service-transaction model, calculating how much credit a customer is owed when service coverage is terminated before its natural end.
Key Procedures and Functions
The package exposes exactly two documented procedures:
- CS_CALCULATE_CREDIT — The core credit-computation routine. It receives a service identifier and a termination effective date, and returns the first applicable service transaction, the first credit amount, the total credit amount, the total credit percentage, and a flag indicating whether multiple transactions are involved. This procedure encapsulates the proration and credit-derivation rules applied at the point of service termination.
- CREATE_INTERACTION_FROM_FORM — A form-facing wrapper that creates a service interaction record from data captured in an Oracle Forms session, accepting user, service, parent interaction, bill-to contact, and audit columns, and returning a status code and message to the caller.
No parameter lists beyond those published in the package specification should be assumed; the signatures are stable and must be invoked as declared.
Tables Accessed
Per the ETRM metadata, the package references two tables through APPS synonyms:
- CS_CP_SERVICE_TRANSACTIONS — The principal data source and target. Credit calculations read the constituent service transactions tied to a service ID, and the first/multi-transaction outputs derive from this table's rows. Writes and reads during interaction creation also flow here.
- FND_USER — Used to resolve and validate the application user context, predominantly for audit columns and the control user identifier in the form-driven interaction procedure.
No other packages are documented as referencing CS_CALCULATE_CREDIT, indicating it is a leaf-level utility invoked directly rather than a shared library dependency.
Usage Notes
CS_CALCULATE_CREDIT is typically invoked from the Customer Service forms layer and from custom extensions that need to reproduce the standard credit calculation, for example when a service contract is terminated and the customer is owed a prorated refund or account credit. The procedure's OUT parameters are designed for a forms block or a calling program that subsequently displays or posts the resulting credit amount.
CREATE_INTERACTION_FROM_FORM is form-specific by design; it should be called from Oracle Forms triggers rather than from concurrent programs, because it depends on form-supplied identifiers. Because the package runs with AUTHID CURRENT_USER, privileges of the invoking user apply, and callers must have appropriate execute grants. For 12.2.2 deployments using Online Patching, the package follows the standard editioning model for APPS-owned code, and no special editioning view is required for these table accesses.
-
PACKAGE: APPS.CS_CALCULATE_CREDIT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CS_CALCULATE_CREDIT, status:VALID,
-
PACKAGE: APPS.CS_CALCULATE_CREDIT
12.2.2
-
PACKAGE: APPS.CS_CALCULATE_CREDIT
12.1.1
-
PACKAGE BODY: APPS.CS_CALCULATE_CREDIT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CS_CALCULATE_CREDIT, status:VALID,
-
PACKAGE: APPS.CS_CALCULATE_CREDIT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CS_CALCULATE_CREDIT, status:VALID,
-
PACKAGE BODY: APPS.CS_CALCULATE_CREDIT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CS_CALCULATE_CREDIT, status:VALID,
-
PACKAGE: APPS.CS_INTERACTION_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CS_INTERACTION_PVT, status:VALID,
-
SYNONYM: APPS.CS_CP_SERVICE_TRANSACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CS_CP_SERVICE_TRANSACTIONS, status:VALID,
-
SYNONYM: APPS.CS_CP_SERVICE_TRANSACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CS_CP_SERVICE_TRANSACTIONS, status:VALID,
-
PACKAGE: APPS.CS_INTERACTION_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CS_INTERACTION_PVT, status:VALID,
-
PACKAGE BODY: APPS.CS_CALCULATE_CREDIT
12.2.2
-
PACKAGE BODY: APPS.CS_CALCULATE_CREDIT
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
VIEW: APPS.CS_CP_SERVICES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_CP_SERVICES, object_name:CS_CP_SERVICES, status:VALID,
-
VIEW: APPS.CS_CP_SERVICES
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_CP_SERVICES, object_name:CS_CP_SERVICES, status:VALID,
-
APPS.CS_CALCULATE_CREDIT dependencies on CS_CALCULATE_CREDIT
12.2.2
-
APPS.CS_CALCULATE_CREDIT dependencies on CS_CALCULATE_CREDIT
12.1.1
-
VIEW: APPS.CS_CUSTOMER_PRODUCTS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_CUSTOMER_PRODUCTS, object_name:CS_CUSTOMER_PRODUCTS, status:VALID,
-
VIEW: APPS.CS_CUSTOMER_PRODUCTS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_CUSTOMER_PRODUCTS, object_name:CS_CUSTOMER_PRODUCTS, status:VALID,
-
SYNONYM: APPS.FND_USER
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_USER, status:VALID,
-
SYNONYM: APPS.FND_USER
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_USER, status:VALID,
-
eTRM - CS Tables and Views
12.1.1
description: Table to store web conference details for an SR. ,
-
PACKAGE: APPS.APP_EXCEPTION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:APP_EXCEPTION, status:VALID,
-
PACKAGE: APPS.APP_EXCEPTION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:APP_EXCEPTION, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.FND_MESSAGE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_MESSAGE, status:VALID,
-
PACKAGE: APPS.FND_MESSAGE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_MESSAGE, status:VALID,
-
PACKAGE: APPS.FND_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
eTRM - CS Tables and Views
12.1.1
description: Table to store web conference details for an SR. ,
-
PACKAGE: APPS.FND_API
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,