![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
Previous | Next | Contents | Index | Navigation | Glossary | Library |
Print out and review the following files before you begin writing labor transaction extensions. The files are located in the Oracle Projects admin/sql directory.
Suggestion: After you write the procedure, do not forget to compile it and store it in the database. See: Storing Your Procedures.
Parameter | Usage | Type | Description |
---|---|---|---|
x_expenditure_item_id | IN | NUMBER | The identifier of the source transaction. |
x_sys_linkage_function | IN | VARCHAR2 | The expenditure type class of the source transaction. |
x_status | IN OUT | NUMBER | The status of the procedure. |
Table 1 - 107. (Page 1 of 1) Add Related Transactions Parameters |
The related transaction is linked to the same employee's timecard as the source transaction. The transaction is created with a quantity of 0, in order to maintain the proper number of hours for the employee's timecard, even when related transactions exist.
Parameter | Usage | Type | Description |
---|---|---|---|
x_source_exp_item_id | IN | NUMBER | The identifier of the source transaction. |
x_project_id | IN | NUMBER | The identifier of the project to charge the related transaction to. |
x_task_id | IN | NUMBER | The identifier of the task. |
x_expenditure_type | IN | VARCHAR2 | The expenditure type of the related transaction. |
x_raw_cost | IN | NUMBER | The raw cost amount of the related transaction. |
x_raw_cost_rate | IN | NUMBER | The raw cost rate of the related transaction. |
x_override_to_org_id | IN | NUMBER | The identifier of the organization that overrides the expenditure organization used by the source transaction. |
x_userid | IN | NUMBER | The identifier of the user that entered the source transaction. |
x_attribute_category | IN | VARCHAR2 | Descriptive flexfield context. |
x_attribute1 - 10 | IN | VARCHAR2 | Descriptive flexfield segments. |
x_comment | IN | VARCHAR2 | Expenditure item comment. |
x_status | OUT | NUMBER | Status of the procedure. |
x_outcome | OUT | VARCHAR2 | Outcome of the procedure. |
Table 1 - 108. (Page 2 of 2) Create Related Item Parameters |
Parameter | Usage | Type | Description |
---|---|---|---|
x_expenditure_item_id | IN | NUMBER | The identifier of the related expenditure item. |
x_raw_cost | IN | NUMBER | The new raw cost of the related transaction. |
x_raw_cost_rate | IN | NUMBER | The new raw cost rate of the related transaction. |
x_status | OUT | NUMBER | Status of the procedure. |
Table 1 - 109. (Page 1 of 1) Update Related Item Parameters |
If you do not pass project and task information, Oracle Projects charges the related transaction to the same project and task that the source transaction is charged to.
If you do pass project and task information, Oracle Projects uses these values to ensure that the transaction can be charged based on the transaction control validation for that project and task. If the related transaction passes all transaction control rules, then the related transaction is created with that project and task. You must pass both a project and task value to override the source transaction's project and task.
If a value is provided for this parameter when calling the create related transactions procedure, and it is a valid organization, then that value is stored as the expenditure item's override organization regardless of the existence of any other cost distribution overrides defined for the project.
This organization is then used when calculating burdened amounts for the related transaction. It is also used as the input value for any AutoAccounting rules that use the expenditure organization parameter.
However, the source transaction expenditure organization is what the create related transaction procedure passes to the transaction controls procedure for validation. This is done to retain consistency with expenditure entry forms which always send the incurred by (or expenditure organization) organization value. The expenditure organization parameter is used in Transaction Control Extensions by clients who want to control expenditure entry by what organization is charging to the project.
Therefore, the override organization value is used only for burdening and AutoAccounting.
x_status = 0 | The extension executed successfully. |
x_status < 0 | An Oracle8 error occurred and the process did not complete. Oracle Projects writes an error message to the process log file. |
x_status > 0 | An application error occurred. Oracle Projects writes a rejection reason to PA_EXPENDITURE_ITEMS.COST_ DIST_REJECTION_CODE and does not cost the source and related transactions. You can review the rejection reason in the labor cost distribution exception report. |
Previous | Next | Contents | Index | Navigation | Glossary | Library |