refs #6974 refactor: optimize sale_add
gitea/salix/pipeline/pr-test This commit looks good Details
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Carlos Andrés 2024-05-14 15:39:28 +02:00
parent d0d710f023
commit adaba6ecfb
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ BEGIN
typeFk,
clientFk,
companyFk,
IF (marginComponents IS NULL, 0, CAST(marginComponents + amount + surcharge - total AS DECIMAL(10, 3)))
IF (marginComponents IS NULL,
0,
CAST(marginComponents + amount + surcharge - total AS DECIMAL(10, 3)))
FROM calculatedSales;
END$$
DELIMITER ;