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
|
|
|
|
WHERE ii.id = ?;
|