|
|
@ -82,7 +82,7 @@ namespace ICSSoft.FromERP |
|
|
|
a.cEngineerFigNo ItemDrawingNo, |
|
|
|
'' ItemDesc, |
|
|
|
dbo.GetReplaceStr(isnull(cInvAddCode,'')+'|'+isnull(cInvStd,'')) AS ItemStd, |
|
|
|
|
|
|
|
a.cInvAddCode INVPARSETYPE, |
|
|
|
c.cComUnitName AS ItemUnit, |
|
|
|
a.cInvCCode ItemMainCategoryCode, |
|
|
|
b.cInvCName ClassName, |
|
|
@ -94,7 +94,7 @@ namespace ICSSoft.FromERP |
|
|
|
|
|
|
|
INTO #TempINV |
|
|
|
FROM {1}.dbo.Inventory a with(nolock) |
|
|
|
LEFT JOIN {1}.dbo.InventoryClass b with(nolock) ON a.cInvCCode = b.cInvCCode |
|
|
|
LEFT JOIN {1}.dbo.InventoryClass b with(nolock) ON a.cInvCCode = b.cInvCCode |
|
|
|
LEFT JOIN {1}.dbo.ComputationUnit c with(nolock) ON a.cComUnitCode = c.cComunitCode |
|
|
|
WHERE a.dEDate IS NULL AND a.dModifyDate>=@LastTime |
|
|
|
ORDER BY cInvCode |
|
|
|