xtract.Sales_Invoice_Line.sql 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Sales_Invoice_Line] AS
  6. SELECT [timestamp]
  7. , [Document No_]
  8. , [Line No_]
  9. -- , [Sell-to Customer No_]
  10. , [Type]
  11. , [No_]
  12. -- , [Location Code]
  13. -- , [Posting Group]
  14. -- , [Quantity Disc_ Code]
  15. -- , [Shipment Date]
  16. , [Description]
  17. -- , [Description 2]
  18. -- , [Unit of Measure]
  19. , [Quantity]
  20. -- , [Unit Price]
  21. , [Unit Cost (LCY)]
  22. -- , [VAT _]
  23. -- , [Quantity Disc_ _]
  24. -- , [Line Discount _]
  25. , [Line Discount Amount]
  26. , [Amount]
  27. -- , [Amount Including VAT]
  28. -- , [Allow Invoice Disc_]
  29. -- , [Gross Weight]
  30. -- , [Net Weight]
  31. -- , [Units per Parcel]
  32. -- , [Unit Volume]
  33. -- , [Appl_-to Item Entry]
  34. , [Shortcut Dimension 1 Code]
  35. -- , [Shortcut Dimension 2 Code]
  36. -- , [Price Group Code]
  37. -- , [Allow Quantity Disc_]
  38. -- , [Work Type Code]
  39. -- , [Serial No_]
  40. -- , [Cust__Item Disc_ _]
  41. -- , [Inv_ Discount Amount]
  42. -- , [Drop Shipment]
  43. -- , [Gen_ Bus_ Posting Group]
  44. , [Gen_ Prod_ Posting Group]
  45. -- , [VAT Calculation Type]
  46. -- , [Transaction Type]
  47. -- , [Transport Method]
  48. -- , [Attached to Line No_]
  49. -- , [Exit Point]
  50. -- , [Area]
  51. -- , [Transaction Specification]
  52. -- , [Tax Area Code]
  53. -- , [Tax Liable]
  54. -- , [Tax Group Code]
  55. -- , [VAT Clause Code]
  56. -- , [VAT Bus_ Posting Group]
  57. -- , [VAT Prod_ Posting Group]
  58. -- , [Blanket Order No_]
  59. -- , [Blanket Order Line No_]
  60. -- , [VAT Base Amount]
  61. -- , [Unit Cost]
  62. -- , [VAT Identifier]
  63. -- , [IC Partner Ref_ Type]
  64. -- , [IC Partner Reference]
  65. -- , [IC Partner Code]
  66. -- , [Posting Date]
  67. -- , [Dimension Set ID]
  68. -- , [Book No_]
  69. -- , [Variant Code]
  70. -- , [Bin Code]
  71. -- , [Qty_ per Unit of Measure]
  72. -- , [Unit of Measure Code]
  73. -- , [Quantity (Base)]
  74. -- , [Order No_]
  75. -- , [Order Line No_]
  76. -- , [Branch Book No_]
  77. -- , [Currency Rounding Position]
  78. -- , [Order Type]
  79. -- , [Item Type]
  80. -- , [VIN]
  81. -- , [Vehicle Status]
  82. -- , [Registration Date]
  83. -- , [Mileage]
  84. -- , [Expected Shipping Week]
  85. -- , [License No_]
  86. -- , [Indentation]
  87. -- , [Totaling]
  88. , [Service Order No_]
  89. , [Service Order Line No_]
  90. -- , [Labor Make Code]
  91. , [Labor No_]
  92. -- , [Exch_ Parts Tax Base]
  93. -- , [Exch_ Parts Tax _]
  94. -- , [Exch_ Parts Tax Amount]
  95. -- , [Exch_ Parts VAT _]
  96. -- , [Allow Discount]
  97. -- , [Service Type]
  98. -- , [Cockpit Entry No_]
  99. -- , [Printed Deposit Tickets]
  100. -- , [Additional Item]
  101. -- , [Customer Group Code]
  102. -- , [Item Group Code]
  103. -- , [Quantity Multiplier]
  104. -- , [Cockpit Posting Entry No_]
  105. -- , [Fair Deal]
  106. -- , [Automatic Surcharge]
  107. -- , [Service Surcharge Code]
  108. -- , [From Veh_ Opt_Inv_ Doc_ Type]
  109. -- , [From Veh_ Option Inv_ Doc_ No_]
  110. -- , [From Veh_ Opt_Inv_ Doc_ Line]
  111. -- , [From Veh_ Opt_Inv_ Line Type]
  112. -- , [From Veh_ Option Inv_ No_]
  113. -- , [From Veh_ Opt_Inv_ IntCode]
  114. -- , [Sending Required]
  115. -- , [Sales Line Document No_]
  116. -- , [Sales Line Line No_]
  117. -- , [Sales Line Document Type]
  118. -- , [Main Customer]
  119. -- , [Vehicle Unit Price Date]
  120. -- , [Date of Re-motorization]
  121. -- , [Shelf_Bin No_]
  122. -- , [Print Option Line]
  123. -- , [Print Unit Price]
  124. -- , [Veh_ Opt_ Line No_]
  125. -- , [Coded Part Type]
  126. -- , [Shipment No_ not Closed]
  127. -- , [Remaining Qty on Shipment]
  128. -- , [Process Type]
  129. -- , [Running Time]
  130. -- , [VAT Difference Amount]
  131. -- , [Manual VAT Amount]
  132. -- , [VAT Amount]
  133. -- , [Calculated VAT Amount]
  134. -- , [Original Amount]
  135. -- , [Original Amount Incl_ VAT]
  136. -- , [Supply Req_ Template Name]
  137. -- , [Supply Req_ Wksh_ Name]
  138. -- , [Dealer Code]
  139. -- , [Invoice No_]
  140. -- , [Invoice Line No_]
  141. -- , [Pick User ID]
  142. -- , [Factory No_]
  143. -- , [Supply VIN]
  144. -- , [Engine No_]
  145. -- , [Transmission Type Code]
  146. -- , [Key No_]
  147. -- , [Reference License No_]
  148. -- , [Disable for Requisition]
  149. -- , [Promotion]
  150. -- , [Set Vehicle Line No_]
  151. -- , [Promotion Price incl_ VAT]
  152. -- , [Serv_ Preview Line Type]
  153. -- , [Serv_ Preview Type]
  154. -- , [Serv_ Preview Total Line Level]
  155. -- , [Service No_]
  156. -- , [Service Job No_]
  157. -- , [Service Package No_]
  158. -- , [Service Package Version No_]
  159. -- , [Job Details Text Block]
  160. -- , [Internal Comments Text Block]
  161. -- , [EU Tire Data Code]
  162. -- , [Prepayment Line]
  163. -- , [Combined Consumption]
  164. -- , [Cruising Range]
  165. -- , [Efficiency Class]
  166. -- , [Emission Test Procedure]
  167. -- , [Your Reference Line No_]
  168. -- , [Order Manuf_ Item No_]
  169. -- , [Your Reference]
  170. -- , [Parking Bay]
  171. -- , [Parking Lot]
  172. -- , [Autom_ Rounding Disc_ _]
  173. -- , [Autom_ Rounding Disc_ Amount]
  174. , [Client_DB]
  175. FROM [GC_TRANSIT_ARI].[import].[Sales_Invoice_Line]
  176. GO
  177. SET QUOTED_IDENTIFIER OFF
  178. GO
  179. SET ANSI_NULLS OFF
  180. GO
  181. GO