fakt_Stunden_neu.iqd 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. COGNOS QUERY
  2. STRUCTURE,1,1
  3. DATABASE,Navision2
  4. DATASOURCENAME,C:\GAPS_BMW\Portal\System\IQD\Zeit\fakt_Stunden_neu.imr
  5. TITLE,fakt_Stunden_neu.imr
  6. BEGIN SQL
  7. select T1."Entry No_" as c1,
  8. T1."Corrected" as c2,
  9. T1."Document No_" as c3,
  10. T1."Document Date" as c4,
  11. T1."Document Type" as c5,
  12. T1."Service Document Type" as c6,
  13. T1."Service Document No_" as c7,
  14. T1."Service Document Line No_" as c8,
  15. T1."Ass_ Serv_ Ledger Entry No_" as c9,
  16. T1."Customer No_" as c10,
  17. T1."Resource No_" as c11,
  18. T1."Portion %" as c12,
  19. T1."Rated Qty_ (Ind_ time)" as c13,
  20. T1."Qty_ (Hour)" as c14,
  21. T1."Clock In_Out Date" as c15,
  22. T1."Service Job No_" as c16,
  23. T1."No_" as c17,
  24. T1."Make Code" as c18,
  25. T1."VIN" as c19,
  26. T1."Invoiced Time (Ind_ time)" as c20,
  27. T1."Standard Time (Ind_ time)" as c21,
  28. T1."Labor per Hour" as c22,
  29. T1."Labor Split Rate" as c23,
  30. T1."Standard Time (hrs_)" as c24,
  31. T1."Standard Time labor" as c25,
  32. T1."Efficiency % Position" as c26,
  33. T1."Efficiency % Resource" as c27,
  34. T1."Work Type" as c28,
  35. T1."Invoiced Time Exported" as c29,
  36. T1."Split Rate (hrs_)" as c30,
  37. T1."Labor Standard Time Type" as c31,
  38. (od_left(T1."Split Rate (hrs_)",1)) as c32,
  39. (cast_float(T1."Invoiced Time (Ind_ time)")) as c33,
  40. RSUM(((cast_float(T1."Invoiced Time (Ind_ time)")))) as c34,
  41. (cast_float(T1."Labor Split Rate")) as c35,
  42. T1."Document Date" as c36,
  43. '1' as c37,
  44. 'LBS' as c38,
  45. T2."No_" as c39,
  46. T2."Last Name" as c40,
  47. T2."First Name" as c41,
  48. T2."First Name" || ' ' || T2."Last Name" as c42,
  49. T1."Service Document No_" as c43
  50. from ("DMS1"."dbo"."Automag GmbH$Clock In_Out Split LedgEntry" T1 left outer join "DMS1"."dbo"."Automag GmbH$Employee_T" T2 on T1."Resource No_" = T2."No_")
  51. END SQL
  52. COLUMN,0,Entry No
  53. COLUMN,1,Corrected
  54. COLUMN,2,Document No
  55. COLUMN,3,Document Date
  56. COLUMN,4,Document Type
  57. COLUMN,5,Service Document Type
  58. COLUMN,6,Service Document No
  59. COLUMN,7,Service Document Line No
  60. COLUMN,8,Ass Serv Ledger Entry No
  61. COLUMN,9,Customer No
  62. COLUMN,10,Resource No
  63. COLUMN,11,Portion %
  64. COLUMN,12,Rated Qty (ind Time)
  65. COLUMN,13,Qty (hour)
  66. COLUMN,14,Clock In Out Date
  67. COLUMN,15,Service Job No
  68. COLUMN,16,No
  69. COLUMN,17,Make Code
  70. COLUMN,18,Vin
  71. COLUMN,19,Invoiced Time (ind Time)
  72. COLUMN,20,Standard Time (ind Time)
  73. COLUMN,21,Labor Per Hour
  74. COLUMN,22,Labor Split Rate
  75. COLUMN,23,Standard Time (hrs )
  76. COLUMN,24,Standard Time Labor
  77. COLUMN,25,Efficiency % Position
  78. COLUMN,26,Efficiency % Resource
  79. COLUMN,27,Work Type
  80. COLUMN,28,Invoiced Time Exported
  81. COLUMN,29,Split Rate (hrs )
  82. COLUMN,30,Labor Standard Time Type
  83. COLUMN,31,Stunde
  84. COLUMN,32,fakt. Stunden
  85. COLUMN,33,Summe (Inv Time) Nr.1
  86. COLUMN,34,Labor Split Rate_Zeit
  87. COLUMN,35,Datum
  88. COLUMN,36,Hauptbetrieb
  89. COLUMN,37,Standort
  90. COLUMN,38,No
  91. COLUMN,39,Last Name
  92. COLUMN,40,First Name
  93. COLUMN,41,Monteur
  94. COLUMN,42,Order Number