655: then
656: l_dummy := 0;
657: end;
658:
659: /* Added if condition for bug 5924290. If released then no need to call PA_UTILS_SQNUM_PKG.get_unique_invoice_num
660: to increment the auto number. */
661: IF l_dummy = 0 THEN
662: PA_UTILS_SQNUM_PKG.get_unique_invoice_num(l_invoice_category,
663: P_User_ID ,l_RA_Invoice_Num , l_status);
658:
659: /* Added if condition for bug 5924290. If released then no need to call PA_UTILS_SQNUM_PKG.get_unique_invoice_num
660: to increment the auto number. */
661: IF l_dummy = 0 THEN
662: PA_UTILS_SQNUM_PKG.get_unique_invoice_num(l_invoice_category,
663: P_User_ID ,l_RA_Invoice_Num , l_status);
664: END IF;
665: ELSE
666: /* RA Inv Number is entered (Mannual Method). Check Unique */