index

Package nb_job_earnings_rules

This package provides messaging support and field validations for the Job Earnings API(NB_JOB_EARNINGS).


Program units
p_register_entity   Registers the attribute value pairs to the message cache for delete operations.
p_register_entity   Registers the attribute/value pairs to the message cache for create and update operations.
p_validate   Validates all the data in a record.


p_register_entity

Procedure p_register_entity(p_operation_type     NUMBER,
                            p_internal_record_id gb_common.internal_record_id_type)

Registers the attribute value pairs to the message cache for delete operations.
This signature uses the ROWID only, for the delete operations.

Parameters
p_operation_type   Type of DML operation: create,update,delete. NUMBER Required.
p_internal_record_id   Database ROWID VARCHAR2(18) Required.


p_register_entity

Procedure p_register_entity(p_operation_type     NUMBER,
                            p_pidm               nbrearn.nbrearn_pidm%TYPE,
                            p_posn               nbrearn.nbrearn_posn%TYPE,
                            p_suff               nbrearn.nbrearn_suff%TYPE,
                            p_effective_date     nbrearn.nbrearn_effective_date%TYPE,
                            p_earn_code          nbrearn.nbrearn_earn_code%TYPE,
                            p_active_ind         nbrearn.nbrearn_active_ind%TYPE,
                            p_hrs                nbrearn.nbrearn_hrs%TYPE,
                            p_special_rate       nbrearn.nbrearn_special_rate%TYPE,
                            p_shift              nbrearn.nbrearn_shift%TYPE,
                            p_deemed_hrs         nbrearn.nbrearn_deemed_hrs%TYPE,
                            p_user_id            nbrearn.nbrearn_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_data_origin        nbrearn.nbrearn_data_origin%TYPE,
                            p_internal_record_id gb_common.internal_record_id_type)

Registers the attribute/value pairs to the message cache for create and update operations.
 
This signature registers the all parameters.

Parameters
p_operation_type   Type of DML operation: create,update,delete. NUMBER Required.
p_pidm   Internal identification number of the employee. NUMBER(8) Required Key.
p_posn   Position number. VARCHAR2(6) Required Key.
p_suff   Suffix of the job. VARCHAR2(2) Required Key.
p_effective_date   Date that the earnings code record becomes effective. DATE Required Key.
p_earn_code   The default earnings code attached to a job and used on the timesheet. VARCHAR2(3) Required Key.
p_active_ind   Indicates whether the earnings code is active. VARCHAR2(1) Required Key.
p_hrs   Hours or units defaulted on timesheets for the earn code. NUMBER(6,2).
p_special_rate   Special Rate defaulted onto timesheets for the earn code. NUMBER(12,6).
p_shift   Shift code defaulted onto timesheets for the earn code. VARCHAR2(1) Required.
p_deemed_hrs   Reportable hours for Canadian Employment Insurance. NUMBER(6,2).
p_user_id   The Oracle ID of the user who changed the record. VARCHAR2(30).
p_data_origin   Source system that created or updated the row. VARCHAR2(30).
p_internal_record_id   Database ROWID VARCHAR2(18) required.


p_validate

Procedure p_validate(p_val_rec_inout  IN OUT nb_job_earnings.job_earnings_rec,
                     p_operation_type VARCHAR2,
                     p_pidm           nbrearn.nbrearn_pidm%TYPE,
                     p_posn           nbrearn.nbrearn_posn%TYPE,
                     p_suff           nbrearn.nbrearn_suff%TYPE,
                     p_effective_date nbrearn.nbrearn_effective_date%TYPE,
                     p_earn_code      nbrearn.nbrearn_earn_code%TYPE,
                     p_active_ind     nbrearn.nbrearn_active_ind%TYPE,
                     p_hrs            nbrearn.nbrearn_hrs%TYPE DEFAULT dml_common.f_unspecified_number,
                     p_special_rate   nbrearn.nbrearn_special_rate%TYPE DEFAULT dml_common.f_unspecified_number,
                     p_shift          nbrearn.nbrearn_shift%TYPE DEFAULT dml_common.f_unspecified_string,
                     p_deemed_hrs     nbrearn.nbrearn_deemed_hrs%TYPE DEFAULT dml_common.f_unspecified_number,
                     p_user_id        nbrearn.nbrearn_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_data_origin    nbrearn.nbrearn_data_origin%TYPE DEFAULT NULL)

Validates all the data in a record.

Parameters
p_pidm   Internal identification number of the employee. NUMBER(8) Required Key.
p_posn   Position number. VARCHAR2(6) Required Key.
p_suff   Suffix of the job. VARCHAR2(2) Required Key.
p_effective_date   Date that the earnings code record becomes effective. DATE Required Key.
p_earn_code   The default earnings code attached to a job and used on the timesheet. VARCHAR2(3) Required Key.
p_active_ind   Indicates whether the earnings code is active. VARCHAR2(1) Required Key.
p_hrs   Hours or units defaulted on timesheets for the earn code. NUMBER(6,2).
p_special_rate   Special Rate defaulted onto timesheets for the earn code. NUMBER(12,6).
p_shift   Shift code defaulted onto timesheets for the earn code. VARCHAR2(1) Required.
p_deemed_hrs   Reportable hours for Canadian Employment Insurance. NUMBER(6,2).
p_user_id   The Oracle ID of the user who changed the record. VARCHAR2(30).
p_data_origin   Source system that created or updated the row. VARCHAR2(30).