xtract.Cust_Ledger_Entry.sql 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Cust_Ledger_Entry] AS
  6. SELECT [timestamp]
  7. , [Entry No_]
  8. , [Customer No_]
  9. -- , [Posting Date]
  10. , [Document Type]
  11. , [Document No_]
  12. , [Description]
  13. -- , [Currency Code]
  14. -- , [Sales (LCY)]
  15. -- , [Profit (LCY)]
  16. -- , [Inv_ Discount (LCY)]
  17. -- , [Sell-to Customer No_]
  18. -- , [Customer Posting Group]
  19. -- , [Global Dimension 1 Code]
  20. -- , [Global Dimension 2 Code]
  21. , [Salesperson Code]
  22. , [User ID]
  23. -- , [Source Code]
  24. , [On Hold]
  25. -- , [Applies-to Doc_ Type]
  26. -- , [Applies-to Doc_ No_]
  27. , [Open]
  28. , [Due Date]
  29. -- , [Pmt_ Discount Date]
  30. -- , [Original Pmt_ Disc_ Possible]
  31. -- , [Pmt_ Disc_ Given (LCY)]
  32. -- , [Positive]
  33. -- , [Closed by Entry No_]
  34. -- , [Closed at Date]
  35. -- , [Closed by Amount]
  36. -- , [Applies-to ID]
  37. -- , [Journal Batch Name]
  38. -- , [Reason Code]
  39. -- , [Bal_ Account Type]
  40. -- , [Bal_ Account No_]
  41. -- , [Transaction No_]
  42. -- , [Closed by Amount (LCY)]
  43. -- , [Document Date]
  44. -- , [External Document No_]
  45. -- , [Calculate Interest]
  46. -- , [Closing Interest Calculated]
  47. -- , [No_ Series]
  48. -- , [Closed by Currency Code]
  49. -- , [Closed by Currency Amount]
  50. -- , [Adjusted Currency Factor]
  51. -- , [Original Currency Factor]
  52. -- , [Remaining Pmt_ Disc_ Possible]
  53. -- , [Pmt_ Disc_ Tolerance Date]
  54. -- , [Max_ Payment Tolerance]
  55. , [Last Issued Reminder Level]
  56. -- , [Accepted Payment Tolerance]
  57. -- , [Accepted Pmt_ Disc_ Tolerance]
  58. -- , [Pmt_ Tolerance (LCY)]
  59. -- , [Amount to Apply]
  60. -- , [IC Partner Code]
  61. -- , [Applying Entry]
  62. -- , [Reversed]
  63. -- , [Reversed by Entry No_]
  64. -- , [Reversed Entry No_]
  65. -- , [Prepayment]
  66. -- , [Payment Method Code]
  67. -- , [Applies-to Ext_ Doc_ No_]
  68. -- , [Recipient Bank Account]
  69. , [Message to Recipient]
  70. -- , [Exported to Payment File]
  71. -- , [Dimension Set ID]
  72. -- , [Direct Debit Mandate ID]
  73. -- , [Customer Group Code]
  74. , [Branch Code]
  75. , [Main Area]
  76. -- , [Pmt_ Disc_ Base]
  77. , [VIN]
  78. -- , [Factory No_]
  79. -- , [Cash Reg_ Receipt No_]
  80. , [Comment]
  81. -- , [Discount Accumulated _]
  82. , [Service Advisor No_]
  83. -- , [Prepayment Order No_]
  84. -- , [Salesperson Code 2]
  85. -- , [OPP Pmt_ Import Entry No_]
  86. -- , [OPP Original Pmt_ Discount _]
  87. -- , [OPP Orig_ Pmt_ Disc_Poss_(LCY)]
  88. -- , [OPP Reopen-to ID]
  89. -- , [OPP Payback]
  90. -- , [OPP Posted on]
  91. -- , [OPP Association No_]
  92. -- , [OPP Transaction No_]
  93. -- , [OPP Mandate ID]
  94. -- , [OPP Installment Show Control]
  95. -- , [OPP Installment Entry]
  96. -- , [OPP Installment Reversal]
  97. , [Client_DB]
  98. FROM [GC_TRANSIT_ARI].[import].[Cust_Ledger_Entry]
  99. GO
  100. SET QUOTED_IDENTIFIER OFF
  101. GO
  102. SET ANSI_NULLS OFF
  103. GO
  104. GO