Skip to content

Instantly share code, notes, and snippets.

@nikolasd
Last active March 8, 2019 12:17
Show Gist options
  • Save nikolasd/6f42a6561ade8fe8742d1bdab7396349 to your computer and use it in GitHub Desktop.
Save nikolasd/6f42a6561ade8fe8742d1bdab7396349 to your computer and use it in GitHub Desktop.
Pylon SQL - Εύρεση όλων των εισπρακτικών παραστατικών που χρησιμοποιούν συγκεκριμένη γέφυρα
SELECT
ser.heCode AS DOCSERIES,
ser.heShortcut AS DOCSERIESSHORTCUT,
ser.heName AS DOCSERIESNAME,
typ.heCode AS DOCTYPE,
typ.heName AS DOCTYPENAME,
acc.heCode AS ACCTMP,
acc.heName AS ACCTPMNAME,
cmp.heName AS CMP
FROM heDocSeries AS ser
INNER JOIN heFinDocTypes AS typ
ON typ.heID = ser.heDocTypeID
LEFT JOIN heAccountingTemplates AS acc
ON acc.heID = typ.heAtmpID
LEFT JOIN heCompanies AS cmp
ON ser.heCompID = cmp.heID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment