DBA Data[Home] [Help]

APPS.IGS_FI_BILL_TRNSCTNS_PKG SQL Statements

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

Line: 22

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 23-JUL-2001
  ||  Purpose : Initialises the Old and New references for the columns of the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_FI_BILL_TRNSCTNS
      WHERE    rowid = x_rowid;
Line: 49

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 78

    new_references.last_updated_by                   := x_last_updated_by;
Line: 79

    new_references.last_update_login                 := x_last_update_login;
Line: 128

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

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

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

      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE    transaction_id = x_transaction_id
      FOR UPDATE NOWAIT;
Line: 209

      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE    transaction_type = x_transaction_type
      AND      invoice_creditact_id = x_invoice_creditact_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 245

      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE   ((invoice_creditact_id = x_invoice_id));
Line: 280

      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE   ((bill_id = x_bill_id));
Line: 315

      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE   ((invoice_creditact_id = x_credit_activity_id));
Line: 351

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 23-JUL-2001
  ||  Purpose : Initialises the columns, Checks Constraints, Calls the
  ||            Trigger Handlers for the table, before any DML operation.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_transaction_id,
      x_bill_id,
      x_transaction_type,
      x_invoice_creditact_id,
      x_transaction_date,
      x_transaction_number,
      x_fee_credit_type,
      x_transaction_description,
      x_transaction_amount,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 386

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.transaction_id
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 398

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to Before Update.
      check_uniqueness;
Line: 402

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.transaction_id
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 413

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 420

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_transaction_id                    IN OUT NOCOPY NUMBER,
    x_bill_id                           IN     NUMBER,
    x_transaction_type                  IN     VARCHAR2,
    x_invoice_creditact_id              IN     NUMBER,
    x_transaction_date                  IN     DATE,
    x_transaction_number                IN     VARCHAR2,
    x_fee_credit_type                   IN     VARCHAR2,
    x_transaction_description           IN     VARCHAR2,
    x_transaction_amount                IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 23-JUL-2001
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE    transaction_id                    = x_transaction_id;
Line: 447

    x_last_update_date           DATE;
Line: 448

    x_last_updated_by            NUMBER;
Line: 449

    x_last_update_login          NUMBER;
Line: 453

    x_program_update_date        DATE;
Line: 457

    x_last_update_date := SYSDATE;
Line: 459

      x_last_updated_by := 1;
Line: 460

      x_last_update_login := 0;
Line: 462

      x_last_updated_by := fnd_global.user_id;
Line: 463

      IF (x_last_updated_by IS NULL) THEN
        x_last_updated_by := -1;
Line: 466

      x_last_update_login := fnd_global.login_id;
Line: 467

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 478

        x_program_update_date    := NULL;
Line: 480

        x_program_update_date    := SYSDATE;
Line: 488

    SELECT    igs_fi_bill_trnsctns_s.NEXTVAL
    INTO      x_transaction_id
    FROM      dual;
Line: 493

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_transaction_id                    => x_transaction_id,
      x_bill_id                           => x_bill_id,
      x_transaction_type                  => x_transaction_type,
      x_invoice_creditact_id              => x_invoice_creditact_id,
      x_transaction_date                  => x_transaction_date,
      x_transaction_number                => x_transaction_number,
      x_fee_credit_type                   => x_fee_credit_type,
      x_transaction_description           => x_transaction_description,
      x_transaction_amount                => x_transaction_amount,
      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
    );
Line: 511

    INSERT INTO igs_fi_bill_trnsctns (
      transaction_id,
      bill_id,
      transaction_type,
      invoice_creditact_id,
      transaction_date,
      transaction_number,
      fee_credit_type,
      transaction_description,
      transaction_amount,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date
    ) VALUES (
      new_references.transaction_id,
      new_references.bill_id,
      new_references.transaction_type,
      new_references.invoice_creditact_id,
      new_references.transaction_date,
      new_references.transaction_number,
      new_references.fee_credit_type,
      new_references.transaction_description,
      new_references.transaction_amount,
      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
    );
Line: 559

  END insert_row;
Line: 584

      SELECT
        bill_id,
        transaction_type,
        invoice_creditact_id,
        transaction_date,
        transaction_number,
        fee_credit_type,
        transaction_description,
        transaction_amount
      FROM  igs_fi_bill_trnsctns
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 604

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_transaction_id                    IN     NUMBER,
    x_bill_id                           IN     NUMBER,
    x_transaction_type                  IN     VARCHAR2,
    x_invoice_creditact_id              IN     NUMBER,
    x_transaction_date                  IN     DATE,
    x_transaction_number                IN     VARCHAR2,
    x_fee_credit_type                   IN     VARCHAR2,
    x_transaction_description           IN     VARCHAR2,
    x_transaction_amount                IN     NUMBER,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 23-JUL-2001
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 657

    x_last_updated_by            NUMBER;
Line: 658

    x_last_update_login          NUMBER;
Line: 662

    x_program_update_date        DATE;
Line: 666

    x_last_update_date := SYSDATE;
Line: 668

      x_last_updated_by := 1;
Line: 669

      x_last_update_login := 0;
Line: 671

      x_last_updated_by := fnd_global.user_id;
Line: 672

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

      x_last_update_login := fnd_global.login_id;
Line: 676

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 686

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_transaction_id                    => x_transaction_id,
      x_bill_id                           => x_bill_id,
      x_transaction_type                  => x_transaction_type,
      x_invoice_creditact_id              => x_invoice_creditact_id,
      x_transaction_date                  => x_transaction_date,
      x_transaction_number                => x_transaction_number,
      x_fee_credit_type                   => x_fee_credit_type,
      x_transaction_description           => x_transaction_description,
      x_transaction_amount                => x_transaction_amount,
      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
    );
Line: 712

        x_program_update_date := old_references.program_update_date;
Line: 714

        x_program_update_date := SYSDATE;
Line: 718

    UPDATE igs_fi_bill_trnsctns
      SET
        bill_id                           = new_references.bill_id,
        transaction_type                  = new_references.transaction_type,
        invoice_creditact_id              = new_references.invoice_creditact_id,
        transaction_date                  = new_references.transaction_date,
        transaction_number                = new_references.transaction_number,
        fee_credit_type                   = new_references.fee_credit_type,
        transaction_description           = new_references.transaction_description,
        transaction_amount                = new_references.transaction_amount,
        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
      WHERE rowid = x_rowid;
Line: 741

  END update_row;
Line: 760

  ||  Purpose : Adds a row if there is no existing row, otherwise updates existing row in the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_fi_bill_trnsctns
      WHERE    transaction_id                    = x_transaction_id;
Line: 778

      insert_row (
        x_rowid,
        x_transaction_id,
        x_bill_id,
        x_transaction_type,
        x_invoice_creditact_id,
        x_transaction_date,
        x_transaction_number,
        x_fee_credit_type,
        x_transaction_description,
        x_transaction_amount,
        x_mode
      );
Line: 795

    update_row (
      x_rowid,
      x_transaction_id,
      x_bill_id,
      x_transaction_type,
      x_invoice_creditact_id,
      x_transaction_date,
      x_transaction_number,
      x_fee_credit_type,
      x_transaction_description,
      x_transaction_amount,
      x_mode
    );
Line: 812

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 23-JUL-2001
  ||  Purpose : Handles the DELETE DML logic for the table.
  ||  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: 831

    DELETE FROM igs_fi_bill_trnsctns
    WHERE rowid = x_rowid;
Line: 838

  END delete_row;