salix/print/templates/reports/invoice/sql/hasIntrastat.sql

5 lines
140 B
SQL

SELECT taxAreaFk != 'NATIONAL'
FROM vn.invoiceOutSerial ios
JOIN vn.invoiceOut io ON io.serial = ios.code
WHERE io.ref = ?;