DBA Data[Home] [Help]

APPS.IGS_FI_REFUNDS_PKG SQL Statements

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

Line: 16

  ||  agairola        06-JUN-2002     for bug 2392776 - added update_invoice and modified beforerowinsert
  ||  agairola        14-May-2002     Changed the procedure beforerowinsert for bug 2365356
  ||  agairola        14-May-2002     Changed the call to the Charges API for bugs 2372163,2372122
  ||  (reverse chronological order - newest change first)
  */
--   Bug:  2144600
--   What: Created TBH
--   Who:  vchappid
--   When: 25-Feb-2002

  l_rowid VARCHAR2(25);
Line: 31

  PROCEDURE beforerowinsert;
Line: 33

  PROCEDURE update_invoice(p_invoice_id         igs_fi_inv_int.invoice_id%TYPE) AS
    /*
  ||  Created By : Amit.Gairola
  ||  Created On : 06-JUN-2002
  ||  Purpose : Updates the Charge record in case of reversal. Updates the Reversal Flag and the reversal reason
  ||            for bug 2392776
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  ||  skharida    26-Jun-2006     Bug# 5208136 - Removed the obsoleted columns from the table IGS_FI_INV_INT_ALL and IGS_FI_REFUNDS
  ||  smadathi    01-Nov-2002     Enh. Bug 2584986. Modified igs_fi_inv_int_pkg.update_row
  ||                              to add new column REVERSAL_GL_DATE
  ||  vvutukur    18-Sep-2002     Enh#2564643.Removed references to subaccount_id.ie., from the call to
  ||                              igs_fi_inv_int_pkg.update_row.
  */

	CURSOR cur_inv(cp_invoice_id     igs_fi_inv_int.invoice_id%TYPE) IS
	  SELECT inv.*
	  FROM   igs_fi_inv_int inv
	  WHERE  inv.invoice_id = cp_invoice_id;
Line: 58

        igs_fi_inv_int_pkg.update_row (
	              x_rowid                                 => recinv.row_id,
                      x_invoice_id                   	      => recinv.invoice_id,
                      x_person_id                    	      => recinv.person_id,
                      x_fee_type                     	      => recinv.fee_type,
                      x_fee_cat                      	      => recinv.fee_cat,
                      x_fee_cal_type                 	      => recinv.fee_cal_type,
                      x_fee_ci_sequence_number       	      => recinv.fee_ci_sequence_number,
                      x_course_cd                    	      => recinv.course_cd,
                      x_attendance_mode              	      => recinv.attendance_mode,
                      x_attendance_type              	      => recinv.attendance_type,
                      x_invoice_amount_due           	      => recinv.invoice_amount_due,
                      x_invoice_creation_date        	      => recinv.invoice_creation_date,
                      x_invoice_desc                 	      => recinv.invoice_desc,
                      x_transaction_type             	      => recinv.transaction_type,
                      x_currency_cd                  	      => recinv.currency_cd,
                      x_status                       	      => recinv.status,
                      x_attribute_category           	      => recinv.attribute_category,
                      x_attribute1                   	      => recinv.attribute1,
                      x_attribute2                   	      => recinv.attribute2,
                      x_attribute3                   	      => recinv.attribute3,
                      x_attribute4                   	      => recinv.attribute4,
                      x_attribute5                   	      => recinv.attribute5,
                      x_attribute6                   	      => recinv.attribute6,
                      x_attribute7                   	      => recinv.attribute7,
                      x_attribute8                   	      => recinv.attribute8,
                      x_attribute9                   	      => recinv.attribute9,
                      x_attribute10                  	      => recinv.attribute10,
                      x_invoice_amount               	      => recinv.invoice_amount,
                      x_bill_id                      	      => recinv.bill_id,
                      x_bill_number                  	      => recinv.bill_number,
                      x_bill_date                    	      => recinv.bill_date,
                      x_waiver_flag                  	      => 'Y',
                      x_waiver_reason                	      => 'MANUAL_REFUND',
                      x_effective_date               	      => recinv.effective_date,
                      x_invoice_number               	      => recinv.invoice_number,
                      x_exchange_rate                	      => recinv.exchange_rate,
                      x_bill_payment_due_date        	      => recinv.bill_payment_due_date,
                      x_optional_fee_flag                     => recinv.optional_fee_flag,
                      x_mode                         	      => 'R',
		      x_reversal_gl_date                      =>  new_references.gl_date,
                      x_tax_year_code                         =>  recinv.tax_year_code,
		      x_waiver_name                           =>  recinv.waiver_name
                    );
Line: 105

  END update_invoice;
Line: 150

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_gl_date                           IN     DATE    ,
    x_reversal_gl_date                  IN     DATE
  ) AS
  /*******************************
   who          when               what
   smadathi     06-Nov-2002        Enh. Bug 2584986. Added new column GL_DATE,REVERSAL_GL_DATE
   Bug:  2144600
   What: Created TBH
   Who:  vchappid
   When: 25-Feb-2002
   skharida 26-Jun-2006  Bug# 5208136 - Removed the obsoleted columns of the table IGS_FI_REFUNDS
   vvutukur 23-Sep-2002  removed default clause from parameters as gscc fix.
   **********************************/

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     igs_fi_refunds
      WHERE    rowid = x_rowid;
Line: 180

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 240

    new_references.last_updated_by                   := x_last_updated_by;
Line: 241

    new_references.last_update_login                 := x_last_update_login;
Line: 287

      SELECT   rowid
      FROM     hz_parties
      WHERE    party_id = cp_party_id
      FOR UPDATE NOWAIT;
Line: 306

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

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

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

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

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

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

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

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

      SELECT   rowid
      FROM     igs_fi_refunds
      WHERE    refund_id = x_refund_id
      FOR UPDATE NOWAIT;
Line: 477

      SELECT   rowid
      FROM     igs_fi_refunds
      WHERE    person_id = x_person_id
      AND      pay_person_id = x_pay_person_id
      AND      fee_type = x_fee_type
      AND      fee_cal_type = x_fee_cal_type
      AND      fee_ci_sequence_number = x_fee_ci_sequence_number
      AND      ((invoice_id = x_invoice_id) OR (invoice_id IS NULL AND x_invoice_id IS NULL))
      AND      ((reversal_ind = x_reversal_ind) OR (reversal_ind IS NULL AND x_reversal_ind IS NULL))
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 518

      SELECT   rowid
      FROM     igs_fi_refunds
      WHERE   ((source_refund_id = x_refund_id));
Line: 554

      SELECT   rowid
      FROM     igs_fi_refunds
      WHERE   ((invoice_id = x_invoice_id));
Line: 619

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_gl_date                           IN     DATE    ,
    x_reversal_gl_date                  IN     DATE
  ) AS
  /*
  ||  Created By : vchappid
  ||  Created On : 26-FEB-2002
  ||  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)
  ||  skharida  26-Jun-2006   Bug# 5208136 - Removed the obsoleted columns of the table IGS_FI_REFUNDS
  ||   smadathi 06-Nov-2002   Enh. Bug 2584986. Added new column GL_DATE,REVERSAL_GL_DATE
  ||  vvutukur  23-Sep-2002   Enh#2564643.Removed default clause as gscc fix.
  */
  BEGIN
    set_column_values (
      p_action,
      x_rowid,
      x_refund_id,
      x_voucher_date,
      x_person_id,
      x_pay_person_id,
      x_dr_gl_ccid,
      x_cr_gl_ccid,
      x_dr_account_cd,
      x_cr_account_cd,
      x_refund_amount,
      x_fee_type,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_source_refund_id,
      x_invoice_id,
      x_transfer_status,
      x_reversal_ind,
      x_reason,
      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_reversal_gl_date
    );
Line: 689

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

      beforerowinsert;
Line: 702

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

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

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

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

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

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_refund_id                         IN OUT NOCOPY NUMBER,
    x_voucher_date                      IN     DATE,
    x_person_id                         IN     NUMBER,
    x_pay_person_id                     IN     NUMBER,
    x_dr_gl_ccid                        IN     NUMBER,
    x_cr_gl_ccid                        IN     NUMBER,
    x_dr_account_cd                     IN     VARCHAR2,
    x_cr_account_cd                     IN     VARCHAR2,
    x_refund_amount                     IN     NUMBER,
    x_fee_type                          IN     VARCHAR2,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_source_refund_id                  IN     NUMBER,
    x_invoice_id                        IN OUT NOCOPY NUMBER,
    x_transfer_status                   IN     VARCHAR2,
    x_reversal_ind                      IN     VARCHAR2,
    x_reason                            IN     VARCHAR2,
    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_reversal_gl_date                  IN     DATE
  ) AS
  /*
  ||  Created By : vchappid
  ||  Created On : 26-FEB-2002
  ||  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)
  ||  skharida   26-Jun-2006    Bug# 5208136 - Removed the obsoleted columns of the table IGS_FI_REFUNDS
  ||  smadathi   06-Nov-2002    Enh. Bug 2584986. Added new column GL_DATE,REVERSAL_GL_DATE
  ||  vvutukur   23-Sep-2002    Enh#2564643.Removed default clause from parameters as gscc fix.
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_fi_refunds
      WHERE    refund_id                         = x_refund_id;
Line: 790

    x_last_update_date           DATE;
Line: 791

    x_last_updated_by            NUMBER;
Line: 792

    x_last_update_login          NUMBER;
Line: 796

    x_program_update_date        DATE;
Line: 800

    x_last_update_date := SYSDATE;
Line: 802

      x_last_updated_by := 1;
Line: 803

      x_last_update_login := 0;
Line: 805

      x_last_updated_by := fnd_global.user_id;
Line: 806

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

      x_last_update_login := fnd_global.login_id;
Line: 810

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

        x_program_update_date    := NULL;
Line: 823

        x_program_update_date    := SYSDATE;
Line: 831

    SELECT    igs_fi_refunds_s.NEXTVAL
    INTO      x_refund_id
    FROM      dual;
Line: 836

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_refund_id                         => x_refund_id,
      x_voucher_date                      => x_voucher_date,
      x_person_id                         => x_person_id,
      x_pay_person_id                     => x_pay_person_id,
      x_dr_gl_ccid                        => x_dr_gl_ccid,
      x_cr_gl_ccid                        => x_cr_gl_ccid,
      x_dr_account_cd                     => x_dr_account_cd,
      x_cr_account_cd                     => x_cr_account_cd,
      x_refund_amount                     => x_refund_amount,
      x_fee_type                          => x_fee_type,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_source_refund_id                  => x_source_refund_id,
      x_invoice_id                        => x_invoice_id,
      x_transfer_status                   => x_transfer_status,
      x_reversal_ind                      => x_reversal_ind,
      x_reason                            => x_reason,
      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_reversal_gl_date                  => x_reversal_gl_date
    );
Line: 885

    INSERT INTO igs_fi_refunds (
      refund_id,
      voucher_date,
      person_id,
      pay_person_id,
      dr_gl_ccid,
      cr_gl_ccid,
      dr_account_cd,
      cr_account_cd,
      refund_amount,
      fee_type,
      fee_cal_type,
      fee_ci_sequence_number,
      source_refund_id,
      invoice_id,
      transfer_status,
      reversal_ind,
      reason,
      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,
      reversal_gl_date
    ) VALUES (
      new_references.refund_id,
      new_references.voucher_date,
      new_references.person_id,
      new_references.pay_person_id,
      new_references.dr_gl_ccid,
      new_references.cr_gl_ccid,
      new_references.dr_account_cd,
      new_references.cr_account_cd,
      new_references.refund_amount,
      new_references.fee_type,
      new_references.fee_cal_type,
      new_references.fee_ci_sequence_number,
      new_references.source_refund_id,
      new_references.invoice_id,
      new_references.transfer_status,
      new_references.reversal_ind,
      new_references.reason,
      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.reversal_gl_date
    );
Line: 995

  END insert_row;
Line: 1053

      SELECT
        voucher_date,
        person_id,
        pay_person_id,
        dr_gl_ccid,
        cr_gl_ccid,
        dr_account_cd,
        cr_account_cd,
        refund_amount,
        fee_type,
        fee_cal_type,
        fee_ci_sequence_number,
        source_refund_id,
        invoice_id,
        transfer_status,
        reversal_ind,
        reason,
        attribute_category,
        attribute1,
        attribute2,
        attribute3,
        attribute4,
        attribute5,
        attribute6,
        attribute7,
        attribute8,
        attribute9,
        attribute10,
        attribute11,
        attribute12,
        attribute13,
        attribute14,
        attribute15,
        attribute16,
        attribute17,
        attribute18,
        attribute19,
        attribute20,
	gl_date,
	reversal_gl_date
      FROM  igs_fi_refunds
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 1104

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_refund_id                         IN     NUMBER,
    x_voucher_date                      IN     DATE,
    x_person_id                         IN     NUMBER,
    x_pay_person_id                     IN     NUMBER,
    x_dr_gl_ccid                        IN     NUMBER,
    x_cr_gl_ccid                        IN     NUMBER,
    x_dr_account_cd                     IN     VARCHAR2,
    x_cr_account_cd                     IN     VARCHAR2,
    x_refund_amount                     IN     NUMBER,
    x_fee_type                          IN     VARCHAR2,
    x_fee_cal_type                      IN     VARCHAR2,
    x_fee_ci_sequence_number            IN     NUMBER,
    x_source_refund_id                  IN     NUMBER,
    x_invoice_id                        IN     NUMBER,
    x_transfer_status                   IN     VARCHAR2,
    x_reversal_ind                      IN     VARCHAR2,
    x_reason                            IN     VARCHAR2,
    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_reversal_gl_date                  IN     DATE
  ) AS
  /*
  ||  Created By :
  ||  Created On : 26-FEB-2002
  ||  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)
  ||  skharida   26-Jun-2006    Bug# 5208136 - Removed the obsoleted columns of the table IGS_FI_REFUNDS
  ||  smadathi   06-Nov-2002    Enh. Bug 2584986. Added new column GL_DATE,REVERSAL_GL_DATE
  ||  vvutukur   23-Sep-2002   Enh#2564643.Removed DEFAULT clause from parameters as gscc fix.
  */
    x_last_update_date           DATE ;
Line: 1222

    x_last_updated_by            NUMBER;
Line: 1223

    x_last_update_login          NUMBER;
Line: 1227

    x_program_update_date        DATE;
Line: 1231

    x_last_update_date := SYSDATE;
Line: 1233

      x_last_updated_by := 1;
Line: 1234

      x_last_update_login := 0;
Line: 1236

      x_last_updated_by := fnd_global.user_id;
Line: 1237

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

      x_last_update_login := fnd_global.login_id;
Line: 1241

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_refund_id                         => x_refund_id,
      x_voucher_date                      => x_voucher_date,
      x_person_id                         => x_person_id,
      x_pay_person_id                     => x_pay_person_id,
      x_dr_gl_ccid                        => x_dr_gl_ccid,
      x_cr_gl_ccid                        => x_cr_gl_ccid,
      x_dr_account_cd                     => x_dr_account_cd,
      x_cr_account_cd                     => x_cr_account_cd,
      x_refund_amount                     => x_refund_amount,
      x_fee_type                          => x_fee_type,
      x_fee_cal_type                      => x_fee_cal_type,
      x_fee_ci_sequence_number            => x_fee_ci_sequence_number,
      x_source_refund_id                  => x_source_refund_id,
      x_invoice_id                        => x_invoice_id,
      x_transfer_status                   => x_transfer_status,
      x_reversal_ind                      => x_reversal_ind,
      x_reason                            => x_reason,
      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_reversal_gl_date                  => x_reversal_gl_date
    );
Line: 1308

        x_program_update_date := old_references.program_update_date;
Line: 1310

        x_program_update_date := SYSDATE;
Line: 1314

    UPDATE igs_fi_refunds
      SET
        voucher_date                      = new_references.voucher_date,
        person_id                         = new_references.person_id,
        pay_person_id                     = new_references.pay_person_id,
        dr_gl_ccid                        = new_references.dr_gl_ccid,
        cr_gl_ccid                        = new_references.cr_gl_ccid,
        dr_account_cd                     = new_references.dr_account_cd,
        cr_account_cd                     = new_references.cr_account_cd,
        refund_amount                     = new_references.refund_amount,
        fee_type                          = new_references.fee_type,
        fee_cal_type                      = new_references.fee_cal_type,
        fee_ci_sequence_number            = new_references.fee_ci_sequence_number,
        source_refund_id                  = new_references.source_refund_id,
        invoice_id                        = new_references.invoice_id,
        transfer_status                   = new_references.transfer_status,
        reversal_ind                      = new_references.reversal_ind,
        reason                            = new_references.reason,
        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                           = new_references.gl_date,
	reversal_gl_date                  = new_references.reversal_gl_date
      WHERE rowid = x_rowid;
Line: 1368

  END update_row;
Line: 1418

  ||  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)
  ||  skharida   26-Jun-2006    Bug# 5208136 - Removed the obsoleted columns of the table IGS_FI_REFUNDS
  ||  smadathi   06-Nov-2002    Enh. Bug 2584986. Added new column GL_DATE,REVERSAL_GL_DATE
  ||  vvutukur   23-Sep-2002   Enh#2564643.Removed DEFAULT clause from parameters as gscc fix.
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_fi_refunds
      WHERE    refund_id                         = x_refund_id;
Line: 1439

      insert_row (
        x_rowid,
        x_refund_id,
        x_voucher_date,
        x_person_id,
        x_pay_person_id,
        x_dr_gl_ccid,
        x_cr_gl_ccid,
        x_dr_account_cd,
        x_cr_account_cd,
        x_refund_amount,
        x_fee_type,
        x_fee_cal_type,
        x_fee_ci_sequence_number,
        x_source_refund_id,
        x_invoice_id,
        x_transfer_status,
        x_reversal_ind,
        x_reason,
        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_reversal_gl_date
      );
Line: 1487

    update_row (
      x_rowid,
      x_refund_id,
      x_voucher_date,
      x_person_id,
      x_pay_person_id,
      x_dr_gl_ccid,
      x_cr_gl_ccid,
      x_dr_account_cd,
      x_cr_account_cd,
      x_refund_amount,
      x_fee_type,
      x_fee_cal_type,
      x_fee_ci_sequence_number,
      x_source_refund_id,
      x_invoice_id,
      x_transfer_status,
      x_reversal_ind,
      x_reason,
      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_reversal_gl_date
    );
Line: 1535

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : vchappid
  ||  Created On : 26-FEB-2002
  ||  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: 1554

    DELETE FROM igs_fi_refunds
    WHERE rowid = x_rowid;
Line: 1561

  END delete_row;
Line: 1563

PROCEDURE beforerowinsert
AS
  /*
  ||  Created By : vchappid
  ||  Created On : 26-FEB-2002
  ||  Purpose : Before a record is created in the igs_fi_refunds table, a charge record has to be created
  ||            call to charges api is made.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  || svuppala        04-AUG-2005    Enh 3392095 - Tution Waivers build
  ||                                Impact of Charges API version Number change
  ||                                Modified igs_fi_charges_api_pvt.create_charge - version 2.0 and x_waiver_amount
  ||  vvutukur        24-Dec-2002   Bug#2713315.Used FND_MESSAGE.SET_ENCODED to encode the token value, if charges api
  ||                                returned some error message.
  ||  smadathi        06-Nov-2002   Enh. Bug 2584986. Modified charges API call to Add new parameter GL_DATE
  ||                                Cursor CUR_CURRENCY  declaration and its usage removed and replaced by
  ||                                call to igs_fi_gen_gl.finp_get_cur
  ||  vvutukur        18-Sep-2002   Enh#2564643.Removed references to subaccount_id from cur_subaccount
  ||                                cursor,p_header_rec record type parameter of call to charges api.
  ||                                Renamed the cursor cur_subaccount to cur_ft_desc as this cursor
  ||                                no longer refers to subaccount_id.Modified at its usage also.
  ||  agairola        06-Jun-2002     for bug 2392776 - added the call to the Updateinvoice procedure
  ||  agairola        14-May-2002     For bug 2365356, if the Invoice Id is null, then copy the new_references.invoiceid
  ||  agairola        14-May-2002     Following modifications were done for the bugs 2372163,2372122
  ||                                  1. Modified the cursor cur_subaccount to fetch the Fee Type Description
  ||                                  2. The Fee Type description is passed to Charges API
  ||                                  3. The Effective Date is passed as the Voucher Date
  ||  (reverse chronological order - newest change first)
  */
  -- Variables added for the Charges API call
    l_header_rec                       igs_fi_charges_api_pvt.header_rec_type;
Line: 1608

      SELECT description
      FROM   igs_fi_fee_type
      WHERE  fee_type = cp_fee_type;
Line: 1616

    SELECT s_chg_method_type,
           rec_gl_ccid,
           rec_account_cd
    FROM  igs_fi_f_typ_ca_inst
    WHERE fee_type = cp_fee_type
    AND   fee_cal_type = cp_fee_cal_type
    AND   fee_ci_sequence_number = cp_fee_ci_sequence_number;
Line: 1767

	   -- Update the Invoice Record by calling the Update Invoice procedure
	   update_invoice(new_references.invoice_id);
Line: 1770

END beforerowinsert;