xtract.Service_Header.sql 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Service_Header] AS
  6. SELECT [timestamp]
  7. , [Document Type]
  8. , [No_]
  9. , [Sell-to Customer No_]
  10. , [Bill-to Customer No_]
  11. , [Bill-to Name]
  12. -- , [Bill-to Name 2]
  13. -- , [Bill-to Address]
  14. -- , [Bill-to Address 2]
  15. -- , [Bill-to City]
  16. -- , [Bill-to Contact]
  17. -- , [Your Reference]
  18. , [Order Date]
  19. -- , [Posting Date]
  20. -- , [Posting Description]
  21. -- , [Payment Terms Code]
  22. -- , [Due Date]
  23. -- , [Payment Discount _]
  24. -- , [Pmt_ Discount Date]
  25. -- , [Shipment Method Code]
  26. , [Location Code]
  27. , [Department Code]
  28. , [Make Code]
  29. -- , [Customer Posting Group]
  30. -- , [Currency Code]
  31. -- , [Currency Factor]
  32. -- , [Price Group Code]
  33. -- , [Prices Including VAT]
  34. -- , [Allow Quantity Disc_]
  35. -- , [Cust__Item Disc_ Gr_]
  36. -- , [Language Code]
  37. -- , [Salesperson Code]
  38. -- , [Order Class]
  39. -- , [No_ Printed]
  40. -- , [On Hold]
  41. -- , [Bal_ Account No_]
  42. -- , [Shipping No_]
  43. -- , [Posting No_]
  44. -- , [Last Shipping No_]
  45. -- , [Last Posting No_]
  46. -- , [VAT Registration No_]
  47. -- , [Combine Shipments]
  48. -- , [Reason Code]
  49. -- , [Gen_ Bus_ Posting Group]
  50. -- , [EU 3-Party Trade]
  51. -- , [Transaction Type]
  52. -- , [Transport Method]
  53. -- , [VAT Country Code]
  54. , [Sell-to Customer Name]
  55. -- , [Sell-to Customer Name 2]
  56. -- , [Sell-to Address]
  57. -- , [Sell-to Address 2]
  58. -- , [Sell-to City]
  59. -- , [Sell-to Contact]
  60. -- , [Bill-to Post Code]
  61. -- , [Bill-to County]
  62. -- , [Bill-to Country Code]
  63. -- , [Sell-to Post Code]
  64. -- , [Sell-to County]
  65. -- , [Sell-to Country Code]
  66. -- , [Ship-to Country Code]
  67. -- , [Bal_ Account Type]
  68. -- , [Exit Point]
  69. -- , [Correction]
  70. -- , [Document Date]
  71. -- , [External Document No_]
  72. -- , [Area]
  73. -- , [Transaction Specification]
  74. -- , [Payment Method Code]
  75. -- , [Shipping Agent Code]
  76. -- , [Package Tracking No_]
  77. -- , [No_ Series]
  78. -- , [Posting No_ Series]
  79. -- , [Shipping No_ Series]
  80. -- , [Tax Area Code]
  81. -- , [Tax Liable]
  82. -- , [VAT Bus_ Posting Group]
  83. -- , [Reserve]
  84. -- , [Applies-to ID]
  85. -- , [VAT Base Discount _]
  86. -- , [Option Code]
  87. -- , [Dimension Set ID]
  88. -- , [Last Changed]
  89. -- , [Message Notification]
  90. -- , [Messaging App Type]
  91. -- , [Message Type]
  92. -- , [Service Posting Group]
  93. , [VIN]
  94. -- , [License No_]
  95. -- , [Mileage]
  96. -- , [Model Code]
  97. -- , [Model No_]
  98. -- , [Prod_ Year]
  99. , [Model]
  100. -- , [Type]
  101. -- , [Initial Registration]
  102. -- , [Gen_ Prod_ Posting Group]
  103. -- , [Order Limit]
  104. -- , [Time of Order]
  105. , [Pickup Date]
  106. -- , [Pickup Time]
  107. -- , [Sell-to Home Phone No_]
  108. -- , [Sell-to Phone No_]
  109. -- , [Sell-to Mobile Phone No_]
  110. , [Service Advisor No_]
  111. -- , [Invoice Copies]
  112. -- , [Completion Date]
  113. -- , [Completion Time]
  114. -- , [Sell-to Home Mobile Phone No_]
  115. -- , [Engine Code]
  116. -- , [Engine No_]
  117. -- , [Customer Registration Date]
  118. -- , [Engine Type Code]
  119. -- , [No_ of Cylinders]
  120. -- , [Cylinder Capacity (ccm)]
  121. -- , [Power (kW)]
  122. -- , [Power (hp)]
  123. -- , [Transmission Type Code]
  124. -- , [Tires]
  125. -- , [No_ of Doors]
  126. -- , [No_ of Axles]
  127. -- , [4WD]
  128. -- , [Market Segment Code]
  129. -- , [Vehicle Category Code]
  130. -- , [Vehicle Type Code]
  131. -- , [Emissions Test Category Code]
  132. -- , [Labor Type]
  133. -- , [Labor Charging Code]
  134. -- , [Labor Price Group]
  135. -- , [Ext_ Service Price Group]
  136. -- , [WIP Posting]
  137. -- , [Book No_]
  138. -- , [Branch Book No_]
  139. -- , [Item Sales Price Group]
  140. -- , [Show Discount]
  141. -- , [Sales Department Code]
  142. -- , [Copy Header Text to Next Doc_]
  143. -- , [Copy Footer Text to Next Doc_]
  144. -- , [Add Service Surcharges]
  145. -- , [Post with Book No_]
  146. -- , [Color Class]
  147. -- , [Upholstery Class]
  148. -- , [Fixed Date]
  149. -- , [Fixed Instruction]
  150. -- , [Current Instruction Type]
  151. -- , [Branch Code]
  152. -- , [Work Completed]
  153. -- , [Status Code]
  154. -- , [Internal Document No_ Series]
  155. -- , [Internal Document No_]
  156. -- , [Service Advisor No__Pick-Up]
  157. -- , [Use Inventory Buffer Quantity]
  158. -- , [Sales Branch Code]
  159. -- , [Fabrication Code]
  160. -- , [Purch_ Document Type]
  161. -- , [Purch_ Document No_]
  162. -- , [Purch_ Document Line No_]
  163. -- , [Mileage At Order Creation]
  164. -- , [Running Time]
  165. -- , [Running Time At Order Creation]
  166. -- , [No_ of Seats]
  167. -- , [Disable for Requisition]
  168. -- , [Req_ Wksh_ Template Name]
  169. -- , [Requisition Wksh_ Name]
  170. -- , [Mobile Service]
  171. -- , [Proposal for Alternative Part]
  172. -- , [Time Control activated]
  173. -- , [Sell-to Contact No_]
  174. -- , [Bill-to Contact No_]
  175. -- , [First Shipment Date]
  176. -- , [Last Shipment Date]
  177. -- , [FilterLineNo]
  178. -- , [Update Labor Clocking in Order]
  179. -- , [Message Created from Batch]
  180. -- , [Guide No_]
  181. -- , [Warranty Status Code]
  182. -- , [No_ of Warr_ Claims expected]
  183. -- , [Vehicle Sell-to Customer No_]
  184. -- , [Created by User ID]
  185. -- , [Customer is waiting]
  186. -- , [Fuel Level]
  187. -- , [Liters]
  188. -- , [Battery Voltage]
  189. -- , [Document Chain No_]
  190. -- , [Pickup DateTime]
  191. -- , [Print Fixed Unit Price]
  192. -- , [Show Fair Deal]
  193. -- , [Show No-Charge Lines]
  194. -- , [Customer for No-Charge Lines]
  195. -- , [Text 1]
  196. -- , [Text 2]
  197. -- , [Text 3]
  198. -- , [Text 4]
  199. -- , [Text 5]
  200. -- , [Text 6]
  201. -- , [Extra Code 1]
  202. -- , [Extra Code 2]
  203. -- , [Extra Code 3]
  204. -- , [Boolean 1]
  205. -- , [Boolean 2]
  206. -- , [Date 1]
  207. -- , [Date 2]
  208. -- , [Decimal 1]
  209. -- , [Decimal 2]
  210. -- , [Integer 1]
  211. -- , [Integer 2]
  212. -- , [Integer 3]
  213. -- , [Integer 4]
  214. -- , [Task Type]
  215. -- , [Work Status Code]
  216. -- , [Creation Date]
  217. -- , [Creation Time]
  218. -- , [Resource Time Split Type]
  219. -- , [Drive]
  220. -- , [Driver Address No_]
  221. -- , [Vehicle in House]
  222. -- , [Print Service Job Fixed Price]
  223. -- , [Valid-to Date]
  224. -- , [Appointment Date]
  225. -- , [Appointment Time]
  226. -- , [Do Not Sync To Web Apps]
  227. -- , [VAT Calculation Logic]
  228. -- , [Virtual Record]
  229. -- , [EU Fuel Cons_ Rept_ Refusal]
  230. , [Client_DB]
  231. FROM [GC_TRANSIT_ARI].[import].[Service_Header]
  232. GO
  233. SET QUOTED_IDENTIFIER OFF
  234. GO
  235. SET ANSI_NULLS OFF
  236. GO
  237. GO