233: -- use sysdate as transaction date
234: l_transaction_date := sysdate;
235: else
236: -- if transaction date is in a closed period then adjust
237: l_period_name := ap_utilities_pkg.get_current_gl_date(l_transaction_date);
238: if (l_period_name is null) then
239: -- get next open/future period
240: ap_utilities_pkg.get_open_gl_date(l_transaction_date, l_period_name, l_gl_date);
241: l_transaction_date := l_gl_date;
236: -- if transaction date is in a closed period then adjust
237: l_period_name := ap_utilities_pkg.get_current_gl_date(l_transaction_date);
238: if (l_period_name is null) then
239: -- get next open/future period
240: ap_utilities_pkg.get_open_gl_date(l_transaction_date, l_period_name, l_gl_date);
241: l_transaction_date := l_gl_date;
242: end if;
243: end if;
244: