[Home] [Help]
352: --If the user has provided a value for p_invoice_id parameter...
353: IF (p_credit_rec.p_invoice_id IS NOT NULL) AND (l_v_credit_class = 'CHGADJ') THEN
354: --Check if the accounting method setup in the System Options Form is ACCRUAL.
355: --If accounting method is CASH, no changes are necessary for the accounting information derived earlier.
356: l_v_acct_mthd := igs_fi_gen_005.finp_get_acct_meth;
357: --If the accounting method is ACCRUAL...
358: IF l_v_acct_mthd = 'ACCRUAL' THEN
359: OPEN cur_override_dr(p_credit_rec.p_invoice_id);
360: FETCH cur_override_dr INTO l_rec_cur_override_dr;
359: OPEN cur_override_dr(p_credit_rec.p_invoice_id);
360: FETCH cur_override_dr INTO l_rec_cur_override_dr;
361: IF cur_override_dr%FOUND THEN
362: --Override the debit account with the revenue account checking if the receivables is installed or not.
363: IF igs_fi_gen_005.finp_get_receivables_inst = 'Y' THEN
364: l_n_dr_gl_ccid := l_rec_cur_override_dr.rev_gl_ccid;
365: l_v_dr_account_cd := NULL;
366: ELSE
367: l_n_dr_gl_ccid := NULL;