xtract.Archived_Service_Header.sql 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Archived_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. -- , [Date Archived]
  93. -- , [Archived by User]
  94. -- , [Reason for Archiving]
  95. -- , [Service Posting Group]
  96. -- , [VIN]
  97. -- , [License No_]
  98. -- , [Mileage]
  99. -- , [Model Code]
  100. -- , [Model No_]
  101. -- , [Prod_ Year]
  102. -- , [Model]
  103. -- , [Vehicle Type]
  104. -- , [Initial Registration]
  105. -- , [Gen_ Prod_ Posting Group]
  106. -- , [Order Limit]
  107. -- , [Time of Order]
  108. -- , [Pickup Date]
  109. -- , [Pickup Time]
  110. -- , [Sell-to Mobile Phone No_]
  111. -- , [Sell-to Phone No_]
  112. -- , [Sell-to Bus_ Mobile Phone No_]
  113. , [Service Advisor No_]
  114. -- , [Invoice Copies]
  115. -- , [Completion Date]
  116. -- , [Completion Time]
  117. -- , [Sell-to Home Mobile Phone No_]
  118. -- , [Engine Code]
  119. -- , [Engine No_]
  120. -- , [Customer Registration Date]
  121. -- , [Engine Type Code]
  122. -- , [No_ of Cylinders]
  123. -- , [Cylinder Capacity (ccm)]
  124. -- , [Power (kW)]
  125. -- , [Power (hp)]
  126. -- , [Transmission Type Code]
  127. -- , [Tires]
  128. -- , [No_ of Doors]
  129. -- , [No_ of Axles]
  130. -- , [4WD]
  131. -- , [Market Segment Code]
  132. -- , [Vehicle Category Code]
  133. -- , [Vehicle Type Code]
  134. -- , [Emissions Test Category Code]
  135. -- , [Labor Type]
  136. -- , [Labor Charging Code]
  137. -- , [Labor Price Group]
  138. -- , [Ext_ Service Price Group]
  139. -- , [WIP Posting]
  140. -- , [Book No_]
  141. -- , [Branch Book No_]
  142. -- , [Item Sales Price Group]
  143. -- , [Show Discount]
  144. -- , [Inv_ Discount _]
  145. -- , [Sales Department Code]
  146. -- , [Copy Header Text to Next Doc_]
  147. -- , [Copy Footer Text to Next Doc_]
  148. -- , [Add Service Surcharges]
  149. -- , [Post with Book No_]
  150. -- , [Color Class]
  151. -- , [Upholstery Class]
  152. -- , [Service Advisor No__Scheduling]
  153. -- , [Internal Order]
  154. -- , [Branch Code]
  155. -- , [Work Completed]
  156. -- , [Status Code]
  157. -- , [Internal Document No_ Series]
  158. -- , [Internal Document No_]
  159. -- , [Service Advisor No__Pick-Up]
  160. -- , [Use Inventory Buffer Quantity]
  161. -- , [Sales Branch Code]
  162. -- , [Fabrication Code]
  163. -- , [Purch_ Document Type]
  164. -- , [Purch_ Document No_]
  165. -- , [Purch_ Document Line No_]
  166. -- , [Mileage At Order Creation]
  167. -- , [Running Time]
  168. -- , [Running Time At Order Creation]
  169. -- , [No_ of Seats]
  170. -- , [Req_ Wksh_ Template Name]
  171. -- , [Requisition Wksh_ Name]
  172. -- , [Mobile Service]
  173. -- , [Proposal for Alternative Part]
  174. -- , [Time Management activated]
  175. -- , [Sell-to Contact No_]
  176. -- , [Bill-to Contact No_]
  177. -- , [First Shipment Date]
  178. -- , [Last Shipment Date]
  179. -- , [Disable for Requisition]
  180. -- , [Update Labor Clocking in Order]
  181. -- , [Message Created from Batch]
  182. -- , [Guide No_]
  183. -- , [Warranty Status Code]
  184. -- , [No_ of Warr_ Claims expected]
  185. -- , [Vehicle Sell-to Customer No_]
  186. -- , [Created by User ID]
  187. -- , [Customer is waiting]
  188. -- , [Fuel Level]
  189. -- , [Liters]
  190. -- , [Battery Voltage]
  191. -- , [Document Chain No_]
  192. -- , [Print Fixed Unit Price]
  193. -- , [Show Fair Deal]
  194. -- , [Show No-Charge Lines]
  195. -- , [Customer for No-Charge Lines]
  196. -- , [Text 1]
  197. -- , [Text 2]
  198. -- , [Text 3]
  199. -- , [Text 4]
  200. -- , [Text 5]
  201. -- , [Text 6]
  202. -- , [Extra Code 1]
  203. -- , [Extra Code 2]
  204. -- , [Extra Code 3]
  205. -- , [Boolean 1]
  206. -- , [Boolean 2]
  207. -- , [Date 1]
  208. -- , [Date 2]
  209. -- , [Decimal 1]
  210. -- , [Decimal 2]
  211. -- , [Integer 1]
  212. -- , [Integer 2]
  213. -- , [Integer 3]
  214. -- , [Integer 4]
  215. -- , [Task Type]
  216. -- , [Work Status Code]
  217. -- , [Creation Date]
  218. -- , [Creation Time]
  219. -- , [Resource Time Split Type]
  220. -- , [Drive]
  221. -- , [Driver Address No_]
  222. -- , [Vehicle in House]
  223. -- , [Print Service Job Fixed Price]
  224. -- , [Valid-to Date]
  225. -- , [Appointment Date]
  226. -- , [Appointment Time]
  227. -- , [Do Not Sync To Web Apps]
  228. -- , [VAT Calculation Logic]
  229. -- , [Virtual Record]
  230. -- , [EU Fuel Cons_ Rept_ Refusal]
  231. , [Client_DB]
  232. FROM [GC_TRANSIT_ARI].[import].[Archived_Service_Header]
  233. GO
  234. SET QUOTED_IDENTIFIER OFF
  235. GO
  236. SET ANSI_NULLS OFF
  237. GO
  238. GO