444:
445: -- Defaulting the terms id
446: IF g_cpa_csr.terms_id IS NULL THEN
447: if l_vs_terms_id is not null then
448: po_terms_sv.val_ap_terms(
449: X_temp_terms_id => l_vs_terms_id,
450: X_res_terms_id => g_cpa_csr.terms_id
451: );
452: end if;
451: );
452: end if;
453: IF g_cpa_csr.terms_id IS NULL THEN
454: if l_terms_id is not null then
455: po_terms_sv.val_ap_terms(
456: X_temp_terms_id => l_terms_id,
457: X_res_terms_id => g_cpa_csr.terms_id
458: );
459: end if;