[Home] [Help]
43: * validations for receipt information
44: * in 'VALIDATE_SUPP_SAMPLE' procedure
45: *
46: * 20-MAY-2005 Susan Feinstein Bug 4165704 Inventory Convergence
47: * 18-OCT-2005 Susan Feinstein Bug 4640143 Added material detail id to gmd_wip_spec_vrs table
48: * 05-JAN-2006 Joe DiIorio Bug#4691545 Removed profile reference to
49: * NVL(fnd_profile.value('QC$EXACTSPECMATCH'),'N');
50: * and replaced with call to gmd_quality_config.
51: * Added FUNCTION GET_CONF_MATCH_VALUE as
104: --Query rewritten as part of bug# 4916871
105: select s.sample_inv_trans_ind INTO l_sample_inv_trans_ind
106: FROM (select spec_vr_id, sample_inv_trans_ind from gmd_inventory_spec_vrs
107: union all
108: select spec_vr_id, sample_inv_trans_ind from gmd_wip_spec_vrs
109: union all
110: select spec_vr_id, sample_inv_trans_ind from gmd_customer_spec_vrs
111: union all
112: select spec_vr_id, sample_inv_trans_ind from gmd_supplier_spec_vrs
125: FROM gmd_customer_spec_vrs
126: WHERE spec_vr_id = p_spec_vr_id ;
127: ELSIF p_spec_type = 'W' THEN
128: SELECT SAMPLE_INV_TRANS_IND INTO l_sample_inv_trans_ind
129: FROM gmd_wip_spec_vrs
130: WHERE spec_vr_id = p_spec_vr_id ;
131: ELSIF p_spec_type = 'S' THEN
132: SELECT SAMPLE_INV_TRANS_IND INTO l_sample_inv_trans_ind
133: FROM gmd_supplier_spec_vrs
222: SELECT b.sample_cnt_req
223: FROM
224: (select spec_vr_id, sampling_plan_id from gmd_inventory_spec_vrs
225: union all
226: select spec_vr_id, sampling_plan_id from gmd_wip_spec_vrs
227: union all
228: select spec_vr_id, sampling_plan_id from gmd_customer_spec_vrs
229: union all
230: select spec_vr_id, sampling_plan_id from gmd_supplier_spec_vrs
263: SELECT LOT_OPTIONAL_ON_SAMPLE
264: FROM
265: (select spec_vr_id, LOT_OPTIONAL_ON_SAMPLE from gmd_inventory_spec_vrs
266: union all
267: select spec_vr_id, LOT_OPTIONAL_ON_SAMPLE from gmd_wip_spec_vrs
268: union all
269: select spec_vr_id, LOT_OPTIONAL_ON_SAMPLE from gmd_customer_spec_vrs
270: union all
271: select spec_vr_id, LOT_OPTIONAL_ON_SAMPLE from gmd_supplier_spec_vrs