salix/print/templates/reports/receipt/sql/client.sql

8 lines
161 B
SQL

SELECT
c.id,
c.socialName,
u.lang locale
FROM receipt r
JOIN client c ON c.id = r.clientFk
JOIN account.user u ON u.id = c.id
WHERE r.id = ?