1648: -- lp_chrv_rec.sign_by_date := lp_chrv_rec.end_date;
1649: lp_chrv_rec.sign_by_date := NULL;
1650: lp_chrv_rec.currency_code := p_secAgreement_rec.CURRENCY_CODE;
1651:
1652: -- set the OKL context from profiles
1653: OKL_CONTEXT.set_okc_org_context(p_org_id => mo_global.get_current_org_id); --MOAC
1654: lp_chrv_rec.authoring_org_id := OKL_CONTEXT.GET_OKC_ORG_ID;
1655: lp_chrv_rec.inv_organization_id := OKL_CONTEXT.get_okc_organization_id;
1656: -- lp_chrv_rec.inv_organization_id := 204;
1649: lp_chrv_rec.sign_by_date := NULL;
1650: lp_chrv_rec.currency_code := p_secAgreement_rec.CURRENCY_CODE;
1651:
1652: -- set the OKL context from profiles
1653: OKL_CONTEXT.set_okc_org_context(p_org_id => mo_global.get_current_org_id); --MOAC
1654: lp_chrv_rec.authoring_org_id := OKL_CONTEXT.GET_OKC_ORG_ID;
1655: lp_chrv_rec.inv_organization_id := OKL_CONTEXT.get_okc_organization_id;
1656: -- lp_chrv_rec.inv_organization_id := 204;
1657: -- lp_chrv_rec.currency_code := OKC_CURRENCY_API.GET_OU_CURRENCY(OKL_CONTEXT.GET_OKC_ORG_ID);
1650: lp_chrv_rec.currency_code := p_secAgreement_rec.CURRENCY_CODE;
1651:
1652: -- set the OKL context from profiles
1653: OKL_CONTEXT.set_okc_org_context(p_org_id => mo_global.get_current_org_id); --MOAC
1654: lp_chrv_rec.authoring_org_id := OKL_CONTEXT.GET_OKC_ORG_ID;
1655: lp_chrv_rec.inv_organization_id := OKL_CONTEXT.get_okc_organization_id;
1656: -- lp_chrv_rec.inv_organization_id := 204;
1657: -- lp_chrv_rec.currency_code := OKC_CURRENCY_API.GET_OU_CURRENCY(OKL_CONTEXT.GET_OKC_ORG_ID);
1658: lp_chrv_rec.currency_code_renewed := NULL;
1651:
1652: -- set the OKL context from profiles
1653: OKL_CONTEXT.set_okc_org_context(p_org_id => mo_global.get_current_org_id); --MOAC
1654: lp_chrv_rec.authoring_org_id := OKL_CONTEXT.GET_OKC_ORG_ID;
1655: lp_chrv_rec.inv_organization_id := OKL_CONTEXT.get_okc_organization_id;
1656: -- lp_chrv_rec.inv_organization_id := 204;
1657: -- lp_chrv_rec.currency_code := OKC_CURRENCY_API.GET_OU_CURRENCY(OKL_CONTEXT.GET_OKC_ORG_ID);
1658: lp_chrv_rec.currency_code_renewed := NULL;
1659: lp_chrv_rec.template_yn := 'N';
1653: OKL_CONTEXT.set_okc_org_context(p_org_id => mo_global.get_current_org_id); --MOAC
1654: lp_chrv_rec.authoring_org_id := OKL_CONTEXT.GET_OKC_ORG_ID;
1655: lp_chrv_rec.inv_organization_id := OKL_CONTEXT.get_okc_organization_id;
1656: -- lp_chrv_rec.inv_organization_id := 204;
1657: -- lp_chrv_rec.currency_code := OKC_CURRENCY_API.GET_OU_CURRENCY(OKL_CONTEXT.GET_OKC_ORG_ID);
1658: lp_chrv_rec.currency_code_renewed := NULL;
1659: lp_chrv_rec.template_yn := 'N';
1660: lp_chrv_rec.chr_type := 'CYA';
1661: lp_chrv_rec.archived_yn := 'N';