linting
parent
4b771f102c
commit
c621df5c17
|
|
@ -1,7 +1,7 @@
|
|||
import * as configFunctions from './functions.config.js';
|
||||
import { getLot } from '../database/getLot.js';
|
||||
import { getLotOccupancy } from '../database/getLotOccupancy.js';
|
||||
import { getWorkOrder } from '../database/getWorkOrder.js';
|
||||
import * as configFunctions from './functions.config.js';
|
||||
const screenPrintConfigs = {
|
||||
lotOccupancy: {
|
||||
title: `${configFunctions.getProperty('aliases.lot')} ${configFunctions.getProperty('aliases.occupancy')} Print`,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import * as configFunctions from './functions.config.js'
|
||||
|
||||
import { getLot } from '../database/getLot.js'
|
||||
import { getLotOccupancy } from '../database/getLotOccupancy.js'
|
||||
import { getWorkOrder } from '../database/getWorkOrder.js'
|
||||
|
||||
import * as configFunctions from './functions.config.js'
|
||||
|
||||
interface PrintConfig {
|
||||
title: string
|
||||
params: string[]
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ export function getLotNameWhereClause(lotName = '', lotNameSearchType, lotsTable
|
|||
if (lotName !== '') {
|
||||
switch (lotNameSearchType) {
|
||||
case 'startsWith': {
|
||||
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like ? || '%'";
|
||||
sqlWhereClause += ` and ${lotsTableAlias}.lotName like ? || '%'`;
|
||||
sqlParameters.push(lotName);
|
||||
break;
|
||||
}
|
||||
case 'endsWith': {
|
||||
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like '%' || ?";
|
||||
sqlWhereClause += ` and ${lotsTableAlias}.lotName like '%' || ?`;
|
||||
sqlParameters.push(lotName);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ export function getLotNameWhereClause(
|
|||
if (lotName !== '') {
|
||||
switch (lotNameSearchType) {
|
||||
case 'startsWith': {
|
||||
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like ? || '%'"
|
||||
sqlWhereClause += ` and ${lotsTableAlias}.lotName like ? || '%'`
|
||||
sqlParameters.push(lotName)
|
||||
break
|
||||
}
|
||||
case 'endsWith': {
|
||||
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like '%' || ?"
|
||||
sqlWhereClause += ` and ${lotsTableAlias}.lotName like '%' || ?`
|
||||
sqlParameters.push(lotName)
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue