feat: refs #6500
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-04-17 13:11:28 +02:00
parent 3e5b6a9ad1
commit e769081a74
1 changed files with 6 additions and 6 deletions

View File

@ -5,12 +5,12 @@ BEGIN
* Muestra información sobre tasas de cambio de Dolares * Muestra información sobre tasas de cambio de Dolares
*/ */
SELECT SELECT
t.year, t.year año,
t.month, t.month mes,
pay.dollars, pay.dollars dolares,
pay.changePractical, pay.changePractical cambioPractico,
CAST(SUM(iit.foreignValue ) / SUM(iit.taxableBase) AS DECIMAL(5,4)) cambioTeorico, CAST(SUM(iit.foreignValue ) / SUM(iit.taxableBase) AS DECIMAL(5,4))cambioTeorico,
pay.changeOfficial pay.changeOfficial cambioOficial
FROM invoiceIn ii FROM invoiceIn ii
JOIN time t ON t.dated = ii.issued JOIN time t ON t.dated = ii.issued
JOIN invoiceInTax iit ON ii.id = iit.invoiceInFk JOIN invoiceInTax iit ON ii.id = iit.invoiceInFk