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

5 lines
140 B
MySQL
Raw Normal View History

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