فهرست منبع

Corrected default Logikal BOM queries

frankvandenbos 2 ماه پیش
والد
کامیت
aa1b3b6daa

+ 1 - 1
prs.desktop/Integrations/Logikal/Classes/LogikalComponent.cs

@@ -23,7 +23,7 @@ $@"select
     a.[ArticleCode_BaseNumber] as [{nameof(Code)}], 
     a.[description] as [{nameof(Description)}], 
     a.[pusize] as [{nameof(PackSize)}], 
-    case a.[ArticleType] when 2 then 'Profiles' when 5 then 'Gasket' when 8 then 'Components' when 30 then 'Fills' else '???' end as [{nameof(Group)}],
+    case a.[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)}],
     coalesce(s.[CustomerNo],s.[ActiveTitle]) as [{nameof(Supplier)}],
     sum(a.[units]/a.[pusize]) as [{nameof(Quantity)}], 
     a.[Price]*a.[pusize] as [{nameof(Cost)}]

+ 1 - 1
prs.desktop/Integrations/Logikal/Classes/LogikalGasket.cs

@@ -22,7 +22,7 @@ public class LogikalGasket : LogikalBOMItem, ILogikalGasket
     a.[ArticleCode_BaseNumber] as [{nameof(Code)}], 
     a.[description] as [{nameof(Description)}], 
     a.[pusize] as [{nameof(Length)}],
-    case a.[ArticleType] when 2 then 'Profiles' when 5 then 'Gasket' when 8 then 'Components' when 30 then 'Fills' else '???' end as [{nameof(Group)}],
+    case a.[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)}],
     coalesce(s.[CustomerNo],s.[ActiveTitle]) as [{nameof(Supplier)}],
     sum(a.[length]/a.[pusize]) as [{nameof(Quantity)}], 
     a.[Price]*a.[pusize] as [{nameof(Cost)}]

+ 2 - 2
prs.desktop/Integrations/Logikal/Classes/LogikalProfile.cs

@@ -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)}],