|
|
@ -71,7 +71,7 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID) |
|
|
|
|
|
|
|
|
<select id="getSOSBOMForIssure" resultType="SOIssueNotifyOrderMaterialListData"> |
|
|
<select id="getSOSBOMForIssure" resultType="SOIssueNotifyOrderMaterialListData"> |
|
|
select a.site,b.ItemNo,a.item_no_mat as BOMItemNo,a.component_partno as ComponentPartNo, |
|
|
select a.site,b.ItemNo,a.item_no_mat as BOMItemNo,a.component_partno as ComponentPartNo, |
|
|
round(a.qty_required,2) qty_required , round(a.qty_issue,2) qty_issue,c.QtyToIssue,#{notifyNo} as notifyNo |
|
|
|
|
|
|
|
|
round(a.qty_assembly*b.IssureQty,2) qty_required , round(a.qty_issue,2) qty_issue,c.QtyToIssue,#{notifyNo} as notifyNo |
|
|
,dbo.Get_PartDesc(a.site,a.component_partno) partDesc,dbo.get_MaterialOnUse(a.site,a.order_no,a.item_no,a.component_partno) qtyOnHand |
|
|
,dbo.Get_PartDesc(a.site,a.component_partno) partDesc,dbo.get_MaterialOnUse(a.site,a.order_no,a.item_no,a.component_partno) qtyOnHand |
|
|
from so_bom a |
|
|
from so_bom a |
|
|
left join SOIssueNotifyOrderList b on a.site=b.site and b.NotifyNo=#{notifyNo} and b.seqNo=#{seqno} |
|
|
left join SOIssueNotifyOrderList b on a.site=b.site and b.NotifyNo=#{notifyNo} and b.seqNo=#{seqno} |
|
|
|