This commit is contained in:
parent
048e3089cd
commit
6b2c1e09de
|
@ -32,7 +32,7 @@ module.exports = Self => {
|
|||
LEFT JOIN (
|
||||
SELECT SUM(iit.taxableBase) totalTaxableBase,
|
||||
CAST(
|
||||
SUM(COALESCE(iit.taxableBase * (1 + (ti.PorcentajeIva / 100)), iit.taxableBase))
|
||||
SUM(IFNULL(iit.taxableBase * (1 + (ti.PorcentajeIva / 100)), iit.taxableBase))
|
||||
AS DECIMAL(10, 2)
|
||||
) totalVat
|
||||
FROM vn.invoiceInTax iit
|
||||
|
|
Loading…
Reference in New Issue