|
@@ -36,7 +36,7 @@ $@"select
|
|
|
p.Perimeter as [{nameof(AnodizePerimeter)}],
|
|
|
p.[PerimeterBoundaryBox] as [{nameof(PaintPerimeter)}],
|
|
|
p.[Amount] as [{nameof(Quantity)}],
|
|
|
- case p.[ArticleType] when 2 then 'Profiles' when 5 then 'Gasket' when 8 then 'Components' when 30 then 'Fills' else '???' end as [{nameof(Group)}],
|
|
|
+ case p.[ArticleType] when 1 then 'Profiles' when 2 then 'Profiles' when 5 then 'Gasket' when 7 then 'Gasket' when 8 then 'Components' when 16 then 'Components' when 18 then 'Components' when 30 then 'Fills' else '???' end as [{nameof(Group)}],
|
|
|
p.[Price] as [{nameof(Cost)}],
|
|
|
(p.[PriceGross]-p.[PriceCoating]) as [{nameof(MillCost)}],
|
|
|
coalesce(s.[CustomerNo],s.[ActiveTitle]) as [{nameof(Supplier)}]
|
|
@@ -58,7 +58,7 @@ $@"select
|
|
|
sum(p.[Amount]) as [{nameof(Quantity)}],
|
|
|
case p.[ArticleType] when 2 then 'Profiles' when 5 then 'Gasket' when 8 then 'Components' when 30 then 'Fills' else '???' end as [{nameof(Group)}],
|
|
|
coalesce(s.[CustomerNo],s.[ActiveTitle]) as [{nameof(Supplier)}],
|
|
|
- p.[ArticleCode] as [{nameof(Code)}],
|
|
|
+ p.[ArticleCode_BaseNumber] as [{nameof(Code)}],
|
|
|
p.[description] as [{nameof(Description)}],
|
|
|
p.Perimeter as [{nameof(AnodizePerimeter)}],
|
|
|
p.[PerimeterBoundaryBox] as [{nameof(PaintPerimeter)}],
|