|
|
|
@ -240,6 +240,7 @@ |
|
|
|
q.quote_no, |
|
|
|
q.site, |
|
|
|
q.bu_no, |
|
|
|
dbo.plm_get_bu_desc(q.site, ppp.bu_no) as buDesc, |
|
|
|
q.version_no, |
|
|
|
q.quote_date, |
|
|
|
q.quote_version_no, |
|
|
|
@ -284,7 +285,8 @@ |
|
|
|
q.quote_version_no) as approvalUsername, |
|
|
|
gd.plm_part_no as plmPartNo, |
|
|
|
gd.ifs_part_no as ifsPartNo, |
|
|
|
gd.part_desc as partDesc |
|
|
|
gd.part_desc as partDesc, |
|
|
|
qq.create_by as inquiryCreateBy |
|
|
|
from plm_quote q |
|
|
|
left join plm_customer_information c on q.customer_no = c.customer_no |
|
|
|
left join plm_project_info p on q.project_no = p.project_id and q.site = p.site |
|
|
|
@ -295,6 +297,7 @@ |
|
|
|
left join sys_dict_data sdd_final on sdd_final.dict_type = 'finalCustomer' |
|
|
|
and sdd_final.dict_value = p.final_customer_id and sdd_final.site = q.site |
|
|
|
left join plm_request_header prh on q.site = prh.site and prh.menu_id = '5011' |
|
|
|
left join plm_quotation_information qq on q.site = qq.site and q.inside_inquiry_no = qq.quotation_no |
|
|
|
left join plm_request_node prn on q.site = prn.site and prh.classification_no = prn.classification_no |
|
|
|
and prh.workflow_id = prn.workflow_id and q.step_id = prn.step_id |
|
|
|
outer apply ( |
|
|
|
@ -303,6 +306,8 @@ |
|
|
|
left join part pp on qd.part_no = pp.part_no and qd.site = pp.site |
|
|
|
where qd.quote_id = q.id |
|
|
|
) gd |
|
|
|
left join plm_project_part ppp on ppp.site = q.site and ppp.project_id = p.project_id |
|
|
|
and ppp.test_part_no = gd.plm_part_no |
|
|
|
<where> |
|
|
|
<include refid="quotePageWhereConditions"/> |
|
|
|
</where> |
|
|
|
|