144: end if;
145:
146: -- get the current info for the primary book
147:
148: fnd_profile.get ('GL_SET_OF_BKS_ID',l_orig_set_of_books_id);
149: l_orig_currency_context := SUBSTRB(USERENV('CLIENT_INFO'),45,10);
150:
151: fnd_profile.put('GL_SET_OF_BKS_ID', px_asset_hdr_rec.set_of_books_id);
152: fnd_client_info.set_currency_context (px_asset_hdr_rec.set_of_books_id);
147:
148: fnd_profile.get ('GL_SET_OF_BKS_ID',l_orig_set_of_books_id);
149: l_orig_currency_context := SUBSTRB(USERENV('CLIENT_INFO'),45,10);
150:
151: fnd_profile.put('GL_SET_OF_BKS_ID', px_asset_hdr_rec.set_of_books_id);
152: fnd_client_info.set_currency_context (px_asset_hdr_rec.set_of_books_id);
153:
154: -- Account for transaction submitted from a responsibility
155: -- that is not tied to a SOB_ID by getting the value from
430: l_trans_rec.source_transaction_header_id := px_trans_rec.transaction_header_id;
431: l_trans_rec.transaction_header_id := null;
432:
433: -- set the gl sob info for the primary tax book
434: fnd_profile.put('GL_SET_OF_BKS_ID', l_asset_hdr_rec.set_of_books_id);
435: fnd_client_info.set_currency_context (l_asset_hdr_rec.set_of_books_id);
436:
437: -- SLA: we need the thid or each tax book as well
438: -- note that we do it here rather than do_all
476:
477: when adj_err then
478: ROLLBACK TO do_adjustment;
479:
480: fnd_profile.put('GL_SET_OF_BKS_ID', l_orig_set_of_books_id);
481: fnd_client_info.set_currency_context (l_orig_currency_context);
482:
483: fa_srvr_msg.add_message(calling_fn => l_calling_fn
484: ,p_log_level_rec => g_log_level_rec);
497:
498: when others then
499: ROLLBACK TO do_adjustment;
500:
501: fnd_profile.put('GL_SET_OF_BKS_ID', l_orig_set_of_books_id);
502: fnd_client_info.set_currency_context (l_orig_currency_context);
503:
504: fa_srvr_msg.add_sql_error(
505: calling_fn => l_calling_fn
786: l_reporting_flag := 'R';
787: l_asset_hdr_rec.set_of_books_id := l_sob_tbl(l_sob_index);
788:
789: -- set the sob_id and currency context
790: fnd_profile.put('GL_SET_OF_BKS_ID', l_sob_tbl(l_sob_index));
791: fnd_client_info.set_currency_context (to_char(l_sob_tbl(l_sob_index)));
792:
793: end if;
794:
2161: -- End of Depreciation Override
2162:
2163:
2164: -- reset the gl sob info back to the primary book so fazcbc cache is ok
2165: fnd_profile.put('GL_SET_OF_BKS_ID', px_asset_hdr_rec.set_of_books_id);
2166: fnd_client_info.set_currency_context (px_asset_hdr_rec.set_of_books_id);
2167:
2168: return true;
2169: