Search Results ap_dtc_cancel_invoice




Overview

JAI_TAX_PROCESSING_PKG is an Oracle E-Business Suite PL/SQL package owned by the APPS schema that forms part of the Oracle Financials for India (JAI) localization layer. Its primary business function is to bridge India-specific indirect tax requirements with the standard E-Business Tax (ZX) engine. The package encapsulates the logic required to calculate taxes, determine tax recovery, integrate with the ZX application programming interface, and generate accounting entries for Indian tax transactions. It supports both the Receivables and Payables flows and is intimately tied to Tax Deducted at Source (TDS), excise, VAT, and service tax processing. Because Indian tax legislation requires specialized treatment of taxes at the invoice line level, this package coordinates with the standard ZX_API_PUB types to pass transaction and event-class structures into the tax engine and to return calculated results.

Key Procedures and Functions

  • CALCULATE_TAX — Accepts a ZX_API_PUB transaction record and optional event-class record along with a line-level action and transaction line identifier, returning an optional return status. This is the core entry point for invoking tax calculation on a given transaction line.
  • DETERMINE_RECOVERY — Uses a ZX event-class record to determine recoverable versus non-recoverable portions of input tax, returning a status indicator.
  • CHECK_JAI_EXISTS_IN_ZX — A boolean function that verifies whether India-specific tax setup exists in the ZX regime for a given set of books, application, entity code, and transaction identifier. This is commonly used to decide whether JAI or standard ZX processing should apply.
  • IMPORT_DOCUMENT_WITH_TAX — Imports a document into the tax repository together with its tax lines, using the event-class record supplied by the caller, and returns a status.
  • PROCESS_COMPLETE — Marks a receivables transaction as complete so that downstream tax and accounting processes can proceed.
  • AP_DTC_CANCEL_INVOICE — Updates completion flags and populates a temporary table to support cancellation of a DTC invoice. It is invoked from JAI_AP_STND_TAX_PROCESS.Populate_Stnd_Inv_Taxes.
  • CREATE_ACCOUNTING — Generates the accounting entries associated with Indian tax transactions, driving the creation of journal lines from the calculated tax data.
  • OPEN_INTERFACE — Opens the interface between the India localization tables and the standard General Ledger interface, enabling transfer of tax accounting.

Tables Accessed

The package reads and writes a substantial set of foundation tables. Payables-side tables include AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, AP_INVOICE_DISTRIBUTIONS_ALL, and AP_PAYMENT_SCHEDULES_ALL, which supply invoice, line, distribution, and schedule data. India-localized tables include JAI_AP_INVOICE_LINES, JAI_AP_MATCH_INV_TAXES, JAI_AP_TDS_INV_TAXES, JAI_AP_TDS_PREPAYMENTS, JAI_AP_TDS_THHOLD_GRPS, and JAI_AP_TDS_THHOLD_TRXS, which store India-specific tax and TDS attributes. On the Receivables side, JAI_AR_TRXS and JAI_AR_TRX_LINES hold transaction and line detail. JAI_CMN_DOCUMENT_TAXES stores document tax records, and JAI_CMN_JOURNAL_ENTRIES stores the resulting journal entries written during accounting creation.

Usage Notes

JAI_TAX_PROCESSING_PKG is referenced by five other packages and is invoked primarily from standard Payables and Receivables flows as well as India localization concurrent programs. The CALCULATE_TAX, DETERMINE_RECOVERY, and IMPORT_DOCUMENT_WITH_TAX routines are called during tax determination on transactions. PROCESS_COMPLETE, CREATE_ACCOUNTING, and OPEN_INTERFACE typically run during invoice completion and accounting generation, either synchronously from forms or from concurrent programs such as the India Tax Accounting process. Custom code should invoke these APIs only through their public signatures, using ZX_API_PUB record types, and should avoid modifying the underlying JAI tables directly to prevent corruption of tax balances and accounting entries.