Package BANINST1.fb_req_tax
Common Business interface for the Requisition Tax API (fb_req_tax).
|
M_ENTITY_NAME
M_ENTITY_NAME CONSTANT VARCHAR2(7) := 'REQ_TAX';
Business Entity Name
req_tax_rec
TYPE req_tax_rec IS RECORD (
r_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
r_item fprrqtx.fprrqtx_item%TYPE,
r_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
r_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
r_tax_amt fprrqtx.fprrqtx_tax_amt%TYPE,
r_taxable_amt fprrqtx.fprrqtx_taxable_amt%TYPE,
r_pay_tax_to fprrqtx.fprrqtx_pay_tax_to%TYPE,
r_user_id fprrqtx.fprrqtx_user_id%TYPE,
r_data_origin fprrqtx.fprrqtx_data_origin%TYPE,
r_internal_record_id Gb_Common.internal_record_id_type);
Business Entity record type
req_tax_ref
TYPE req_tax_ref IS REF CURSOR RETURN req_tax_rec;
Entity cursor variable type
req_tax_tab
TYPE req_tax_tab IS TABLE OF req_tax_rec INDEX BY BINARY_INTEGER;
Entity table type
f_api_version
Function f_api_version RETURN PLS_INTEGER
Returns the API version number.
|
Version of the API signature. Changes only when the signature changes.
|
f_exists
Function f_exists(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
p_rowid Gb_Common.internal_record_id_type DEFAULT NULL)
RETURN VARCHAR2
Checks to see if a record exists.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
p_rowid
|
Database ROWID of the record to be selected. VARCHAR2(18)
|
f_isequal
Function f_isequal(rec_one req_tax_rec, rec_two req_tax_rec)
RETURN VARCHAR2
Compares two records for equality.
Tests each field of rec_one against the corresponding field of rec_two. Two null values are considered equal.
|
rec_one
|
The first record to compare. Type req_tax_rec Required
|
|
rec_two
|
The second record to compare. Type req_tax_rec Required
|
|
Y if all values in records are equal, otherwise N. Nulls match Nulls.
|
f_query_all
Function f_query_all RETURN req_tax_ref
Selects all records for the table.
|
A cursor variable that will fetch the set of records.
|
f_query_one
Function f_query_one(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE)
RETURN req_tax_ref
Selects one record using key.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
A cursor variable that will fetch exactly one record.
|
f_query_by_rowid
Function f_query_by_rowid(p_rowid Gb_Common.internal_record_id_type)
RETURN req_tax_ref
Selects one record using ROWID.
|
p_rowid
|
Database ROWID of the record to be selected. VARCHAR2(18) Required
|
|
A cursor variable that will fetch exactly one record.
|
f_query_by_item
Function f_query_by_item(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE)
RETURN req_tax_ref
Selects all records for the requisition by item.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
Item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
A cursor variable that will fetch all the matching records.
|
f_query_one_lock
Function f_query_one_lock(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
p_rowid Gb_Common.internal_record_id_type DEFAULT NULL)
RETURN req_tax_ref
Selects one record and locks it.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
p_rowid
|
Database ROWID of the record to be selected. VARCHAR2(18)
|
|
A cursor variable for one record, locking the record.
|
p_create
Procedure p_create(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
p_tax_amt fprrqtx.fprrqtx_tax_amt%TYPE,
p_taxable_amt fprrqtx.fprrqtx_taxable_amt%TYPE,
p_pay_tax_to fprrqtx.fprrqtx_pay_tax_to%TYPE,
p_user_id fprrqtx.fprrqtx_user_id%TYPE DEFAULT Gb_Common.f_sct_user,
p_data_origin fprrqtx.fprrqtx_data_origin%TYPE DEFAULT NULL,
p_rowid_out OUT Gb_Common.internal_record_id_type)
Creates a record.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
p_tax_amt
|
The amount of tax computed or entered for a document. NUMBER(17,2) Required
|
|
p_taxable_amt
|
Taxable amount. NUMBER(17,2) Required
|
|
p_pay_tax_to
|
Indicates who should be paid taxes either the vendor or the taxing authority. VARCHAR2(1) Required
|
|
p_user_id
|
Unique identification code for the user. VARCHAR2(30) Required
|
|
p_data_origin
|
Source system that generated the data. VARCHAR2(30)
|
|
p_rowid_out
|
Database ROWID of the record to be created. VARCHAR2(18) Required
|
p_delete
Procedure p_delete(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
p_rowid Gb_Common.internal_record_id_type DEFAULT NULL)
Deletes a record.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
p_rowid
|
Database ROWID of the record to be deleted. VARCHAR2(18)
|
p_lock
Procedure p_lock(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
p_rowid_inout IN OUT Gb_Common.internal_record_id_type)
Locks a record.
If ROWID is not passed in, the record is located using the key values and the ROWID of the locked row is passed in p_rowid_inout
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
p_rowid_inout
|
Database ROWID of the record to be locked. VARCHAR2(18) Required
|
p_update
Procedure p_update(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_priority_num fprrqtx.fprrqtx_priority_num%TYPE,
p_trat_code fprrqtx.fprrqtx_trat_code%TYPE,
p_tax_amt fprrqtx.fprrqtx_tax_amt%TYPE DEFAULT Dml_Common.f_unspecified_number,
p_taxable_amt fprrqtx.fprrqtx_taxable_amt%TYPE DEFAULT Dml_Common.f_unspecified_number,
p_pay_tax_to fprrqtx.fprrqtx_pay_tax_to%TYPE DEFAULT Dml_Common.f_unspecified_string,
p_user_id fprrqtx.fprrqtx_user_id%TYPE DEFAULT Gb_Common.f_sct_user,
p_data_origin fprrqtx.fprrqtx_data_origin%TYPE DEFAULT Dml_Common.f_unspecified_string,
p_rowid Gb_Common.internal_record_id_type DEFAULT NULL)
Updates a record.
|
p_reqh_code
|
Requisition document code. VARCHAR2(8) Required Key
|
|
p_item
|
System generated item number which specifies the commodity within the requisition document. NUMBER(4) Required Key
|
|
p_priority_num
|
A number to establish the order in which taxes are to be compounded for a taxed commodity. NUMBER(2) Required Key
|
|
p_trat_code
|
The value of the tax rate established on form: FTVTRAT. VARCHAR2(4) Required Key
|
|
p_tax_amt
|
The amount of tax computed or entered for a document. NUMBER(17,2) Required
|
|
p_taxable_amt
|
Taxable amount. NUMBER(17,2) Required
|
|
p_pay_tax_to
|
Indicates who should be paid taxes either the vendor or the taxing authority. VARCHAR2(1) Required
|
|
p_user_id
|
Unique identification code for the user. VARCHAR2(30) Required
|
|
p_data_origin
|
Source system that generated the data. VARCHAR2(30)
|
|
p_rowid
|
Database ROWID of the record to be updated. VARCHAR2(18)
|
p_calc_and_create
Procedure p_calc_and_create(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE,
p_tgrp_code ftvtgrp.ftvtgrp_tgrp_code%TYPE,
p_eff_date ftvtgrp.ftvtgrp_eff_date%TYPE,
p_vendor_pidm ftvvend.ftvvend_pidm%TYPE,
p_quantity fprreqd.fprreqd_qty%TYPE,
p_unit_price fprreqd.fprreqd_unit_price%TYPE,
p_disc_amt fprreqd.fprreqd_disc_amt%TYPE,
p_addl_amt fprreqd.fprreqd_addl_chrg_amt%TYPE,
p_user_id fprreqd.fprreqd_user_id%TYPE DEFAULT Gb_Common.f_sct_user,
p_data_origin fprrqtx.fprrqtx_data_origin%TYPE DEFAULT NULL,
p_tax_amt_out OUT fprrqtx.fprrqtx_tax_amt%TYPE)
Calculates tax for a Requisition detail row and inserts the tax records.
|
p_pohd_code
|
The unique identifier of a purchase order document. VARCHAR2(8) Required Key
|
|
p_item
|
The unique sequence number directly associated with the item on the commodity record. NUMBER(4) Required Key
|
|
p_tgrp_code
|
The user specified code which defines the tax group code VARCHAR2(4) Required
|
|
p_eff_date
|
The effective date of the tax group code Date Required
|
|
p_vendor_pidm
|
The PIDM of the vendor on the Requisition NUMBER(8) Required
|
|
p_quantity
|
The quantity of the commodity on the Requisition detail row. NUMBER(8,2) Required
|
|
p_unit_price
|
The unit price for the commodity NUMBER(19,4) Required
|
|
p_disc_amt
|
The Discount amount for the commodity NUMBER(17,2) Required
|
|
p_addl_amt
|
The amount of additional charge for the commodity NUMBER(17,2) Required
|
|
p_user_id
|
The unique identification code for the user. VARCHAR2(30)
|
|
p_data_origin
|
Source system that generated the data. VARCHAR2(30)
|
|
p_tax_amt_out
|
The total tax amount for the commodity. NUMBER(17,2)
|
p_delete_by_item
Procedure p_delete_by_item(p_reqh_code fprrqtx.fprrqtx_reqh_code%TYPE,
p_item fprrqtx.fprrqtx_item%TYPE)