master #2455
|
@ -56,7 +56,9 @@ BEGIN
|
||||||
typeFk,
|
typeFk,
|
||||||
clientFk,
|
clientFk,
|
||||||
companyFk,
|
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;
|
FROM calculatedSales;
|
||||||
END$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
Loading…
Reference in New Issue