DBA Data[Home] [Help]

APPS.IGS_FI_FEE_AS_RATE_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 8

  PROCEDURE beforerowupdate;
Line: 27

    x_logical_delete_dt           IN DATE ,
    x_residency_status_cd         IN VARCHAR2 ,
    x_course_cd                   IN VARCHAR2 ,
    x_version_number              IN NUMBER ,
    x_org_party_id                IN NUMBER ,
    x_class_standing              IN VARCHAR2 ,
    x_creation_date               IN DATE ,
    x_created_by                  IN NUMBER ,
    x_last_update_date            IN DATE ,
    x_last_updated_by             IN NUMBER ,
    x_last_update_login           IN NUMBER,
    x_unit_set_cd                 IN VARCHAR2,
    x_us_version_number           IN NUMBER,
    x_unit_cd                     IN VARCHAR2 ,
    x_unit_version_number         IN NUMBER   ,
    x_unit_level                  IN VARCHAR2 ,
    x_unit_type_id                IN NUMBER   ,
    x_unit_class                  IN VARCHAR2 ,
    x_unit_mode                   IN VARCHAR2

  ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    rowid = x_rowid;
Line: 72

    IF (cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT')) THEN
      CLOSE cur_old_ref_values;
Line: 74

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 96

    new_references.logical_delete_dt        := x_logical_delete_dt;
Line: 112

    IF (p_action = 'UPDATE') THEN
      new_references.creation_date := old_references.creation_date;
Line: 119

    new_references.last_update_date := x_last_update_date;
Line: 120

    new_references.last_updated_by := x_last_updated_by;
Line: 121

    new_references.last_update_login := x_last_update_login;
Line: 128

  PROCEDURE BeforeRowInsertUpdateDelete1(
    p_inserting IN BOOLEAN ,
    p_updating IN BOOLEAN ,
    p_deleting IN BOOLEAN
    ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  --------------------------------------------------------------------*/
   v_message_name varchar2(30);
Line: 145

        IF p_inserting THEN
                -- If IGS_FI_FEE_TYPE.s_fee_trigger_cat = 'INSTITUTN' or
                -- IGS_FI_FEE_TYPE.s_fee_type = 'HECS', then schedules can only
                -- be defined against FTCI's.
                IF new_references.s_relation_type <> 'FTCI' THEN
                        IF IGS_FI_VAL_FAR.finp_val_far_ins (
                                        new_references.fee_type,
                                        v_message_name) = FALSE THEN
                                Fnd_Message.Set_Name('IGS',v_message_name);
Line: 160

        IF p_inserting OR p_updating THEN
                IF IGS_FI_VAL_FAR.finp_val_far_defntn (
                                new_references.fee_type,
                                new_references.location_cd,
                                new_references.attendance_type,
                                new_references.attendance_mode,
                                new_references.govt_hecs_payment_option,
                                new_references.govt_hecs_cntrbtn_band,
                                v_message_name) = FALSE THEN
                        Fnd_Message.Set_Name('IGS',v_message_name);
Line: 175

        IF p_inserting OR p_updating THEN
                IF IGS_FI_VAL_FAR.finp_val_far_rltn (
                                        new_references.s_relation_type,
                                        new_references.fee_cat,
                                        v_message_name) = FALSE THEN
                        Fnd_Message.Set_Name('IGS',v_message_name);
Line: 186

        IF p_inserting OR p_updating THEN
                -- Validate for closed location.
                IF IGS_FI_VAL_FAR.crsp_val_loc_cd (
                                        new_references.location_cd,
                                        v_message_name) = FALSE THEN
                        Fnd_Message.Set_Name('IGS',v_message_name);
Line: 215

  END BeforeRowInsertUpdateDelete1;
Line: 220

  PROCEDURE AfterRowUpdate3(
    p_inserting IN BOOLEAN ,
    p_updating IN BOOLEAN ,
    p_deleting IN BOOLEAN
    ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  ||                                  in call to finp_ins_far_hist
  --------------------------------------------------------------------*/
  BEGIN
        -- create a history
        igs_fi_gen_002.finp_ins_far_hist(old_references.fee_type,
                old_references.fee_cal_type,
                old_references.fee_ci_sequence_number,
                old_references.s_relation_type,
                old_references.rate_number,
                new_references.fee_cat,
                old_references.fee_cat,
                new_references.location_cd,
                old_references.location_cd,
                new_references.attendance_type,
                old_references.attendance_type,
                new_references.attendance_mode,
                old_references.attendance_mode,
                new_references.order_of_precedence,
                old_references.order_of_precedence,
                new_references.govt_hecs_payment_option,
                old_references.govt_hecs_payment_option,
                new_references.govt_hecs_cntrbtn_band,
                old_references.govt_hecs_cntrbtn_band,
                new_references.chg_rate,
                old_references.chg_rate,
                new_references.unit_class ,
                old_references.unit_class ,
                new_references.residency_status_cd,
                old_references.residency_status_cd,
                new_references.course_cd,
                old_references.course_cd,
                new_references.version_number,
                old_references.version_number,
                new_references.org_party_id,
                old_references.org_party_id,
                new_references.class_standing,
                old_references.class_standing,
                new_references.last_updated_by,
                old_references.last_updated_by,
                new_references.last_update_date,
                old_references.last_update_date,
                new_references.unit_set_cd,
                old_references.unit_set_cd,
                new_references.us_version_number,
                old_references.us_version_number,
                new_references.unit_cd ,
                old_references.unit_cd ,
                new_references.unit_version_number,
                old_references.unit_version_number,
                new_references.unit_level ,
                old_references.unit_level ,
                new_references.unit_type_id,
                old_references.unit_type_id,
                new_references.unit_mode ,
                old_references.unit_mode
                );
Line: 294

  END AfterRowUpdate3;
Line: 299

  PROCEDURE AfterStmtInsertUpdate4(
    p_inserting IN BOOLEAN ,
    p_updating IN BOOLEAN ,
    p_deleting IN BOOLEAN
    ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Modified call to finp_val_far_unique - Added 2
  ||                                  new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
  v_message_name varchar2(30);
Line: 321

        IF p_inserting OR p_updating THEN
                IF IGS_FI_VAL_FAR.finp_val_far_create(new_references.fee_type,
                                      new_references.fee_cal_type,
                                      new_references.fee_ci_sequence_number,
                                      new_references.s_relation_type,
                                      v_message_name) = FALSE THEN
                        Fnd_Message.Set_Name('IGS',v_message_name);
Line: 380

  END AfterStmtInsertUpdate4;
Line: 717

      SELECT 'X'
      FROM   hz_parties         HP,
             igs_pe_hz_parties  PHP
      WHERE  HP.party_id = p_party_id
             AND    PHP.inst_org_ind = 'O'
             AND    HP.party_id = PHP.party_id;
Line: 731

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 743

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 764

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 782

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 794

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 806

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 819

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 832

          Fnd_Message.Set_Name ('FND' , 'FORM_RECORD_DELETED');
Line: 847

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 859

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 873

        Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Line: 889

        fnd_message.set_name ('FND','FORM_RECORD_DELETED');
Line: 912

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    far_id = x_far_id
      FOR UPDATE NOWAIT;
Line: 949

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    fee_type = x_fee_type
      AND      fee_cal_type = x_fee_cal_type
      AND      fee_ci_sequence_number = x_fee_ci_sequence_number
      AND      rate_number = x_rate_number
      AND      fee_cat = x_fee_cat
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid))
      FOR UPDATE NOWAIT;
Line: 990

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    fee_type = x_fee_type
      AND      fee_cal_type = x_fee_cal_type
      AND      fee_ci_sequence_number = x_fee_ci_sequence_number
      AND      s_relation_type = x_s_relation_type
      AND      rate_number = x_rate_number
      AND      (fee_cat = x_fee_cat or fee_cat is null)
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid))
      FOR UPDATE NOWAIT;
Line: 1028

      SELECT   rowid
      FROM     igs_fi_fee_as_rate
      WHERE   (unit_mode  = x_unit_mode);
Line: 1062

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    attendance_mode = x_attendance_mode ;
Line: 1093

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    attendance_type = x_attendance_type ;
Line: 1124

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    govt_hecs_cntrbtn_band = x_govt_hecs_cntrbtn_band ;
Line: 1155

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    govt_hecs_payment_option = x_govt_hecs_payment_option ;
Line: 1186

      SELECT   rowid
      FROM     IGS_FI_FEE_AS_RATE
      WHERE    location_cd = x_location_cd ;
Line: 1218

      SELECT rowid
      FROM  IGS_FI_FEE_AS_RATE
      WHERE  course_cd = x_course_cd
      AND    version_number = x_version_number;
Line: 1252

      SELECT rowid
      FROM IGS_FI_FEE_AS_RATE
      WHERE class_standing =  x_class_standing;
Line: 1287

    x_logical_delete_dt           IN DATE ,
    x_residency_status_cd         IN VARCHAR2 ,
    x_course_cd                   IN VARCHAR2 ,
    x_version_number              IN NUMBER ,
    x_org_party_id                IN NUMBER ,
    x_class_standing              IN VARCHAR2 ,
    x_creation_date               IN DATE  ,
    x_created_by                  IN NUMBER  ,
    x_last_update_date            IN DATE  ,
    x_last_updated_by             IN NUMBER  ,
    x_last_update_login           IN NUMBER,
    x_unit_set_cd                 IN VARCHAR2,
    x_us_version_number           IN NUMBER,
    x_unit_cd                     IN VARCHAR2 ,
    x_unit_version_number         IN NUMBER   ,
    x_unit_level                  IN VARCHAR2 ,
    x_unit_type_id                IN NUMBER   ,
    x_unit_class                  IN VARCHAR2 ,
    x_unit_mode                   IN VARCHAR2
  ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
  BEGIN
    Set_Column_Values (
      p_action,
      x_rowid,
      x_far_id,
      x_fee_type,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_s_relation_type,
      x_rate_number,
      x_fee_cat,
      x_location_cd,
      x_attendance_type,
      x_attendance_mode,
      x_order_of_precedence,
      x_govt_hecs_payment_option,
      x_govt_hecs_cntrbtn_band,
      x_chg_rate,
      x_logical_delete_dt,
      x_residency_status_cd,
      x_course_cd,
      x_version_number,
      x_org_party_id,
      x_class_standing,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_unit_set_cd,
      x_us_version_number,
      x_unit_cd ,
      x_unit_version_number,
      x_unit_level,
      x_unit_type_id,
      x_unit_class,
      x_unit_mode

    );
Line: 1360

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      BeforeRowInsertUpdateDelete1 ( p_inserting => TRUE ,p_updating => FALSE , p_deleting => FALSE );
Line: 1373

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to Before Update.
      BeforeRowInsertUpdateDelete1 ( p_inserting => FALSE , p_updating => TRUE ,p_deleting => FALSE);
Line: 1376

      beforerowupdate;
Line: 1380

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to Before Delete.
      BeforeRowInsertUpdateDelete1 ( p_inserting => FALSE, p_updating => FALSE , p_deleting => TRUE );
Line: 1385

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      IF (Get_PK_For_Validation (
            new_references.far_id
          )) THEN
        Fnd_Message.Set_Name ('IGS', 'IGS_GE_RECORD_ALREADY_EXISTS');
Line: 1396

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      Check_Uniqueness;
Line: 1401

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      Check_Child_Existance;
Line: 1423

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to After Insert.
      AfterStmtInsertUpdate4 ( p_inserting => TRUE ,p_updating => FALSE , p_deleting => FALSE );
Line: 1426

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to After Update.
      AfterRowUpdate3 ( p_inserting => FALSE , p_updating => TRUE ,p_deleting => FALSE);
Line: 1429

      AfterStmtInsertUpdate4 ( p_inserting => FALSE , p_updating => TRUE ,p_deleting => FALSE);
Line: 1435

PROCEDURE insert_row (
  x_rowid                       IN OUT NOCOPY VARCHAR2,
  x_far_id                      IN OUT NOCOPY NUMBER,
  x_fee_type                    IN VARCHAR2,
  x_fee_cal_type                IN VARCHAR2,
  x_fee_ci_sequence_number      IN NUMBER,
  x_s_relation_type             IN VARCHAR2,
  x_rate_number                 IN NUMBER,
  x_fee_cat                     IN VARCHAR2,
  x_location_cd                 IN VARCHAR2,
  x_attendance_type             IN VARCHAR2,
  x_attendance_mode             IN VARCHAR2,
  x_order_of_precedence         IN NUMBER,
  x_govt_hecs_payment_option    IN VARCHAR2,
  x_govt_hecs_cntrbtn_band      IN NUMBER,
  x_chg_rate                    IN NUMBER,
  x_logical_delete_dt           IN DATE,
  x_residency_status_cd         IN VARCHAR2 ,
  x_course_cd                   IN VARCHAR2 ,
  x_version_number              IN NUMBER ,
  x_org_party_id                IN NUMBER ,
  x_class_standing              IN VARCHAR2 ,
  x_mode                        IN VARCHAR2,
  x_unit_set_cd                 IN VARCHAR2,
  x_us_version_number           IN NUMBER,
  x_unit_cd                     IN VARCHAR2 ,
  x_unit_version_number         IN NUMBER   ,
  x_unit_level                  IN VARCHAR2 ,
  x_unit_type_id                IN NUMBER   ,
  x_unit_class                  IN VARCHAR2 ,
  x_unit_mode                   IN VARCHAR2
  ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
    CURSOR C (cp_range_id IN NUMBER) is select ROWID from IGS_FI_FEE_AS_RATE
      where far_id = cp_range_id;
Line: 1483

    X_LAST_UPDATE_DATE DATE;
Line: 1484

    X_LAST_UPDATED_BY NUMBER;
Line: 1485

    X_LAST_UPDATE_LOGIN NUMBER;
Line: 1489

    X_PROGRAM_UPDATE_DATE DATE;
Line: 1492

   x_last_update_date := SYSDATE;
Line: 1494

      x_last_updated_by := 1;
Line: 1495

      x_last_update_login := 0;
Line: 1497

      x_last_updated_by := fnd_global.USER_ID;
Line: 1498

      IF x_last_updated_by IS NULL THEN
         x_last_updated_by := -1;
Line: 1501

      x_last_update_login :=fnd_global.login_id;
Line: 1502

      IF x_last_update_login IS NULL THEN
         x_last_update_login := -1;
Line: 1512

          x_program_update_date := NULL;
Line: 1514

          x_program_update_date:=SYSDATE;
Line: 1522

  SELECT   igs_fi_fee_as_rate_far_id_s.nextval
  INTO     x_far_id
  FROM     dual;
Line: 1527

 p_action                    =>'INSERT',
 x_rowid                     => x_rowid,
 x_far_id                    => x_far_id,
 x_attendance_mode           => x_attendance_mode,
 x_attendance_type           => x_attendance_type,
 x_chg_rate                  => x_chg_rate,
 x_fee_cal_type              => x_fee_cal_type,
 x_fee_cat                   => x_fee_cat,
 x_fee_ci_sequence_number    => x_fee_ci_sequence_number,
 x_fee_type                  => x_fee_type,
 x_govt_hecs_cntrbtn_band    => x_govt_hecs_cntrbtn_band,
 x_govt_hecs_payment_option  => x_govt_hecs_payment_option,
 x_location_cd               => x_location_cd,
 x_logical_delete_dt         => x_logical_delete_dt,
 x_order_of_precedence       => x_order_of_precedence,
 x_rate_number               => x_rate_number,
 x_s_relation_type           => x_s_relation_type,
 x_residency_status_cd       => x_residency_status_cd,
 x_course_cd                 => x_course_cd,
 x_version_number            => x_version_number,
 x_org_party_id              => x_org_party_id,
 x_class_standing            => x_class_standing,
 x_creation_date             => x_last_update_date,
 x_created_by                => x_last_updated_by,
 x_last_update_date          => x_last_update_date,
 x_last_updated_by           => x_last_updated_by,
 x_last_update_login         => x_last_update_login,
 x_unit_set_cd               => x_unit_set_cd,
 x_us_version_number         => x_us_version_number,
 x_unit_cd                   => x_unit_cd,
 x_unit_version_number       => x_unit_version_number,
 x_unit_level                => x_unit_level ,
 x_unit_type_id              => x_unit_type_id,
 x_unit_class                => x_unit_class ,
 x_unit_mode                 => x_unit_mode
 );
Line: 1564

  INSERT INTO igs_fi_fee_as_rate (
    far_id,
    fee_type,
    fee_cal_type,
    fee_ci_sequence_number,
    s_relation_type,
    rate_number,
    fee_cat,
    location_cd,
    attendance_type,
    attendance_mode,
    order_of_precedence,
    govt_hecs_payment_option,
    govt_hecs_cntrbtn_band,
    chg_rate,
    logical_delete_dt,
    residency_status_cd,
    course_cd,
    version_number,
    org_party_id,
    class_standing,
    creation_date,
    created_by,
    last_update_date,
    last_updated_by,
    last_update_login,
    request_id,
    program_id,
    program_application_id,
    program_update_date,
    unit_set_cd,
    us_version_number,
    unit_cd ,
    unit_version_number,
    unit_level  ,
    unit_type_id,
    unit_class  ,
    unit_mode
  ) VALUES (
    new_references.far_id,
    new_references.fee_type,
    new_references.fee_cal_type,
    new_references.fee_ci_sequence_number,
    new_references.s_relation_type,
    new_references.rate_number,
    new_references.fee_cat,
    new_references.location_cd,
    new_references.attendance_type,
    new_references.attendance_mode,
    new_references.order_of_precedence,
    new_references.govt_hecs_payment_option,
    new_references.govt_hecs_cntrbtn_band,
    new_references.chg_rate,
    new_references.logical_delete_dt,
    new_references.residency_status_cd,
    new_references.course_cd,
    new_references.version_number,
    new_references.org_party_id,
    new_references.class_standing,
    x_last_update_date,
    x_last_updated_by,
    x_last_update_date,
    x_last_updated_by,
    x_last_update_login,
    x_request_id,
    x_program_id,
    x_program_application_id,
    x_program_update_date,
    new_references.unit_set_cd,
    new_references.us_version_number,
    new_references.unit_cd,
    new_references.unit_version_number,
    new_references.unit_level ,
    new_references.unit_type_id ,
    new_references.unit_class,
    new_references.unit_mode
  );
Line: 1651

            p_action =>'INSERT',
            x_rowid => x_rowid
          );
Line: 1655

END insert_row;
Line: 1674

  x_logical_delete_dt           IN DATE,
  x_residency_status_cd         IN VARCHAR2 ,
  x_course_cd                   IN VARCHAR2 ,
  x_version_number              IN NUMBER ,
  x_org_party_id                IN NUMBER ,
  x_class_standing              IN VARCHAR2,
  x_unit_set_cd                 IN VARCHAR2,
  x_us_version_number           IN NUMBER,
  x_unit_cd                     IN VARCHAR2 ,
  x_unit_version_number         IN NUMBER   ,
  x_unit_level                  IN VARCHAR2 ,
  x_unit_type_id                IN NUMBER   ,
  x_unit_class                  IN VARCHAR2 ,
  x_unit_mode                   IN VARCHAR2
) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
  CURSOR c1 IS
  SELECT far_id,
         fee_cal_type,
         fee_ci_sequence_number,
         s_relation_type,
         rate_number,
         fee_cat,
         location_cd,
         attendance_type,
         attendance_mode,
         order_of_precedence,
         govt_hecs_payment_option,
         govt_hecs_cntrbtn_band,
         chg_rate,
         logical_delete_dt,
         residency_status_cd,
         course_cd,
         version_number,
         org_party_id,
         class_standing,
         unit_set_cd,
         us_version_number,
         unit_cd,
         unit_version_number,
         unit_level  ,
         unit_type_id ,
         unit_class ,
         unit_mode
   FROM igs_fi_fee_as_rate
   WHERE rowid = x_rowid
   FOR UPDATE NOWAIT;
Line: 1742

      fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
Line: 1761

      AND ((tlinfo.logical_delete_dt = x_logical_delete_dt) OR ((tlinfo.logical_delete_dt IS NULL) AND (x_logical_delete_dt IS NULL)))
      AND ((tlinfo.residency_status_cd = x_residency_status_cd) OR ((tlinfo.residency_status_cd IS NULL) AND (x_residency_status_cd IS NULL)))
      AND ((tlinfo.course_cd = x_course_cd) OR ((tlinfo.course_cd IS NULL) AND (x_course_cd IS NULL)))
      AND ((tlinfo.version_number = x_version_number) OR ((tlinfo.version_number IS NULL) AND (x_version_number IS NULL)))
      AND ((tlinfo.org_party_id = x_org_party_id) OR ((tlinfo.org_party_id IS NULL)  AND (x_org_party_id IS NULL)))
      AND ((tlinfo.class_standing = x_class_standing) OR ((tlinfo.class_standing IS NULL) AND (x_class_standing IS NULL)))
      AND ((tlinfo.unit_set_cd = x_unit_set_cd) OR ((tlinfo.unit_set_cd IS NULL) AND (x_unit_set_cd IS NULL)))
      AND ((tlinfo.us_version_number = x_us_version_number) OR ((tlinfo.us_version_number IS NULL) AND (x_us_version_number IS NULL)))
      AND ((tlinfo.unit_cd = x_unit_cd) OR ((tlinfo.unit_cd IS NULL) AND (x_unit_cd IS NULL)))
      AND ((tlinfo.unit_version_number = x_unit_version_number) OR ((tlinfo.unit_version_number IS NULL) AND (x_unit_version_number IS NULL)))
      AND ((tlinfo.unit_level = x_unit_level) OR ((tlinfo.unit_level IS NULL)  AND (x_unit_level IS NULL)))
      AND ((tlinfo.unit_type_id = x_unit_type_id) OR ((tlinfo.unit_type_id IS NULL) AND (x_unit_type_id IS NULL)))
      AND ((tlinfo.unit_class = x_unit_class) OR ((tlinfo.unit_class IS NULL) AND (x_unit_class IS NULL)))
      AND ((tlinfo.unit_mode = x_unit_mode) OR ((tlinfo.unit_mode IS NULL) AND (x_unit_mode IS NULL)))
    ) THEN
      NULL;
Line: 1788

PROCEDURE update_row (
  x_rowid                       IN VARCHAR2,
  x_far_id                      IN NUMBER,
  x_fee_type                    IN VARCHAR2,
  x_fee_cal_type                IN VARCHAR2,
  x_fee_ci_sequence_number      IN NUMBER,
  x_s_relation_type             IN VARCHAR2,
  x_rate_number                 IN NUMBER,
  x_fee_cat                     IN VARCHAR2,
  x_location_cd                 IN VARCHAR2,
  x_attendance_type             IN VARCHAR2,
  x_attendance_mode             IN VARCHAR2,
  x_order_of_precedence         IN NUMBER,
  x_govt_hecs_payment_option    IN VARCHAR2,
  x_govt_hecs_cntrbtn_band      IN NUMBER,
  x_chg_rate                    IN NUMBER,
  x_logical_delete_dt           IN DATE,
  x_residency_status_cd         IN VARCHAR2 ,
  x_course_cd                   IN VARCHAR2 ,
  x_version_number              IN NUMBER ,
  x_org_party_id                IN NUMBER  ,
  x_class_standing              IN VARCHAR2 ,
  x_mode                        IN VARCHAR2,
  x_unit_set_cd                 IN VARCHAR2,
  x_us_version_number           IN NUMBER,
  x_unit_cd                     IN VARCHAR2 ,
  x_unit_version_number         IN NUMBER   ,
  x_unit_level                  IN VARCHAR2 ,
  x_unit_type_id                IN NUMBER   ,
  x_unit_class                  IN VARCHAR2 ,
  x_unit_mode                   IN VARCHAR2
  ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
    x_last_update_date       DATE;
Line: 1834

    x_last_updated_by        NUMBER;
Line: 1835

    x_last_update_login      NUMBER;
Line: 1839

    x_program_update_date    DATE;
Line: 1843

  x_last_update_date := SYSDATE;
Line: 1846

      x_last_updated_by := 1;
Line: 1847

      x_last_update_login := 0;
Line: 1849

      x_last_updated_by := fnd_global.user_id;
Line: 1850

      IF x_last_updated_by IS NULL THEN
         x_last_updated_by := -1;
Line: 1853

      x_last_update_login :=fnd_global.login_id;
Line: 1854

      IF x_last_update_login IS NULL THEN
         x_last_update_login := -1;
Line: 1864

          x_program_update_date     := old_references.program_update_date;
Line: 1866

          x_program_update_date := SYSDATE;
Line: 1875

   p_action                      => 'UPDATE',
   x_rowid                       => x_rowid,
   x_far_id                      => x_far_id,
   x_attendance_mode             => x_attendance_mode,
   x_attendance_type             => x_attendance_type,
   x_chg_rate                    => x_chg_rate,
   x_fee_cal_type                => x_fee_cal_type,
   x_fee_cat                     => x_fee_cat,
   x_fee_ci_sequence_number      => x_fee_ci_sequence_number,
   x_fee_type                    => x_fee_type,
   x_govt_hecs_cntrbtn_band      => x_govt_hecs_cntrbtn_band,
   x_govt_hecs_payment_option    => x_govt_hecs_payment_option,
   x_location_cd                 => x_location_cd,
   x_logical_delete_dt           => x_logical_delete_dt,
   x_order_of_precedence         => x_order_of_precedence,
   x_rate_number                 => x_rate_number,
   x_s_relation_type             => x_s_relation_type,
   x_residency_status_cd         => x_residency_status_cd,
   x_course_cd                   => x_course_cd,
   x_version_number              => x_version_number,
   x_org_party_id                => x_org_party_id,
   x_class_standing              => x_class_standing,
   x_creation_date               => x_last_update_date,
   x_created_by                  => x_last_updated_by,
   x_last_update_date            => x_last_update_date,
   x_last_updated_by             => x_last_updated_by,
   x_last_update_login           => x_last_update_login,
   x_unit_set_cd                 => x_unit_set_cd,
   x_us_version_number           => x_us_version_number,
   x_unit_cd                     => x_unit_cd,
   x_unit_version_number         => x_unit_version_number,
   x_unit_level                  => x_unit_level ,
   x_unit_type_id                => x_unit_type_id,
   x_unit_class                  => x_unit_class ,
   x_unit_mode                   => x_unit_mode
 );
Line: 1912

  UPDATE igs_fi_fee_as_rate
  SET
    far_id                   = far_id,
    fee_cal_type             = new_references.fee_cal_type,
    fee_ci_sequence_number   = new_references.fee_ci_sequence_number,
    s_relation_type          = new_references.s_relation_type,
    rate_number              = new_references.rate_number,
    fee_cat                  = new_references.fee_cat,
    location_cd              = new_references.location_cd,
    attendance_type          = new_references.attendance_type,
    attendance_mode          = new_references.attendance_mode,
    order_of_precedence      = new_references.order_of_precedence,
    govt_hecs_payment_option = new_references.govt_hecs_payment_option,
    govt_hecs_cntrbtn_band   = new_references.govt_hecs_cntrbtn_band,
    chg_rate                 = new_references.chg_rate,
    logical_delete_dt        = new_references.logical_delete_dt,
    residency_status_cd      = new_references.residency_status_cd,
    course_cd                = new_references.course_cd,
    version_number           = new_references.version_number,
    org_party_id             = new_references.org_party_id,
    class_standing           = new_references.class_standing,
    last_update_date         = x_last_update_date,
    last_updated_by          = x_last_updated_by,
    last_update_login        = x_last_update_login,
    request_id               = x_request_id,
    program_id               = x_program_id,
    program_application_id   = x_program_application_id,
    program_update_date      = x_program_update_date,
    unit_set_cd              = new_references.unit_set_cd,
    us_version_number        = new_references.us_version_number,
    unit_cd                  = new_references.unit_cd,
    unit_version_number      = new_references.unit_version_number,
    unit_level               = new_references.unit_level ,
    unit_type_id             = new_references.unit_type_id,
    unit_class               = new_references.unit_class ,
    unit_mode                = new_references.unit_mode
  WHERE rowid = x_rowid ;
Line: 1955

            p_action =>'UPDATE',
            x_rowid => x_rowid
           );
Line: 1959

END update_row;
Line: 1978

  x_logical_delete_dt           IN DATE,
  x_residency_status_cd         IN VARCHAR2 ,
  x_course_cd                   IN VARCHAR2 ,
  x_version_number              IN NUMBER ,
  x_org_party_id                IN NUMBER ,
  x_class_standing              IN VARCHAR2 ,
  x_mode                        IN VARCHAR2 ,
  x_unit_set_cd                 IN VARCHAR2,
  x_us_version_number           IN NUMBER,
  x_unit_cd                     IN VARCHAR2 ,
  x_unit_version_number         IN NUMBER   ,
  x_unit_level                  IN VARCHAR2 ,
  x_unit_type_id                IN NUMBER   ,
  x_unit_class                  IN VARCHAR2 ,
  x_unit_mode                   IN VARCHAR2
  ) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  || svuppala         31-MAY-2005    Enh 3442712: Added Unit Program Type Level, Unit Mode, Unit Class, Unit Code,
  ||                                 Unit Version and Unit Level
  ||  pathipat        10-Sep-2003     Enh 3108052 - Add Unit Sets to Rate Table
  ||                                  Added 2 new columns unit_set_cd and us_version_number
  --------------------------------------------------------------------*/
  CURSOR c1 IS
    SELECT rowid
    FROM igs_fi_fee_as_rate
    WHERE far_id = x_far_id ;
Line: 2016

    insert_row (
     x_rowid,
     x_far_id,
     x_fee_type,
     x_fee_cal_type,
     x_fee_ci_sequence_number,
     x_s_relation_type,
     x_rate_number,
     x_fee_cat,
     x_location_cd,
     x_attendance_type,
     x_attendance_mode,
     x_order_of_precedence,
     x_govt_hecs_payment_option,
     x_govt_hecs_cntrbtn_band,
     x_chg_rate,
     x_logical_delete_dt,
     x_residency_status_cd,
     x_course_cd,
     x_version_number,
     x_org_party_id,
     x_class_standing,
     x_mode,
     x_unit_set_cd,
     x_us_version_number,
     x_unit_cd,
     x_unit_version_number,
     x_unit_level,
     x_unit_type_id,
     x_unit_class,
     x_unit_mode
     );
Line: 2052

  update_row (
   x_rowid,
   x_far_id,
   x_fee_type,
   x_fee_cal_type,
   x_fee_ci_sequence_number,
   x_s_relation_type,
   x_rate_number,
   x_fee_cat,
   x_location_cd,
   x_attendance_type,
   x_attendance_mode,
   x_order_of_precedence,
   x_govt_hecs_payment_option,
   x_govt_hecs_cntrbtn_band,
   x_chg_rate,
   x_logical_delete_dt,
   x_residency_status_cd,
   x_course_cd,
   x_version_number,
   x_org_party_id,
   x_class_standing,
   x_mode,
   x_unit_set_cd,
   x_us_version_number,
   x_unit_cd,
   x_unit_version_number,
   x_unit_level,
   x_unit_type_id,
   x_unit_class,
   x_unit_mode
   );
Line: 2087

PROCEDURE delete_row (
  x_rowid IN VARCHAR2
) AS
   /*-----------------------------------------------------------------
  ||  Created By :
  ||  Created On :
  ||  Purpose :
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  --------------------------------------------------------------------*/
BEGIN
   Before_DML( p_action =>'DELETE',
               x_rowid => X_ROWID
             );
Line: 2103

  DELETE FROM igs_fi_fee_as_rate
  WHERE rowid = x_rowid;
Line: 2108

END delete_row;
Line: 2111

PROCEDURE beforerowupdate AS
 /*----------------------------------------------------------------------------
  ||  Created By : vchappid
  ||  Created On : 02-Jul-2002
  ||  Purpose : Will not allow any updation of attributes when the logical delete date is set.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
 ----------------------------------------------------------------------------*/
BEGIN
  -- Bug#2409567, Will not allow any updation of attributes when the logical delete date is set.
  IF old_references.logical_delete_dt IS NOT NULL THEN
    fnd_message.set_name('IGS','IGS_FI_LOG_DEL_UPD_NOT_ALLOWED');
Line: 2128

END beforerowupdate;
Line: 2144

      SELECT rowid
      FROM   igs_fi_fee_as_rate
      WHERE  unit_set_cd = x_unit_set_cd
      AND    us_version_number = x_us_version_number;