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