Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Purchase Order Import with GST Tax – Technical Implementation Approach

--------------------------------------------------------------------------------------------------------------------------------------------------------------

Tax Tables: -

JAI_TAX_DET_FACTORS
JAI_TAX_LINES
JAI_TAX_CATEGORIES_V
JAI_TAX_CATEGORY_LINES_V
JAI_TAX_RATES_V
JAI_REGIMES
JAI_PARTY_REGS
JAI_PARTY_REG_LINES
JAI_TAX_TYPES_V
JAI_TAX_ROUNDING_V
JAI_TAX_RATE_DETAILS_V
JAI_REPORTING_CODES
JA_LOOKUPS

Private APIs: - JAI_TAX_DETERMINATION_PKG.UPDATE_LINE_DET_FACTORS


JAI_TAX_DETERMINATION_PKG.DETERMINE_TAX

Once Purchase Order Imported, by default purchase order line details will be populated/Inserted in JAI_TAX_DET_FACTORS table with ENTITY_CODE as
‘PURCHASE_ORDER’, EVENT_CLASS_CODE as ‘PO_PA’, TAX_EVENT_CLASS_CODE as ‘PURCHASE_TRANSACTION’ and new DET_FACTOR_ID for each line of
the corresponding PO.

When compare to JAI_TAX_DET_FACTORS table with PO_HEADERS_ALL, PO_LINES_ALL, PO_LINE_LOCATIONS_ALL tables column names will be differed
but values are same.

Column Names as below in JAI_TAX_DET_FACTORS table.

SEGMENT1(PO_Number) as TRX_NUMBER,
REVISION_NUM as DOC_REVISION_NUM,
PO_HEADER_ID as TRX_ID,
PO_LINE_ID as TRX_LINE_ID,
LINE_NUM as TRX_LINE_NUMBER,
TYPE_LOOKUP_CODE as TRX_TYPE,
LINE_LOCATION_ID as TRX_LOC_LINE_ID etc.

PO tables

Tax Det Factor table

Tax Lines Table

Apart from above details JAI_TAX_DET_FACTORS table consist TAX_CATEGORY_NAME, INTENDED_USE, HSN_CODE, SAC CODE fields. These fields are
mandatory for taxation.
To apply tax from back end we have private APIs, which are JAI_TAX_DETERMINATION_PKG.UPDATE_LINE_DET_FACTORS,
JAI_TAX_DETERMINATION_PKG.DETERMINE_TAX

JAI_TAX_DETERMINATION_PKG.UPDATE_LINE_DET_FACTORS API will be updated existing line records with


TAX_CATEGORY_NAME, INTENDED_USE, HSN_CODE, SAC CODE values in JAI_TAX_DET_FACTORS table for the
specific line of the PO.

Here based on the INTENDED_USE value HSN_CODE, SAC CODE values will be differing.
If INTENDED_USE value is ’GOODS’ or ‘GOODS IMPORT’ or ‘SEZ’ then HSN_CODE should have a value.
If INTENDED_USE value is ’SERVICE’ then SAC_CODE should have a value.
It is a mandatory validation for INTENDED_USE.

‘JAI_TAX_DETERMINATION_PKG.DETERMINE_TAX’ API will be inserted records into JAI_TAX_LINES based on the Tax
Category combination in JAI_TAX_DET_FACTORS table for the specific line of the PO.

Tools -> India Tax Details


PO header Id, PO Line ID and Tax category combination (Tax_Category_Name, Intended_Use, HSN_Code/SAC_Code
values) values to be passed as parameter to the ‘JAI_TAX_DETERMINATION_PKG.UPDATE_LINE_DET_FACTORS’ API.

Please find the private API script for GST Tax implement for PO.

TAX Iface .sql TAX Iface


execution.sql
Purchase Order Receipt Import with GST Tax – Technical Implementation Approach
-----------------------------------------------------------------------------------------------------------------------------------------------------------

After Receipt data inserted into Interface tables, ‘Receiving Transaction Processor’ request will be submitted. Once request completed ‘Receiving
Transaction Processor’ program will carry out the Taxation details for the Receipt of corresponding PO.

JAI_TAX_DET_FACTORS table will get hit by the ‘Receiving Transaction Processor’ program and new records will be inserted tables with
ENTITY_CODE as ‘RCV_TRANSACTION’, EVENT_CLASS_CODE as ‘RECEIVING’, TAX_EVENT_CLASS_CODE as ‘PURCHASE_TRANSACTION’ and new
DET_FACTOR_ID for receipt Transactions.

When compare to JAI_TAX_DET_FACTORS table with RCV_SHIPMENT_HEADERS, RCV_SHIPMENT_LINES tables column names will be differed but values
are same.

Column Names as below in JAI_TAX_DET_FACTORS table.

RECEIPT_NUM as TRX_NUMBER,
SHIPMENT_HEADER_ID as TRX_ID,
SHIPMENT_LINE_ID as TRX_LINE_ID,
LINE_NUM as TRX_LINE_NUMBER
etc.

RCV tables

Tax Det Factor table

Tax Lines Table


Tools -> India Tax Details
Receipt ‘India Tax Details’ Form
At receipt level in India Tax Detail form ‘Supplier Invoice Number’ and ‘Supplier Invoice Date’ fields are mandatory for business activities.
So, need to maintain these fields while applying taxes at receipt level. But API is not supporting to populate those value while update/insert
data into tax tables. Even if we are passing values to the API.

Therefor we have done work around for that to populate ‘Supplier Invoice Number’ and ‘Supplier Invoice Date’ value in
India Tax Details form at receipt level.

Please find the procedure name called RCV_TAX_INV_NUM_UPDT in below attached script.

XXFLS_IP_PO_RCV_PKG.pks XXFLS_IP_PO_RCV_PKG.pkb

You might also like