This commit is contained in:
parent
3e5b6a9ad1
commit
e769081a74
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue