TFM_fOffenePosten95_3.sql 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [dbo].[TFM_fOffenePosten95_3]
  6. AS
  7. SELECT [TFM_vfOffenePosten].[Kontonummer]
  8. ,[TFM_vfOffenePosten].[Name (Adressattyp Unternehmen)]
  9. ,[TFM_vfOffenePosten].[Rechnungs-Nr]
  10. ,[TFM_vfOffenePosten].[Fälligkeit]
  11. ,[TFM_vfOffenePosten].[Betrag Soll]
  12. ,[TFM_vfOffenePosten].[Betrag Haben]
  13. ,[TFM_vfOffenePosten].[Saldo]
  14. ,[TFM_vfOffenePosten].[S H Saldo]
  15. ,[TFM_vfOffenePosten].[Gegenkonto]
  16. ,[TFM_vfOffenePosten].[Fällig]
  17. ,[TFM_vfOffenePosten].[Ausgleich]
  18. ,[TFM_vfOffenePosten].[Belegfeld 2]
  19. ,[TFM_vfOffenePosten].[Kz ]
  20. ,[TFM_vfOffenePosten].[Buchungstext]
  21. ,[TFM_vfOffenePosten].[USt %]
  22. ,[TFM_vfOffenePosten].[Stapel-Nr ]
  23. ,[TFM_vfOffenePosten].[BSNr]
  24. ,[TFM_vfOffenePosten].[Postensperre]
  25. ,[TFM_vfOffenePosten].[KOST1 - Kostenstelle]
  26. ,[TFM_vfOffenePosten].[KOST2 - Kostenstelle]
  27. ,[TFM_vfOffenePosten].[Postleitzahl]
  28. ,[TFM_vfOffenePosten].[Ort]
  29. ,[TFM_vfOffenePosten].[Kurzbezeichnung]
  30. ,[TFM_vfOffenePosten].[Mahnstufe]
  31. ,[TFM_vfOffenePosten].[Mandant ID]
  32. ,[TFM_vfOffenePosten].[Länge_Rechnungsnummer]
  33. ,[TFM_vfOffenePosten].[Beleg]
  34. ,[TFM_vfOffenePosten].[Kunde]
  35. ,[TFM_vfOffenePosten].[Standort]
  36. ,[TFM_vfOffenePosten].[Konto_1_Stelle]
  37. ,[TFM_vfOffenePosten].[Fälligkeitsdatum]
  38. ,[TFM_vfOffenePosten].[Invoice Date]
  39. ,[TFM_vfOffenePosten].[Rechnungsdatum]
  40. ,[TFM_vfOffenePosten].[Fälligkeit_Jahr]
  41. ,[TFM_vfOffenePosten].[Fälligkeit_Monat]
  42. ,[TFM_vfOffenePosten].[Fälligkeit_Tag]
  43. ,[TFM_vfOffenePosten].[Fälligkeit_Datum_Zahl]
  44. ,[TFM_vfOffenePosten].[Fälligkeit_Zahl]
  45. ,[TFM_vfOffenePosten].[Fälligkeit_Zeichen]
  46. ,[TFM_vfOffenePosten].[Anz_Stellen_Fälligkeit]
  47. ,[TFM_vfOffenePosten].[Tage]
  48. ,[TFM_vfOffenePosten].[Staffel]
  49. ,[TFM_vfOffenePosten].[Sel Name]
  50. ,[TFM_vfOffenePosten].[Kostenstelle]
  51. ,[TFM_vfOffenePosten].[Bereich]
  52. ,[TFM_vfOffenePosten].[Forderungsart]
  53. ,[TFM_vfOffenePosten].[Abwarten]
  54. ,[TFM_vfOffenePosten].[Gesamt offen KD (Info)]
  55. ,[TFM_vfOffenePosten].[offen]
  56. ,[TFM_vfOffenePosten].[Rechnungsbetrag]
  57. ,[TFM_vdStandort].[Hauptbetrieb_Name]
  58. ,[TFM_vdStandort].[Standort_Name]
  59. FROM [dbo].[TFM_vfOffenePosten]
  60. LEFT JOIN [dbo].[TFM_vdStandort]
  61. ON [TFM_vfOffenePosten].[Mandant ID] = [TFM_vdStandort].[Mandant ID]
  62. --AND [TFM_vfOffenePosten].[Hauptbetrieb_ID] = [TFM_vdStandort].[Hauptbetrieb_ID]
  63. AND [TFM_vfOffenePosten].[Standort] = [TFM_vdStandort].[Standort_ID]
  64. GO
  65. SET QUOTED_IDENTIFIER OFF
  66. GO
  67. SET ANSI_NULLS OFF
  68. GO
  69. GO