xtract.Sales_Invoice_Header.sql 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Sales_Invoice_Header] AS
  6. SELECT [timestamp]
  7. , [No_]
  8. , [Sell-to Customer No_]
  9. , [Bill-to Customer No_]
  10. -- , [Bill-to Name]
  11. -- , [Bill-to Name 2]
  12. -- , [Bill-to Address]
  13. -- , [Bill-to Address 2]
  14. -- , [Bill-to City]
  15. -- , [Bill-to Contact]
  16. -- , [Your Reference]
  17. -- , [Ship-to Code]
  18. -- , [Ship-to Name]
  19. -- , [Ship-to Name 2]
  20. -- , [Ship-to Address]
  21. -- , [Ship-to Address 2]
  22. -- , [Ship-to City]
  23. -- , [Ship-to Contact]
  24. -- , [Order Date]
  25. , [Posting Date]
  26. -- , [Shipment Date]
  27. -- , [Posting Description]
  28. -- , [Payment Terms Code]
  29. -- , [Due Date]
  30. -- , [Payment Discount _]
  31. -- , [Pmt_ Discount Date]
  32. -- , [Shipment Method Code]
  33. , [Location Code]
  34. -- , [Shortcut Dimension 1 Code]
  35. , [Shortcut Dimension 2 Code]
  36. , [Customer Posting Group]
  37. -- , [Currency Code]
  38. -- , [Currency Factor]
  39. -- , [Price Group Code]
  40. -- , [Prices Including VAT]
  41. -- , [Allow Quantity Disc_]
  42. -- , [Invoice Disc_ Code]
  43. -- , [Cust__Item Disc_ Gr_]
  44. -- , [Language Code]
  45. , [Salesperson Code]
  46. , [Order No_]
  47. -- , [No_ Printed]
  48. -- , [On Hold]
  49. -- , [Applies-to Doc_ Type]
  50. -- , [Applies-to Doc_ No_]
  51. -- , [Bal_ Account No_]
  52. -- , [VAT Registration No_]
  53. -- , [Reason Code]
  54. -- , [Gen_ Bus_ Posting Group]
  55. -- , [EU 3-Party Trade]
  56. -- , [Transaction Type]
  57. -- , [Transport Method]
  58. -- , [VAT Country Code]
  59. -- , [Sell-to Customer Name]
  60. -- , [Sell-to Customer Name 2]
  61. -- , [Sell-to Address]
  62. -- , [Sell-to Address 2]
  63. -- , [Sell-to City]
  64. -- , [Sell-to Contact]
  65. -- , [Bill-to Post Code]
  66. -- , [Bill-to County]
  67. -- , [Bill-to Country Code]
  68. -- , [Sell-to Post Code]
  69. -- , [Sell-to County]
  70. -- , [Sell-to Country Code]
  71. -- , [Ship-to Post Code]
  72. -- , [Ship-to County]
  73. -- , [Ship-to Country Code]
  74. -- , [Bal_ Account Type]
  75. -- , [Exit Point]
  76. -- , [Correction]
  77. -- , [Document Date]
  78. -- , [External Document No_]
  79. -- , [Area]
  80. -- , [Transaction Specification]
  81. -- , [Payment Method Code]
  82. -- , [Shipping Agent Code]
  83. -- , [Package Tracking No_]
  84. -- , [Pre-Assigned No_ Series]
  85. , [No_ Series]
  86. , [Order No_ Series]
  87. -- , [Pre-Assigned No_]
  88. , [User ID]
  89. -- , [Source Code]
  90. -- , [Tax Area Code]
  91. -- , [Tax Liable]
  92. -- , [VAT Bus_ Posting Group]
  93. -- , [VAT Base Discount _]
  94. -- , [Payment Reference]
  95. -- , [Dimension Set ID]
  96. -- , [Document Exchange Identifier]
  97. -- , [Document Exchange Status]
  98. -- , [Doc_ Exch_ Original Identifier]
  99. -- , [Direct Debit Mandate ID]
  100. -- , [Sell-to Contact No_]
  101. -- , [Bill-to Contact No_]
  102. -- , [Opportunity No_]
  103. -- , [Order Type]
  104. -- , [Customer Confirmation Date]
  105. -- , [Price Freeze Until]
  106. , [Service Order No_]
  107. -- , [Item Sales Price Group]
  108. -- , [Show Discount]
  109. -- , [Purch_ Order Type]
  110. -- , [Inv_ Discount _]
  111. -- , [Sell-to Salutation Code]
  112. -- , [Bill-to Salutation Code]
  113. -- , [Ship-to Addr_ Salutation Code]
  114. -- , [Vehicle Sales Price Group]
  115. -- , [Option Sales Price Group]
  116. -- , [Copy Header Text to Next Doc_]
  117. -- , [Copy Footer Text to Next Doc_]
  118. -- , [Customer Group Code]
  119. -- , [Cockpit Entry No_]
  120. -- , [Service Order No_ 2]
  121. , [Service Order Line No_]
  122. -- , [Cockpit Posting Entry No_]
  123. -- , [Transfer Method]
  124. -- , [First Shipment Date]
  125. -- , [Last Shipment Date]
  126. -- , [Main Shipment Date]
  127. -- , [Branch Code]
  128. -- , [Vehicle Unit Price Date]
  129. -- , [Dealer Code]
  130. -- , [Dealer Confirmed]
  131. -- , [Dealer Confirmed Date]
  132. -- , [Dealer Confirmed Time]
  133. -- , [Dealer Confirmed User Code]
  134. -- , [Dealer Reason Code]
  135. -- , [Authorisation No_]
  136. , [Supply VIN]
  137. -- , [Reference License No_]
  138. -- , [Cash Payment]
  139. -- , [Cash Payment Document Type]
  140. -- , [Cash Register Receipt]
  141. -- , [Activities Created]
  142. -- , [Disable for Requisition]
  143. -- , [Warranty Lock]
  144. -- , [Customer Contact Program]
  145. -- , [Mobile Service]
  146. -- , [Proposal for Alternative Part]
  147. -- , [Service Contract Lock]
  148. -- , [OPP Payment Bank Code]
  149. -- , [OPP Mandate ID]
  150. -- , [OPP QR Code]
  151. , [Service Advisor No_]
  152. -- , [Service Advisor No__Pick-Up]
  153. -- , [Prepayment]
  154. -- , [Prepayment Order No_]
  155. -- , [Prepayment Assignment]
  156. -- , [Salesperson Code 2]
  157. -- , [Messaging App Type]
  158. -- , [Message Type]
  159. -- , [Message Notification]
  160. -- , [Document Chain No_]
  161. -- , [External Purch_ Order Date]
  162. -- , [OPP Installment Template]
  163. -- , [OPP Installment Template Type]
  164. -- , [VAT Calculation Logic]
  165. -- , [General Document]
  166. -- , [Doc_ Unique Id]
  167. , [Client_DB]
  168. FROM [GC_TRANSIT_ARI].[import].[Sales_Invoice_Header]
  169. GO
  170. SET QUOTED_IDENTIFIER OFF
  171. GO
  172. SET ANSI_NULLS OFF
  173. GO
  174. GO