46: -- Get the Country Code
47: ------------------------
48: --fnd_profile.get('ORG_ID',l_ou_id);
49:
50: l_ou_id := MO_GLOBAL.get_current_org_id; --bug 8501685
51:
52: --Bug 10079561 Start
53: JL_ZZ_AP_EXT_AWT_UTIL.Debug('Current org_id ' || l_ou_id);
54:
52: --Bug 10079561 Start
53: JL_ZZ_AP_EXT_AWT_UTIL.Debug('Current org_id ' || l_ou_id);
54:
55: IF l_ou_id IS NULL THEN
56: JL_ZZ_AP_EXT_AWT_UTIL.Debug('MO_GLOBAL.get_current_org_id returned null, hence this is a PPR process ' ||
57: 'and not quick payment');
58: Begin
59: -- For Argentian PPR process should be run for one org only
60: -- since the recommended setup is 1 (LE) - 1 (OU) - 1 (SOB/Ledger).
68: AND checkrun_id = P_Checkrun_id;
69:
70: -- One distinct org is found, hence setting the policy context for the org and then fetching the country code
71: JL_ZZ_AP_EXT_AWT_UTIL.Debug('Org id :' || l_ou_id );
72: mo_global.set_policy_context('S', l_ou_id);
73:
74: Exception
75: When others then
76: -- Either multiple orgs are fetched or some other exception is encountered.
168: -- Get the Country Code
169: ------------------------
170: --fnd_profile.get('ORG_ID',l_ou_id);
171:
172: l_ou_id := MO_GLOBAL.get_current_org_id; --bug 8501685
173:
174: l_country_code := jg_zz_shared_pkg.get_country(l_ou_id, NULL);
175:
176: -------------------------------------------------
244: -- Get the Country Code
245: ------------------------
246: --fnd_profile.get('ORG_ID',l_ou_id);
247:
248: l_ou_id := MO_GLOBAL.get_current_org_id; --bug 8501685
249:
250: l_country_code := jg_zz_shared_pkg.get_country(l_ou_id, NULL);
251:
252: -------------------------------------------------
311: -- Get the Country Code
312: ------------------------
313: --fnd_profile.get('ORG_ID',l_ou_id);
314:
315: l_ou_id := MO_GLOBAL.get_current_org_id; --bug 8501685
316:
317: l_country_code := jg_zz_shared_pkg.get_country(l_ou_id, NULL);
318:
319: ------------------------------------------------
374: -- Get the Country Code
375: ------------------------
376: --fnd_profile.get('ORG_ID',l_ou_id);
377:
378: l_ou_id := MO_GLOBAL.get_current_org_id; --bug 8501685
379:
380: l_country_code := jg_zz_shared_pkg.get_country(l_ou_id, NULL);
381:
382: -------------------------------------------------
537: -- Get the Country Code
538: ------------------------
539: --fnd_profile.get('ORG_ID',l_ou_id);
540:
541: l_ou_id := MO_GLOBAL.get_current_org_id; --bug 8501685
542:
543: l_country_code := jg_zz_shared_pkg.get_country(l_ou_id, NULL);
544:
545: ------------------------------------------------