126:
127: --3028505, added code below to check if the transaction date is in an open period
128: --if not, then increment it to an open period.
129:
130: l_period_name := ap_utilities_pkg.get_current_gl_date(l_transaction_date);
131:
132: if l_period_name is null then
133: ap_utilities_pkg.get_only_open_gl_date(l_transaction_date,
134: l_period_name,
129:
130: l_period_name := ap_utilities_pkg.get_current_gl_date(l_transaction_date);
131:
132: if l_period_name is null then
133: ap_utilities_pkg.get_only_open_gl_date(l_transaction_date,
134: l_period_name,
135: l_open_date);
136:
137: if l_open_date is not null then