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