Skip to content
Snippets Groups Projects
Commit 6920fb0a authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Merge branch 'cherry-pick-89ea4945' into '2021.1.0'

[Projekt: Entwicklung - Neon][TicketNr.: 1081303][SqlBuilder erzeugt fehlerhaftes Statement]

See merge request xrm/basic!996
parents dc824c8a 711bec41
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ ProductUtils.getCurrentProductPrice = function(pid, buySell, onlyStandard, pCurr
ProductUtils.getStockCount = function(pid) {
if (pid != undefined && pid != "")
{
var sum = newSelect("sum(QUANTITY * case IN_OUT when 0 then -1 else 1)")
var sum = newSelect("sum(QUANTITY * case IN_OUT when 0 then -1 else 1 end)")
.from("STOCK")
.whereIfSet("STOCK.PRODUCT_ID", pid)
.cell(true, "0");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment