DBA Data[Home] [Help]

APPS.IGS_FI_CREDITS_PKG SQL Statements

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

Line: 63

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_gl_date                           IN     DATE    ,
    x_check_number                      IN     VARCHAR2,
    x_source_transaction_type           IN     VARCHAR2,
    x_source_transaction_ref            IN     VARCHAR2,
    x_credit_card_status_code           IN     VARCHAR2,
    x_credit_card_payee_cd              IN     VARCHAR2,
    x_credit_card_tangible_cd           IN     VARCHAR2,
    x_lockbox_interface_id              IN     NUMBER  ,
    x_batch_name                        IN     VARCHAR2,
    x_deposit_date                      IN     DATE,
    x_source_invoice_id                 IN     NUMBER,
    x_tax_year_code                     IN     VARCHAR2,
    x_waiver_name                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Initialises the Old and New references for the columns of the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When             What
  || uudayapr    8-Aug2005             Enh 3392095 Tution waiver Build
  ||                                   Added the Waiver name column
  ||  pathipat        20-Apr-2004      Enh 3558549 - Comm Rec Enhancements
  ||                                   Added new column source_invoice_id
  ||  vvutukur        16-Jun-2003      Enh#2831582.Lockbox Build. Added 3 new columns lockbox_interface_id,batch_name,deposit_date.
  ||  schodava        11-Jun-2003      Enh# 2831587, Added three new columns
  ||  shtatiko        03-DEC-2002      Enh Bug 2584741, Added three new columns, check_number,
  ||                                   source_transaction_type and source_transaction_ref
  ||  smadathi        01-Nov-2002      Enh Bug 2584986. Added new column GL_DATE
  ||  vvutukur       17-Sep-2002       Enh#2564643.Removed references to subaccount_id.Also removed
  ||                                   DEFAULT clause from procedure parameter list.
  ||  SMVK           04-Feb-2002       Updated existing procedure for
  ||                                   Four parameters awd_yr_cal_type
  ||                                   awd_yr_ci_sequence_number
  ||                                   fee_cal_type, fee_ci_sequence_number
  ||                                   Enhancement Bug No.2191470
  ||  smadathi        05-oct-2001      Balance Flag reference removed .
  ||                                   Enhancement Bug No. 2030448
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_FI_CREDITS_ALL
      WHERE    rowid = x_rowid;
Line: 121

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 203

    new_references.last_updated_by                   := x_last_updated_by;
Line: 204

    new_references.last_update_login                 := x_last_update_login;
Line: 209

  PROCEDURE BeforeRowInsertUpdate AS
  /*
  ||  Created By : VVUTUKUR
  ||  Created On : 14-MAY-2002
  ||  Purpose : For validating reversal date with payment date.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

--If reversal date specified in reversal form is less than payment date of a credit,
    IF TRUNC(new_references.reversal_date) IS NOT NULL THEN
      IF (TRUNC(new_references.reversal_date) < TRUNC(new_references.transaction_date)) THEN
     --Throw error message
        fnd_message.set_name('IGS','IGS_FI_REV_DT_LESS_RECT_DT');
Line: 233

  END BeforeRowInsertUpdate;
Line: 292

      SELECT   rowid
      FROM     hz_parties
      WHERE    party_id = new_references.party_id;
Line: 301

      SELECT   rowid
      FROM     igf_lookups_view
      WHERE    lookup_type = 'IGF_AW_FED_FUND'
      AND      lookup_code = new_references.credit_source;
Line: 321

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

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

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

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

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

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

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

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

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

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

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

  ||                                  Removed FOR UPDATE NOWAIT clause in cur_rowid
  ||  (reverse chronological order - newest change first)
  */
    CURSOR cur_rowid IS
      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE    credit_id = x_credit_id;
Line: 544

      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE    credit_number = x_credit_number
      AND      party_id = x_party_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 580

      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE   ((credit_type_id = x_credit_type_id));
Line: 617

      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE   (( (awd_yr_cal_type = x_awd_yr_cal_type ) AND ( awd_yr_ci_sequence_number = x_awd_yr_ci_sequence_number) ));
Line: 653

      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE   (( (fee_cal_type = x_fee_cal_type ) AND ( fee_ci_sequence_number = x_fee_ci_sequence_number) ));
Line: 729

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_gl_date                           IN     DATE    ,
    x_check_number                      IN     VARCHAR2,
    x_source_transaction_type           IN     VARCHAR2,
    x_source_transaction_ref            IN     VARCHAR2,
    x_credit_card_status_code           IN     VARCHAR2,
    x_credit_card_payee_cd              IN     VARCHAR2,
    x_credit_card_tangible_cd           IN     VARCHAR2,
    x_lockbox_interface_id              IN     NUMBER  ,
    x_batch_name                        IN     VARCHAR2,
    x_deposit_date                      IN     DATE,
    x_source_invoice_id                 IN     NUMBER,
    x_tax_year_code                     IN     VARCHAR2,
    x_waiver_name                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-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
  || uudayapr    8-Aug2005             Enh 3392095 Tution waiver Build
  ||                                   Added the Waiver name column
  ||  pathipat        20-Apr-2004      Enh 3558549 - Comm Rec Enhancements
  ||                                   Added new column source_invoice_id
  ||  vvutukur        16-Jun-2003      Enh#2831582.Lockbox Build. Added 3 new columns lockbox_interface_id,batch_name,deposit_date.
  ||  schodava        11-Jun-2003      Enh# 2831587, Added three new columns
  ||  shtatiko        03-DEC-2002      Enh Bug 2584741, Added three new columns, check_number,
  ||                                   source_transaction_type and source_transaction_ref. Removed calls to
  ||                                   check_constraints.
  ||  smadathi        01-Nov-2002      Enh Bug 2584986. Added new column GL_DATE. Also added call to
  ||                                   check constraints procedure
  ||  vvutukur    17-Sep-2002   Enh#2564643.Removed references to subaccount_id. Also removed DEFAULT
  ||                            clause from procedure parameter list to avoid gscc warnings.
  ||  vvutukur    14-May-2002   Called newly created private procedure BeforeRowInsertUpdate
  ||                                        which validates reversal date with transaction date.
  ||  SMVK           04-Feb-2002       Updated existing procedure for
  ||                                   Four parameters awd_yr_cal_type
  ||                                   awd_yr_ci_sequence_number
  ||                                   fee_cal_type, fee_ci_sequence_number
  ||                                   Enhancement Bug No.2191470
  ||  smadathi        05-oct-2001      Balance Flag reference removed .
  ||                                   Enhancement Bug No. 2030448
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_credit_id,
      x_credit_number,
      x_status,
      x_credit_source,
      x_party_id,
      x_credit_type_id,
      x_credit_instrument,
      x_description,
      x_amount,
      x_currency_cd,
      x_exchange_rate,
      x_transaction_date,
      x_effective_date,
      x_reversal_date,
      x_reversal_reason_code,
      x_reversal_comments,
      x_unapplied_amount,
      x_source_transaction_id,
      x_receipt_lockbox_number,
      x_merchant_id,
      x_credit_card_code,
      x_credit_card_holder_name,
      x_credit_card_number,
      x_credit_card_expiration_date,
      x_credit_card_approval_code,
      x_awd_yr_cal_type,
      x_awd_yr_ci_sequence_number,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_attribute16,
      x_attribute17,
      x_attribute18,
      x_attribute19,
      x_attribute20,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login ,
      x_gl_date,
      x_check_number,
      x_source_transaction_type,
      x_source_transaction_ref,
      x_credit_card_status_code,
      x_credit_card_payee_cd,
      x_credit_card_tangible_cd,
      x_lockbox_interface_id,
      x_batch_name,
      x_deposit_date,
      x_source_invoice_id,
      x_tax_year_code,
      x_waiver_name
    );
Line: 853

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

      BeforeRowInsertUpdate;
Line: 866

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

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to Before Delete.
      check_child_existance;
Line: 874

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

      BeforeRowInsertUpdate;
Line: 886

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      BeforeRowInsertUpdate;
Line: 889

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 895

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_credit_id                         IN OUT NOCOPY NUMBER,
    x_credit_number                     IN OUT NOCOPY VARCHAR2,
    x_status                            IN     VARCHAR2,
    x_credit_source                     IN     VARCHAR2,
    x_party_id                          IN     NUMBER,
    x_credit_type_id                    IN     NUMBER,
    x_credit_instrument                 IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_amount                            IN     NUMBER,
    x_currency_cd                       IN     VARCHAR2,
    x_exchange_rate                     IN     NUMBER,
    x_transaction_date                  IN     DATE,
    x_effective_date                    IN     DATE,
    x_reversal_date                     IN     DATE,
    x_reversal_reason_code              IN     VARCHAR2,
    x_reversal_comments                 IN     VARCHAR2,
    x_unapplied_amount                  IN     NUMBER,
    x_source_transaction_id             IN     NUMBER,
    x_receipt_lockbox_number            IN     VARCHAR2,
    x_merchant_id                       IN     VARCHAR2,
    x_credit_card_code                  IN     VARCHAR2,
    x_credit_card_holder_name           IN     VARCHAR2,
    x_credit_card_number                IN     VARCHAR2,
    x_credit_card_expiration_date       IN     DATE,
    x_credit_card_approval_code         IN     VARCHAR2,
    x_awd_yr_cal_type                   IN     VARCHAR2,
    x_awd_yr_ci_sequence_number         IN     NUMBER,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_attribute16                       IN     VARCHAR2,
    x_attribute17                       IN     VARCHAR2,
    x_attribute18                       IN     VARCHAR2,
    x_attribute19                       IN     VARCHAR2,
    x_attribute20                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    x_gl_date                           IN     DATE    ,
    x_check_number                      IN     VARCHAR2,
    x_source_transaction_type           IN     VARCHAR2,
    x_source_transaction_ref            IN     VARCHAR2,
    x_credit_card_status_code           IN     VARCHAR2,
    x_credit_card_payee_cd              IN     VARCHAR2,
    x_credit_card_tangible_cd           IN     VARCHAR2,
    x_lockbox_interface_id              IN     NUMBER  ,
    x_batch_name                        IN     VARCHAR2,
    x_deposit_date                      IN     DATE,
    x_source_invoice_id                 IN     NUMBER,
    x_tax_year_code                     IN     VARCHAR2,
    x_waiver_name                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || uudayapr    8-Aug2005             Enh 3392095 Tution waiver Build
  ||                                   Added the Waiver name column
  ||  svuppala        9-JUN-2005      Enh 4213629 - The automatic generation of the Receipt Number.
  ||                                  Changed x_credit_number parameter  as IN OUT in Insert row
  ||  pathipat        20-Apr-2004      Enh 3558549 - Comm Rec Enhancements
  ||                                   Added new column source_invoice_id
  ||  vvutukur        16-Jun-2003      Enh#2831582.Lockbox Build. Added 3 new columns lockbox_interface_id,batch_name,deposit_date.
  ||  schodava        11-Jun-2003      Enh# 2831587, Added three new columns
  ||  shtatiko        03-DEC-2002      Enh Bug 2584741, Added three new columns, check_number,
  ||                                   source_transaction_type and source_transaction_ref
  ||  smadathi        01-Nov-2002      Enh Bug 2584986. Added new column GL_DATE
  ||  vvutukur       17-Sep-2002   Enh#2564643.Removed references to subaccount_id column as this has been
  ||                               obsoleted.Also removed DEFAULT clause from procedure parameter list
  ||                               to avoid gscc warnings.
  ||  SMVK           04-Feb-2002       Updated existing procedure for
  ||                                   Four parameters awd_yr_cal_type
  ||                                   awd_yr_ci_sequence_number
  ||                                   fee_cal_type, fee_ci_sequence_number
  ||                                   Enhancement Bug No.2191470
  ||  smadathi        05-oct-2001      Balance Flag reference removed .
  ||                                   Enhancement Bug No. 2030448
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE    credit_id                         = x_credit_id;
Line: 997

    x_last_update_date           DATE;
Line: 998

    x_last_updated_by            NUMBER;
Line: 999

    x_last_update_login          NUMBER;
Line: 1003

    x_program_update_date        DATE;
Line: 1007

    x_last_update_date := SYSDATE;
Line: 1009

      x_last_updated_by := 1;
Line: 1010

      x_last_update_login := 0;
Line: 1012

      x_last_updated_by := fnd_global.user_id;
Line: 1013

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

      x_last_update_login := fnd_global.login_id;
Line: 1017

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

        x_program_update_date    := NULL;
Line: 1030

        x_program_update_date    := SYSDATE;
Line: 1038

    SELECT    igs_fi_credits_s.NEXTVAL
    INTO      x_credit_id
    FROM      dual;
Line: 1042

    SELECT    igs_fi_credit_num_s.NEXTVAL
    INTO      x_credit_number
    FROM      dual;
Line: 1049

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_credit_id                         => x_credit_id,
      x_credit_number                     => x_credit_number,
      x_status                            => x_status,
      x_credit_source                     => x_credit_source,
      x_party_id                          => x_party_id,
      x_credit_type_id                    => x_credit_type_id,
      x_credit_instrument                 => x_credit_instrument,
      x_description                       => x_description,
      x_amount                            => x_amount,
      x_currency_cd                       => x_currency_cd,
      x_exchange_rate                     => x_exchange_rate,
      x_transaction_date                  => x_transaction_date,
      x_effective_date                    => x_effective_date,
      x_reversal_date                     => x_reversal_date,
      x_reversal_reason_code              => x_reversal_reason_code,
      x_reversal_comments                 => x_reversal_comments,
      x_unapplied_amount                  => x_unapplied_amount,
      x_source_transaction_id             => x_source_transaction_id,
      x_receipt_lockbox_number            => x_receipt_lockbox_number,
      x_merchant_id                       => x_merchant_id,
      x_credit_card_code                  => x_credit_card_code,
      x_credit_card_holder_name           => x_credit_card_holder_name,
      x_credit_card_number                => x_credit_card_number,
      x_credit_card_expiration_date       => x_credit_card_expiration_date,
      x_credit_card_approval_code         => x_credit_card_approval_code,
      x_awd_yr_cal_type                   => x_awd_yr_cal_type,
      x_awd_yr_ci_sequence_number         => x_awd_yr_ci_sequence_number,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_attribute16                       => x_attribute16,
      x_attribute17                       => x_attribute17,
      x_attribute18                       => x_attribute18,
      x_attribute19                       => x_attribute19,
      x_attribute20                       => x_attribute20,
      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_gl_date                           => x_gl_date,
      x_check_number                      => x_check_number,
      x_source_transaction_type           => x_source_transaction_type,
      x_source_transaction_ref            => x_source_transaction_ref,
      x_credit_card_status_code           => x_credit_card_status_code,
      x_credit_card_payee_cd              => x_credit_card_payee_cd,
      x_credit_card_tangible_cd           => x_credit_card_tangible_cd,
      x_lockbox_interface_id              => x_lockbox_interface_id,
      x_batch_name                        => x_batch_name,
      x_deposit_date                      => x_deposit_date,
      x_source_invoice_id                 => x_source_invoice_id,
      x_tax_year_code                     => x_tax_year_code,
      x_waiver_name                       => x_waiver_name
    );
Line: 1121

    INSERT INTO igs_fi_credits_all (
      credit_id,
      credit_number,
      status,
      credit_source,
      party_id,
      credit_type_id,
      credit_instrument,
      description,
      amount,
      currency_cd,
      exchange_rate,
      transaction_date,
      effective_date,
      reversal_date,
      reversal_reason_code,
      reversal_comments,
      org_id,
      unapplied_amount,
      source_transaction_id,
      receipt_lockbox_number,
      merchant_id,
      credit_card_code,
      credit_card_holder_name,
      credit_card_number,
      credit_card_expiration_date,
      credit_card_approval_code,
      awd_yr_cal_type,
      awd_yr_ci_sequence_number,
      fee_cal_type,
      fee_ci_sequence_number,
      attribute_category,
      attribute1,
      attribute2,
      attribute3,
      attribute4,
      attribute5,
      attribute6,
      attribute7,
      attribute8,
      attribute9,
      attribute10,
      attribute11,
      attribute12,
      attribute13,
      attribute14,
      attribute15,
      attribute16,
      attribute17,
      attribute18,
      attribute19,
      attribute20,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date ,
      gl_date,
      check_number,
      source_transaction_type,
      source_transaction_ref,
      credit_card_status_code,
      credit_card_payee_cd,
      credit_card_tangible_cd,
      lockbox_interface_id,
      batch_name,
      deposit_date,
      source_invoice_id,
      tax_year_code,
      waiver_name
      ) VALUES (
      new_references.credit_id,
      new_references.credit_number,
      new_references.status,
      new_references.credit_source,
      new_references.party_id,
      new_references.credit_type_id,
      new_references.credit_instrument,
      new_references.description,
      new_references.amount,
      new_references.currency_cd,
      new_references.exchange_rate,
      new_references.transaction_date,
      new_references.effective_date,
      new_references.reversal_date,
      new_references.reversal_reason_code,
      new_references.reversal_comments,
      new_references.org_id,
      new_references.unapplied_amount,
      new_references.source_transaction_id,
      new_references.receipt_lockbox_number,
      new_references.merchant_id,
      new_references.credit_card_code,
      new_references.credit_card_holder_name,
      new_references.credit_card_number,
      new_references.credit_card_expiration_date,
      new_references.credit_card_approval_code,
      new_references.awd_yr_cal_type,
      new_references.awd_yr_ci_sequence_number,
      new_references.fee_cal_type,
      new_references.fee_ci_sequence_number,
      new_references.attribute_category,
      new_references.attribute1,
      new_references.attribute2,
      new_references.attribute3,
      new_references.attribute4,
      new_references.attribute5,
      new_references.attribute6,
      new_references.attribute7,
      new_references.attribute8,
      new_references.attribute9,
      new_references.attribute10,
      new_references.attribute11,
      new_references.attribute12,
      new_references.attribute13,
      new_references.attribute14,
      new_references.attribute15,
      new_references.attribute16,
      new_references.attribute17,
      new_references.attribute18,
      new_references.attribute19,
      new_references.attribute20,
      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.gl_date,
      new_references.check_number,
      new_references.source_transaction_type,
      new_references.source_transaction_ref,
      new_references.credit_card_status_code,
      new_references.credit_card_payee_cd,
      new_references.credit_card_tangible_cd,
      new_references.lockbox_interface_id,
      new_references.batch_name,
      new_references.deposit_date,
      new_references.source_invoice_id,
      new_references.tax_year_code,
      new_references.waiver_name
    );
Line: 1278

  END insert_row;
Line: 1366

  ||  SMVK           04-Feb-2002       Updated existing procedure for
  ||                                   Four parameters awd_yr_cal_type
  ||                                   awd_yr_ci_sequence_number
  ||                                   fee_cal_type, fee_ci_sequence_number
  ||                                   Enhancement Bug No.2191470
  ||  smadathi        05-oct-2001      Balance Flag reference removed .
  ||                                   Enhancement Bug No. 2030448
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT
        credit_number,
        status,
        credit_source,
        party_id,
        credit_type_id,
        credit_instrument,
        description,
        amount,
        currency_cd,
        exchange_rate,
        transaction_date,
        effective_date,
        reversal_date,
        reversal_reason_code,
        reversal_comments,
        unapplied_amount,
        source_transaction_id,
        receipt_lockbox_number,
        merchant_id,
        credit_card_code,
        credit_card_holder_name,
        credit_card_number,
        credit_card_expiration_date,
        credit_card_approval_code,
        awd_yr_cal_type,
        awd_yr_ci_sequence_number,
        fee_cal_type,
        fee_ci_sequence_number,
        attribute_category,
        attribute1,
        attribute2,
        attribute3,
        attribute4,
        attribute5,
        attribute6,
        attribute7,
        attribute8,
        attribute9,
        attribute10,
        attribute11,
        attribute12,
        attribute13,
        attribute14,
        attribute15,
        attribute16,
        attribute17,
        attribute18,
        attribute19,
        attribute20,
        gl_date,
        check_number,
        source_transaction_type,
        source_transaction_ref,
        credit_card_status_code,
        credit_card_payee_cd,
        credit_card_tangible_cd,
        lockbox_interface_id,
        batch_name,
        deposit_date,
        source_invoice_id,
	      tax_year_code,
        waiver_name
      FROM  igs_fi_credits_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 1450

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_credit_id                         IN     NUMBER,
    x_credit_number                     IN     VARCHAR2,
    x_status                            IN     VARCHAR2,
    x_credit_source                     IN     VARCHAR2,
    x_party_id                          IN     NUMBER,
    x_credit_type_id                    IN     NUMBER,
    x_credit_instrument                 IN     VARCHAR2,
    x_description                       IN     VARCHAR2,
    x_amount                            IN     NUMBER,
    x_currency_cd                       IN     VARCHAR2,
    x_exchange_rate                     IN     NUMBER,
    x_transaction_date                  IN     DATE,
    x_effective_date                    IN     DATE,
    x_reversal_date                     IN     DATE,
    x_reversal_reason_code              IN     VARCHAR2,
    x_reversal_comments                 IN     VARCHAR2,
    x_unapplied_amount                  IN     NUMBER,
    x_source_transaction_id             IN     NUMBER,
    x_receipt_lockbox_number            IN     VARCHAR2,
    x_merchant_id                       IN     VARCHAR2,
    x_credit_card_code                  IN     VARCHAR2,
    x_credit_card_holder_name           IN     VARCHAR2,
    x_credit_card_number                IN     VARCHAR2,
    x_credit_card_expiration_date       IN     DATE,
    x_credit_card_approval_code         IN     VARCHAR2,
    x_awd_yr_cal_type                   IN     VARCHAR2,
    x_awd_yr_ci_sequence_number         IN     NUMBER,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_attribute16                       IN     VARCHAR2,
    x_attribute17                       IN     VARCHAR2,
    x_attribute18                       IN     VARCHAR2,
    x_attribute19                       IN     VARCHAR2,
    x_attribute20                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2,
    x_gl_date                           IN     DATE    ,
    x_check_number                      IN     VARCHAR2,
    x_source_transaction_type           IN     VARCHAR2,
    x_source_transaction_ref            IN     VARCHAR2,
    x_credit_card_status_code           IN     VARCHAR2,
    x_credit_card_payee_cd              IN     VARCHAR2,
    x_credit_card_tangible_cd           IN     VARCHAR2,
    x_lockbox_interface_id              IN     NUMBER  ,
    x_batch_name                        IN     VARCHAR2,
    x_deposit_date                      IN     DATE,
    x_source_invoice_id                 IN     NUMBER,
    x_tax_year_code                     IN     VARCHAR2,
    x_waiver_name                       IN     VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || uudayapr    8-Aug2005             Enh 3392095 Tution waiver Build
  ||                                   Added the Waiver name column
  ||  pathipat        20-Apr-2004      Enh 3558549 - Comm Rec Enhancements
  ||                                   Added new column source_invoice_id
  ||  vvutukur        16-Jun-2003      Enh#2831582.Lockbox Build. Added 3 new columns lockbox_interface_id,batch_name,deposit_date.
  ||  schodava        11-Jun-2003      Enh# 2831587, Added three new columns
  ||  shtatiko        03-DEC-2002      Enh Bug 2584741, Added three new columns, check_number,
  ||                                   source_transaction_type and source_transaction_ref
  ||  smadathi        01-Nov-2002      Enh Bug 2584986. Added new column GL_DATE
  ||  vvutukur   17-Sep-2002   Enh#2564643.Removed references to subaccount_id column as this has been
  ||                           obsoleted.Also removed DEFAULT clause from procedure parameter list
  ||                           to avoid gscc warnings.
  ||  SMVK           04-Feb-2002       Updated existing procedure for
  ||                                   Four parameters awd_yr_cal_type
  ||                                   awd_yr_ci_sequence_number
  ||                                   fee_cal_type, fee_ci_sequence_number
  ||                                   Enhancement Bug No.2191470
  ||  smadathi        05-oct-2001      Balance Flag reference removed .
  ||                                   Enhancement Bug No. 2030448
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 1630

    x_last_updated_by            NUMBER;
Line: 1631

    x_last_update_login          NUMBER;
Line: 1635

    x_program_update_date        DATE;
Line: 1639

    x_last_update_date := SYSDATE;
Line: 1641

      x_last_updated_by := 1;
Line: 1642

      x_last_update_login := 0;
Line: 1644

      x_last_updated_by := fnd_global.user_id;
Line: 1645

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

      x_last_update_login := fnd_global.login_id;
Line: 1649

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_credit_id                         => x_credit_id,
      x_credit_number                     => x_credit_number,
      x_status                            => x_status,
      x_credit_source                     => x_credit_source,
      x_party_id                          => x_party_id,
      x_credit_type_id                    => x_credit_type_id,
      x_credit_instrument                 => x_credit_instrument,
      x_description                       => x_description,
      x_amount                            => x_amount,
      x_currency_cd                       => x_currency_cd,
      x_exchange_rate                     => x_exchange_rate,
      x_transaction_date                  => x_transaction_date,
      x_effective_date                    => x_effective_date,
      x_reversal_date                     => x_reversal_date,
      x_reversal_reason_code              => x_reversal_reason_code,
      x_reversal_comments                 => x_reversal_comments,
      x_unapplied_amount                  => x_unapplied_amount,
      x_source_transaction_id             => x_source_transaction_id,
      x_receipt_lockbox_number            => x_receipt_lockbox_number,
      x_merchant_id                       => x_merchant_id,
      x_credit_card_code                  => x_credit_card_code,
      x_credit_card_holder_name           => x_credit_card_holder_name,
      x_credit_card_number                => x_credit_card_number,
      x_credit_card_expiration_date       => x_credit_card_expiration_date,
      x_credit_card_approval_code         => x_credit_card_approval_code,
      x_awd_yr_cal_type                   => x_awd_yr_cal_type,
      x_awd_yr_ci_sequence_number         => x_awd_yr_ci_sequence_number,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_attribute16                       => x_attribute16,
      x_attribute17                       => x_attribute17,
      x_attribute18                       => x_attribute18,
      x_attribute19                       => x_attribute19,
      x_attribute20                       => x_attribute20,
      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_gl_date                           => x_gl_date,
      x_check_number                      => x_check_number,
      x_source_transaction_type           => x_source_transaction_type,
      x_source_transaction_ref            => x_source_transaction_ref,
      x_credit_card_status_code           => x_credit_card_status_code,
      x_credit_card_payee_cd              => x_credit_card_payee_cd,
      x_credit_card_tangible_cd           => x_credit_card_tangible_cd,
      x_lockbox_interface_id              => x_lockbox_interface_id,
      x_batch_name                        => x_batch_name,
      x_deposit_date                      => x_deposit_date,
      x_source_invoice_id                 => x_source_invoice_id,
      x_tax_year_code                     => x_tax_year_code,
      x_waiver_name                       => x_waiver_name
      );
Line: 1739

        x_program_update_date := old_references.program_update_date;
Line: 1741

        x_program_update_date := SYSDATE;
Line: 1745

    UPDATE igs_fi_credits_all
      SET
        credit_number                     = new_references.credit_number,
        status                            = new_references.status,
        credit_source                     = new_references.credit_source,
        party_id                          = new_references.party_id,
        credit_type_id                    = new_references.credit_type_id,
        credit_instrument                 = new_references.credit_instrument,
        description                       = new_references.description,
        amount                            = new_references.amount,
        currency_cd                       = new_references.currency_cd,
        exchange_rate                     = new_references.exchange_rate,
        transaction_date                  = new_references.transaction_date,
        effective_date                    = new_references.effective_date,
        reversal_date                     = new_references.reversal_date,
        reversal_reason_code              = new_references.reversal_reason_code,
        reversal_comments                 = new_references.reversal_comments,
        unapplied_amount                  = new_references.unapplied_amount,
        source_transaction_id             = new_references.source_transaction_id,
        receipt_lockbox_number            = new_references.receipt_lockbox_number,
        merchant_id                       = new_references.merchant_id,
        credit_card_code                  = new_references.credit_card_code,
        credit_card_holder_name           = new_references.credit_card_holder_name,
        credit_card_number                = new_references.credit_card_number,
        credit_card_expiration_date       = new_references.credit_card_expiration_date,
        credit_card_approval_code         = new_references.credit_card_approval_code,
        awd_yr_cal_type                   = new_references.awd_yr_cal_type,
        awd_yr_ci_sequence_number         = new_references.awd_yr_ci_sequence_number,
        fee_cal_type                      = new_references.fee_cal_type,
        fee_ci_sequence_number            = new_references.fee_ci_sequence_number,
        attribute_category                = new_references.attribute_category,
        attribute1                        = new_references.attribute1,
        attribute2                        = new_references.attribute2,
        attribute3                        = new_references.attribute3,
        attribute4                        = new_references.attribute4,
        attribute5                        = new_references.attribute5,
        attribute6                        = new_references.attribute6,
        attribute7                        = new_references.attribute7,
        attribute8                        = new_references.attribute8,
        attribute9                        = new_references.attribute9,
        attribute10                       = new_references.attribute10,
        attribute11                       = new_references.attribute11,
        attribute12                       = new_references.attribute12,
        attribute13                       = new_references.attribute13,
        attribute14                       = new_references.attribute14,
        attribute15                       = new_references.attribute15,
        attribute16                       = new_references.attribute16,
        attribute17                       = new_references.attribute17,
        attribute18                       = new_references.attribute18,
        attribute19                       = new_references.attribute19,
        attribute20                       = new_references.attribute20,
        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,
        gl_date                           = x_gl_date,
        check_number                      = x_check_number,
        source_transaction_type           = x_source_transaction_type,
        source_transaction_ref            = x_source_transaction_ref,
        credit_card_status_code           = x_credit_card_status_code,
        credit_card_payee_cd              = x_credit_card_payee_cd,
        credit_card_tangible_cd           = x_credit_card_tangible_cd,
        lockbox_interface_id              = x_lockbox_interface_id,
        batch_name                        = x_batch_name,
        deposit_date                      = x_deposit_date,
        source_invoice_id                 = x_source_invoice_id,
	      tax_year_code                     = x_tax_year_code,
        waiver_name                       = x_waiver_name
      WHERE rowid = x_rowid;
Line: 1822

  END update_row;
Line: 1895

  ||  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
  || uudayapr    8-Aug2005             Enh 3392095 Tution waiver Build
  ||                                   Added the Waiver name column
  ||  svuppala        9-JUN-2005      Enh 4213629 - The automatic generation of the Receipt Number.
  ||                                  Changed x_credit_number parameter  as IN OUT in Add row
  ||  pathipat        20-Apr-2004      Enh 3558549 - Comm Rec Enhancements
  ||                                   Added new column source_invoice_id
  ||  vvutukur        16-Jun-2003      Enh#2831582.Lockbox Build. Added 3 new columns lockbox_interface_id,batch_name,deposit_date.
  ||  schodava        11-Jun-2003      Enh# 2831587, Added three new columns
  ||  shtatiko        03-DEC-2002      Enh Bug 2584741, Added three new columns, check_number,
  ||                                   source_transaction_type and source_transaction_ref
  ||  smadathi        01-Nov-2002      Enh Bug 2584986. Added new column GL_DATE
  ||  vvutukur   17-Sep-2002   Enh#2564643.Removed references to subaccount_id column as this has been
  ||                           obsoleted.Also removed DEFAULT clause from procedure parameter list
  ||                           to avoid gscc warnings.
  ||  SMVK           04-Feb-2002       Updated existing procedure for
  ||                                   Four parameters awd_yr_cal_type
  ||                                   awd_yr_ci_sequence_number
  ||                                   fee_cal_type, fee_ci_sequence_number
  ||                                   Enhancement Bug No.2191470
  ||  smadathi        05-oct-2001      Balance Flag reference removed .
  ||                                   Enhancement Bug No. 2030448
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_fi_credits_all
      WHERE    credit_id                         = x_credit_id;
Line: 1934

      insert_row (
        x_rowid,
        x_credit_id,
        x_credit_number,
        x_status,
        x_credit_source,
        x_party_id,
        x_credit_type_id,
        x_credit_instrument,
        x_description,
        x_amount,
        x_currency_cd,
        x_exchange_rate,
        x_transaction_date,
        x_effective_date,
        x_reversal_date,
        x_reversal_reason_code,
        x_reversal_comments,
        x_unapplied_amount,
        x_source_transaction_id,
        x_receipt_lockbox_number,
        x_merchant_id,
        x_credit_card_code,
        x_credit_card_holder_name,
        x_credit_card_number,
        x_credit_card_expiration_date,
        x_credit_card_approval_code,
        x_awd_yr_cal_type,
        x_awd_yr_ci_sequence_number,
        x_fee_cal_type,
        x_fee_ci_sequence_number,
        x_attribute_category,
        x_attribute1,
        x_attribute2,
        x_attribute3,
        x_attribute4,
        x_attribute5,
        x_attribute6,
        x_attribute7,
        x_attribute8,
        x_attribute9,
        x_attribute10,
        x_attribute11,
        x_attribute12,
        x_attribute13,
        x_attribute14,
        x_attribute15,
        x_attribute16,
        x_attribute17,
        x_attribute18,
        x_attribute19,
        x_attribute20,
        x_mode ,
        x_gl_date,
        x_check_number,
        x_source_transaction_type,
        x_source_transaction_ref,
        x_credit_card_status_code,
        x_credit_card_payee_cd,
        x_credit_card_tangible_cd,
        x_lockbox_interface_id,
        x_batch_name,
        x_deposit_date,
        x_source_invoice_id,
	      x_tax_year_code,
        x_waiver_name
      );
Line: 2005

    update_row (
      x_rowid,
      x_credit_id,
      x_credit_number,
      x_status,
      x_credit_source,
      x_party_id,
      x_credit_type_id,
      x_credit_instrument,
      x_description,
      x_amount,
      x_currency_cd,
      x_exchange_rate,
      x_transaction_date,
      x_effective_date,
      x_reversal_date,
      x_reversal_reason_code,
      x_reversal_comments,
      x_unapplied_amount,
      x_source_transaction_id,
      x_receipt_lockbox_number,
      x_merchant_id,
      x_credit_card_code,
      x_credit_card_holder_name,
      x_credit_card_number,
      x_credit_card_expiration_date,
      x_credit_card_approval_code,
      x_awd_yr_cal_type,
      x_awd_yr_ci_sequence_number,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_attribute16,
      x_attribute17,
      x_attribute18,
      x_attribute19,
      x_attribute20,
      x_mode ,
      x_gl_date,
      x_check_number,
      x_source_transaction_type,
      x_source_transaction_ref,
      x_credit_card_status_code,
      x_credit_card_payee_cd,
      x_credit_card_tangible_cd,
      x_lockbox_interface_id,
      x_batch_name,
      x_deposit_date,
      x_source_invoice_id,
      x_tax_year_code,
      x_waiver_name
    );