refs #5835 refactor
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-11-23 11:31:00 +01:00
parent 048e3089cd
commit 6b2c1e09de
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module.exports = Self => {
LEFT JOIN ( LEFT JOIN (
SELECT SUM(iit.taxableBase) totalTaxableBase, SELECT SUM(iit.taxableBase) totalTaxableBase,
CAST( 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) AS DECIMAL(10, 2)
) totalVat ) totalVat
FROM vn.invoiceInTax iit FROM vn.invoiceInTax iit