ZX_RULES_B
This table stores the tax rules that are used to determine the outcome of multiple tax determination processes. Each row stores a rule for a specific tax, configuration owner and tax determination process.
Details
-
Schema: FUSION
-
Object owner: ZX
-
Object type: TABLE
-
Tablespace: APPS_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
ZX_RULES_B_PK |
TAX_RULE_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
TAX_RULE_CODE | VARCHAR2 | 30 | Yes | Tax rule code | |
TAX | VARCHAR2 | 30 | Yes | Tax for this rule | |
TAX_REGIME_CODE | VARCHAR2 | 30 | Yes | Tax regime code for this rule | |
SERVICE_TYPE_CODE | VARCHAR2 | 30 | Yes | Lookup code to indicate the tax determination process for this rule | |
APPLICATION_ID | NUMBER | Application identifier for this rule | |||
RECOVERY_TYPE_CODE | VARCHAR2 | 30 | Lookup code to indicate recovery type for the tax of this rule | ||
PRIORITY | NUMBER | Yes | Priority in which this rule is evaluated when rules are processed for the same tax and tax determination process | ||
DET_FACTOR_TEMPL_CODE | VARCHAR2 | 30 | Determining factor template code used to evaluate this rule | ||
SYSTEM_DEFAULT_FLAG | VARCHAR2 | 1 | Yes | Y or N indicates whether this rule is defaulted by the system during migration | |
EFFECTIVE_FROM | DATE | Yes | Effective from date | ||
EFFECTIVE_TO | DATE | Effective to date | |||
ENABLED_FLAG | VARCHAR2 | 1 | Yes | Y or N indicates if this rule is enabled | |
RECORD_TYPE_CODE | VARCHAR2 | 30 | Yes | Lookup code to indicate whether the record is migrated, seeded or defined by the user | |
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
REQUEST_ID | NUMBER | Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row. | |||
TAX_EVENT_CLASS_CODE | VARCHAR2 | 30 | Tax event class code for this rule | ||
PROGRAM_LOGIN_ID | NUMBER | Login user identifier of last concurrent program to update this record | |||
TAX_RULE_ID | NUMBER | 18 | Yes | Unique identifier | |
CONTENT_OWNER_ID | NUMBER | 18 | Yes | Party tax profile identifier for configuration owner of this rule | |
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | |
DETERMINING_FACTOR_CQ_CODE | VARCHAR2 | 30 | Determining factor class qualifier code for this rule | ||
GEOGRAPHY_TYPE | VARCHAR2 | 30 | Geography type code for this rule | ||
GEOGRAPHY_ID | NUMBER | 18 | Geography Id for this rule | ||
TAX_LAW_REF_CODE | VARCHAR2 | 30 | Tax law reference code based on which this rule is defined | ||
LAST_UPDATE_MODE_FLAG | VARCHAR2 | 1 | Lookup code to indicate whther this record is last updated through expert entry mode or guided entry mode. Possible values are E and G. | ||
NEVER_BEEN_ENABLED_FLAG | VARCHAR2 | 1 | Y or N indicates if this rule is not enabled even once | ||
EVENT_CLASS_MAPPING_ID | NUMBER | 18 | Event class mapping identifier for this rule | ||
PROGRAM_NAME | VARCHAR2 | 30 | Program name of last concurrent program to update this record | ||
PROGRAM_APP_NAME | VARCHAR2 | 50 | Application name of last concurrent program to update this record | ||
TAX_STATUS_CODE | VARCHAR2 | 30 | Tax status code | ||
REPORTING_TYPE_CODE | VARCHAR2 | 30 | Foreign key identifier to ZX_REPORTING_TYPES_B. Indicates the reporting type defined for the purpose of tax box numbers. | ||
PERIODICITY_CODE | VARCHAR2 | 30 | Type of the tax box allocation rule ie., whether the tax box rule is applied for periodic tax returns or annual tax returns. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
ZX_RULES_B | zx_event_classes_b | TAX_EVENT_CLASS_CODE |
ZX_RULES_B | zx_regimes_b | TAX_REGIME_CODE |
ZX_RULES_B | zx_det_factor_templ_b | DET_FACTOR_TEMPL_CODE |
ZX_RULES_B | zx_party_tax_profile | CONTENT_OWNER_ID |
ZX_RULES_B | zx_evnt_cls_mappings | EVENT_CLASS_MAPPING_ID |
zx_rules_tl | zx_rules_b | TAX_RULE_ID |
zx_process_results | zx_rules_b | TAX_RULE_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
ZX_RULES_B_N1 | Non Unique | Default | UPPER("TAX_REGIME_CODE"), UPPER("TAX"), UPPER("TAX_RULE_CODE") |
ZX_RULES_B_U1 | Unique | Default | TAX_RULE_ID |
ZX_RULES_B_U2 | Unique | Default | TAX_REGIME_CODE, TAX, CONTENT_OWNER_ID, SERVICE_TYPE_CODE, EFFECTIVE_FROM, RECOVERY_TYPE_CODE, TAX_RULE_CODE, PRIORITY |