Results for “billing_source_name”
6 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
MTL_BILLING_RULE_LINES_V is an APPS-owned reporting view in the Oracle E-Business Suite Inventory (INV) module that consolidates billing rule line information for service and agreement-based billing. The view joins billing rule headers, billing rule lines, service agreement lines, billing sources, and counter definitions into a single denormalized result set, enabling users to report on how service agreement lines are billed based on counter readings. It is a key object in the counter-based billing workflow, where readings from installed counters (such as meter readings for service contracts) drive invoice generation.
The view belongs to the Oracle Enterprise Asset Management and inventory billing functionality and is typically consumed in conjunction with counter and service agreement data. Because it is exposed as a view rather than a base table, it is read-only and its results are always derived live from the underlying transactional tables. This makes it suitable for reporting, inquiry, and integration scenarios where the current state of billing rules must be reflected, but unsuitable for direct data manipulation.
Underlying Base Objects
The ETRM documented base objects referenced by MTL_BILLING_RULE_LINES_V in 12.2.2 include: CSI_COUNTERS_VL (VIEW), HR_GENERAL (PACKAGE), HR_SECURITY (PACKAGE), INV_3PL_BILLING_COUNTER_PVT (PACKAGE), MTL_BILLING_RULE_HEADERS_VL (VIEW), MTL_BILLING_RULE_LINES (SYNONYM), MTL_BILLING_SOURCES_VL (VIEW), and MTL_FETCH_AGREEMENT_LINES (VIEW).
The view's defining query joins MTL_FETCH_AGREEMENT_LINES (agreement lines) to CSI_COUNTERS_VL on COUNTER_ITEM_ID = COUNTER_ID, to MTL_BILLING_RULE_HEADERS_VL on SERVICE_AGREEMENT_ID = CONTRACT_ID and BILLING_RULE_HEADER_ID, to MTL_BILLING_RULE_LINES on BILLING_RULE_HEADER_ID and SERVICE_AGREEMENT_LINE_ID, and to MTL_BILLING_SOURCES_VL via an outer join on BILLING_SOURCE_ID. A UNION with a second SELECT that returns NULL rule attributes is used to include agreement lines lacking a matching billing rule, ensuring the view returns all relevant agreement lines. References to HR_GENERAL, HR_SECURITY, and INV_3PL_BILLING_COUNTER_PVT are likely through the referenced views or dependent packages rather than directly in the view text.
Key Columns
- BILLING_RULE_LINE_ID — Primary identifier of the billing rule line.
- BILLING_RULE_HEADER_ID — Foreign key to the parent billing rule header.
- CLIENT_ID, CLIENT_CODE, CLIENT_NUMBER, CLIENT_NAME — Owning client or customer information from the agreement line.
- CONTRACT_ID, CONTRACT_NUMBER, AUTHORING_ORG_ID — Service agreement and authoring organization context.
- SERVICE_ITEM, SERVICE_ITEM_ORG_ID, INVENTORY_ITEM_ID — The service inventory item being billed.
- BILLING_UOM — Unit of measure used for billing calculations.
- SERVICE_LINE_START_DATE, SERVICE_LINE_END_DATE — Effective period of the service agreement line.
- BILLING_SOURCE_ID, BILLING_SOURCE_CODE, BILLING_SOURCE_NAME — The counter source that drives billing (outer-joined, so may be NULL).
- COUNTER_ITEM_ID and COUNTERS.NAME — The counter definition associated with the agreement line.
- NET_READING, LAST_READING, LAST_COMPUTATION_DATE — Counter reading values used to compute billable usage.
- RULE_NAME — Name of the billing rule header.
- CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN — Standard audit columns.
Common Use Cases and Queries
Typical uses include reporting on billing rule line configuration, verifying counter-to-agreement relationships, and extending counter-based billing data into custom integrations. A representative query follows:
- SELECT billing_rule_line_id, contract_number, service_item, counter_item_id, net_reading, billing_source_code FROM mtl_billing_rule_lines_v WHERE contract_number = :p_contract_number;
- SELECT client_name, rule_name, counters_name, net_reading FROM mtl_billing_rule_lines_v WHERE billing_rule_header_id = :p_header_id ORDER BY service_line_start_date;
- SELECT contract_number, COUNT(*) FROM mtl_billing_rule_lines_v GROUP BY contract_number;
Because the view includes a UNION that returns agreement lines without a corresponding billing rule, queries should account for NULL values in BILLING_RULE_LINE_ID and RULE_NAME when reconciling results.