xtract.Vehicle_Ledger_Entry.sql 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Vehicle_Ledger_Entry] AS
  6. SELECT [timestamp]
  7. -- , [Entry No_]
  8. , [Entry Type]
  9. , [Document No_]
  10. , [Posting Date]
  11. , [Book No_]
  12. , [VIN]
  13. -- , [Description]
  14. -- , [Quantity]
  15. -- , [Direct Unit Cost]
  16. -- , [Unit Cost]
  17. -- , [Total Cost]
  18. -- , [Unit Price]
  19. -- , [Total Price]
  20. -- , [Department Code]
  21. , [Make Code]
  22. -- , [User ID]
  23. -- , [Source Code]
  24. -- , [Journal Batch Name]
  25. -- , [Reason Code]
  26. -- , [Positive]
  27. -- , [Document Date]
  28. -- , [External Document No_]
  29. -- , [No_ Series]
  30. -- , [Type]
  31. -- , [No_]
  32. -- , [License No_]
  33. -- , [Location Code]
  34. , [Date of Sale]
  35. -- , [Open]
  36. , [Current Sales Ledger Entry]
  37. -- , [Credit Memo]
  38. -- , [Current Purchase Ledger Entry]
  39. -- , [Sold]
  40. -- , [Purchase Date]
  41. -- , [Item Ledger Entry No_]
  42. , [Gen_ Prod_ Posting Group]
  43. , [VAT Prod_ Posting Group]
  44. -- , [Phys_ Inventory Ledger Entry]
  45. -- , [Bal_ Account No_]
  46. -- , [VAT Calculation Type]
  47. -- , [Neg_ Adjmt_ Date]
  48. -- , [Taken Out of Inventory]
  49. , [Gen_ Bus_ Posting Group]
  50. -- , [VAT Bus_ Posting Group]
  51. , [Salespers__Purch_ Code]
  52. -- , [Reversed]
  53. -- , [Reversed by Entry No_]
  54. -- , [Reversed Entry No_]
  55. -- , [Salesperson Code 2]
  56. -- , [Chain Book No_]
  57. -- , [Trade-In for Book No_]
  58. -- , [Trade-In for VIN]
  59. -- , [Model No_]
  60. -- , [Vehicle]
  61. -- , [Vehicle Status]
  62. -- , [Vehicle Category Code]
  63. -- , [Vehicle Type Code]
  64. -- , [Market Segment Code]
  65. -- , [Vehicle Portion]
  66. -- , [Manuf_ Option Portion]
  67. -- , [Own Option Portion]
  68. -- , [Misc_ Portion]
  69. -- , [Veh_ Transfer Portion]
  70. -- , [Calculated Costs Portion]
  71. -- , [Branch Fee Amount]
  72. -- , [Service Order No_]
  73. -- , [Service Order Line No_]
  74. -- , [Service Order Completed]
  75. -- , [Value Increasing Measure]
  76. -- , [Branch Book No_]
  77. -- , [Add_-Currency Direct Unit Cost]
  78. -- , [Add_-Curr_ Unit Cost]
  79. -- , [Add_-Curr_ Total Cost]
  80. -- , [Add_ Curr_ Unit Price]
  81. -- , [Add_-Currency Total Price]
  82. -- , [Add_ Curr_ Vehicle Portion]
  83. -- , [Mfg_ Option Add_-Curr_ Rate]
  84. -- , [Add_ Curr_ Own Option Portion]
  85. -- , [Add_ Curr_ Misc_ Portion]
  86. -- , [Transfer Fees Add_-Curr_ Rate]
  87. -- , [Add_-Curr_ Calc_ Costs Portion]
  88. -- , [Source Type]
  89. -- , [Source No_]
  90. -- , [Source No_ (Payment)]
  91. -- , [Source Group Code]
  92. -- , [Main Customer]
  93. -- , [Main Area]
  94. -- , [Document Type]
  95. -- , [Main Group Code]
  96. -- , [Subgroup Code]
  97. -- , [Line Group Code]
  98. -- , [Item Group Code]
  99. -- , [Trade-In for Document No_]
  100. , [Line Type]
  101. -- , [Assoc_ No_]
  102. -- , [Not Relevant for Statistics]
  103. -- , [Serv_ Campaign No_]
  104. -- , [Serv_ Camp_ Counter]
  105. -- , [Branch Code]
  106. -- , [Sales Incentive Group]
  107. -- , [Bin Code]
  108. -- , [Sales Incentive No_]
  109. -- , [Item Charge No_]
  110. -- , [Veh_ Status Change]
  111. -- , [Sales Department Code]
  112. -- , [Sales Branch Code]
  113. -- , [G_L Entry No_]
  114. -- , [Excessive Trade In-Price]
  115. -- , [Service Advisor No_]
  116. -- , [Dimension Set ID]
  117. -- , [Sales Incentive Entry No_]
  118. -- , [Factory No_]
  119. -- , [Campaign Reversion]
  120. , [Client_DB]
  121. FROM [GC_TRANSIT_ARI].[import].[Vehicle_Ledger_Entry]
  122. GO
  123. SET QUOTED_IDENTIFIER OFF
  124. GO
  125. SET ANSI_NULLS OFF
  126. GO
  127. GO