OP_aus_LOC_Belege_8520.sql 703 B

12345678910111213141516171819
  1. SELECT DISTINCT T1."document_type" AS "Document Type",
  2. T1."nominal_account_number" AS "Nominal Account Number",
  3. T1."customer_contra_account" AS "Customer Contra Account",
  4. T1."invoice_number" AS "Invoice Number",
  5. T1."skr51_branch" AS "Skr51 Branch",
  6. T1."subsidiary_to_company_ref" AS "Rechtseinheit",
  7. (((T1."skr51_branch"))) AS "Betrieb",
  8. '1' AS "Mandant",
  9. T1."subsidiary_to_company_ref" AS "Hauptbetrieb",
  10. ((((T1."skr51_branch")))) AS "Standort"
  11. FROM "journal_accountings" T1
  12. WHERE (
  13. (
  14. (T1."nominal_account_number" IN (8520))
  15. AND (T1."document_type" = 'R')
  16. )
  17. AND (T1."invoice_date" >= convert(DATE, '2016-01-01'))
  18. )
  19. -- order by "Invoice Number" asc,"Nominal Account Number" asc