6974-sale_add #2452

Merged
carlosap merged 2 commits from 6974-sale_add into master 2024-05-14 15:06:36 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit adaba6ecfb - Show all commits

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 ;