Search Results populate_sales




Overview

APPS.PN_VAR_TRX_PKG is the core PL/SQL package within the Oracle E-Business Suite Property Manager (PN) module responsible for generating and maintaining variable rent transaction records. Variable rent is the component of a lease that is calculated from actual sales volume reported by a tenant, rather than a fixed contractual amount. This package encapsulates the business logic that converts reported sales figures into calculated rent obligations across defined accounting periods.

The package serves as the primary programmatic boundary between sales reporting data and the PN_VAR_TRX_HEADERS_ALL / PN_VAR_TRX_DETAILS_ALL transaction tables. It implements multiple calculation methods — cumulative, non-cumulative, year-to-date, and true-up — along with a set of proration rules (NP, STD, FY, LY, FLY, CYP, CYNP) that determine how sales thresholds and rent brackets are applied when a lease period does not align with a reporting calendar. It also manages sales volume lifecycle states (APPROVED, DRAFT, ON_HOLD) and period states (ACTIVE, REVERSED), ensuring that only valid data drives financial transactions.

Key Procedures and Functions

The package exposes 29 documented program units. Among the most significant, given that insert_trx_hdr was the searched symbol, are the transaction maintenance routines:

Tables Accessed

The package operates against the PN variable rent schema primarily through APPS synonyms. PN_VAR_TRX_HEADERS_ALL and PN_VAR_TRX_DETAILS_ALL are the principal write targets, with the corresponding _S sequence-backed tables used for identifier generation. Header and detail processing is parameterised by PN_VAR_RENTS_ALL, PN_VAR_LINES_ALL, PN_VAR_PERIODS_ALL, and PN_VAR_GRP_DATES_ALL, which supply the lease, line, period, and grouping-date context. Breakpoint configuration is read from PN_VAR_BKPTS_HEAD_ALL, PN_VAR_BKPTS_DET_ALL, PN_VAR_BKHD_DEFAULTS_ALL, and PN_VAR_BKDT_DEFAULTS_ALL. Sales and volume history is sourced from PN_VAR_VOL_HIST_ALL, and adjustment logic draws on PN_VAR_DEDUCTIONS_ALL. DUAL is used for singleton calculations.

Usage Notes

PN_VAR_TRX_PKG is not intended as a public integration API; it is classified as OTHER and is primarily invoked internally. Typical call paths include the variable rent calculation concurrent programs and the Property Manager variable rent forms, both of which rely on POPULATE_TRANSACTIONS to generate header and detail records for active periods. Because four other packages reference it, customisations should treat it as an internal dependency: it is invoked whenever sales volumes are approved or periods are processed or reversed. Direct calls to INSERT_TRX_HDR from custom code require that grouping identifiers and proration factors already be resolved by the preceding POPULATE_* routines, since the procedure performs insertion only and delegates all derivation logic elsewhere.