use the pounds from pool in case of fake parts

This commit is contained in:
Paul Trowbridge 2024-05-14 09:06:24 -04:00
parent 8fc5d0e689
commit b7309bb3f3

View File

@ -92,7 +92,7 @@ SELECT
null::text, null::text,
null::text, null::text,
null::text, null::text,
null::numeric, CASE WHEN COALESCE(units,0) <> 0 THEN ROUND(pounds/units,5) ELSE null::numeric END, --use pounds from pool by default to accomodate fake parts
null::numeric, null::numeric,
------------fiscal info----------------------- ------------fiscal info-----------------------
null::text, null::text,
@ -154,7 +154,7 @@ SET
,clss = m.clss ,clss = m.clss
,brand = m.brand ,brand = m.brand
,assc = m.assc ,assc = m.assc
,lbs = CASE m.nwun WHEN 'KG' THEN 2.2046 ELSE 1 END*m.nwht ,lbs = COALESCE(CASE m.nwun WHEN 'KG' THEN 2.2046 ELSE 1 END*m.nwht,lbs) --if there is not item master, use the pounds that were in there
,unti = m.unti ,unti = m.unti
FROM FROM
"CMS.CUSLG".itemm m "CMS.CUSLG".itemm m