salix/print/templates/reports/invoiceIn/sql/taxes.sql

10 lines
277 B
MySQL
Raw Normal View History

2022-10-18 12:58:38 +00:00
SELECT
2022-10-19 13:15:54 +00:00
ti.iva as name,
ti.PorcentajeIva as rate,
iit.taxableBase
FROM invoiceIn ii
JOIN invoiceInTax iit ON ii.id = iit.invoiceInFk
JOIN sage.TiposIva ti ON ti.CodigoIva = iit.taxTypeSageFk
2022-12-16 09:36:18 +00:00
WHERE ii.id = ?
ORDER BY name DESC;