feat: refs #6500 procRefactor8 #2131
|
@ -7,10 +7,10 @@ BEGIN
|
|||
SELECT
|
||||
t.year,
|
||||
t.month,
|
||||
pagos.dollars,
|
||||
pagos.changePractical,
|
||||
pay.dollars,
|
||||
pay.changePractical,
|
||||
CAST(SUM(iit.foreignValue ) / SUM(iit.taxableBase) AS DECIMAL(5,4)) cambioTeorico,
|
||||
pagos.changeOfficial
|
||||
pay.changeOfficial
|
||||
FROM invoiceIn ii
|
||||
JOIN time t ON t.dated = ii.issued
|
||||
JOIN invoiceInTax iit ON ii.id = iit.invoiceInFk
|
||||
|
@ -28,7 +28,7 @@ BEGIN
|
|||
WHERE p.divisa
|
||||
AND c.code = 'USD'
|
||||
GROUP BY t.year, t.month
|
||||
) pagos ON t.year = pagos.year AND t.month = pagos.MONTH
|
||||
) pay ON t.year = pay.year AND t.month = pay.month
|
||||
robert marked this conversation as resolved
Outdated
|
||||
JOIN currency c ON c.id = ii.currencyFk
|
||||
WHERE c.code = 'USD'
|
||||
AND iit.foreignValue
|
||||
|
|
Loading…
Reference in New Issue
En la medida de lo posible no se debe de escribir en español, en este caso el nombre de la subconsulta es totalmente evitable que este en español, traducir