Skip to content
Snippets Groups Projects
Commit 89ea4945 authored by Simon Leipold's avatar Simon Leipold
Browse files

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

parent e53b7442
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