880:
881: -- ASO_ORDER_TYPE_ID is an Oracle Order Capture profile to set the default Order type.
882: -- iStore uses this profile to get the default Order type and then assigns this Order type to the Orders
883: -- l_default_order_type_id := fnd_profile.value('ASO_ORDER_TYPE_ID');
884: -- l_default_order_type_id := aso_utility_pvt.get_ou_attribute_value(aso_utility_pvt.G_DEFAULT_ORDER_TYPE,l_inv_org_id); -- CDUBEY - For MOAC Bug 4421236
885:
886: l_default_order_type_id := aso_utility_pvt.get_ou_attribute_value(aso_utility_pvt.G_DEFAULT_ORDER_TYPE,l_org_id); -- Changed to l_org_id for bug 10081463
887:
888: /* -- SECHAWLA 05-OCT-04 3924244 : Migrated remarketing profiles to setups
882: -- iStore uses this profile to get the default Order type and then assigns this Order type to the Orders
883: -- l_default_order_type_id := fnd_profile.value('ASO_ORDER_TYPE_ID');
884: -- l_default_order_type_id := aso_utility_pvt.get_ou_attribute_value(aso_utility_pvt.G_DEFAULT_ORDER_TYPE,l_inv_org_id); -- CDUBEY - For MOAC Bug 4421236
885:
886: l_default_order_type_id := aso_utility_pvt.get_ou_attribute_value(aso_utility_pvt.G_DEFAULT_ORDER_TYPE,l_org_id); -- Changed to l_org_id for bug 10081463
887:
888: /* -- SECHAWLA 05-OCT-04 3924244 : Migrated remarketing profiles to setups
889: -- validate organization
890: IF l_inv_org_id IS NULL THEN