|
|
@ -43,13 +43,13 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
switch (args.pt.arguments[0].dataType as FormulaDataTypes) { |
|
|
|
switch (args.pt.arguments[0].dataType as FormulaDataTypes) { |
|
|
|
case FormulaDataTypes.NUMERIC: |
|
|
|
case FormulaDataTypes.NUMERIC: |
|
|
|
cond = `(${condArg}) IS NOT NULL OR (${condArg}) != 0`; |
|
|
|
cond = `(${condArg}) IS NOT NULL AND (${condArg}) != 0`; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case FormulaDataTypes.STRING: |
|
|
|
case FormulaDataTypes.STRING: |
|
|
|
cond = `(${condArg}) IS NOT NULL OR (${condArg}) != ''`; |
|
|
|
cond = `(${condArg}) IS NOT NULL AND (${condArg}) != ''`; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case FormulaDataTypes.BOOLEAN: |
|
|
|
case FormulaDataTypes.BOOLEAN: |
|
|
|
cond = `(${condArg}) IS NOT NULL OR (${condArg}) != false`; |
|
|
|
cond = `(${condArg}) IS NOT NULL AND (${condArg}) != false`; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|