linting
parent
2586fb9104
commit
1797567a37
|
|
@ -3,6 +3,7 @@ import { getMaps } from "../../helpers/lotOccupancyDB/getMaps.js";
|
||||||
import * as cacheFunctions from "../../helpers/functions.cache.js";
|
import * as cacheFunctions from "../../helpers/functions.cache.js";
|
||||||
export const handler = (request, response) => {
|
export const handler = (request, response) => {
|
||||||
const lot = {
|
const lot = {
|
||||||
|
lotId: -1,
|
||||||
lotOccupancies: []
|
lotOccupancies: []
|
||||||
};
|
};
|
||||||
const maps = getMaps();
|
const maps = getMaps();
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import * as recordTypes from "../../types/recordTypes";
|
||||||
|
|
||||||
export const handler: RequestHandler = (request, response) => {
|
export const handler: RequestHandler = (request, response) => {
|
||||||
const lot: recordTypes.Lot = {
|
const lot: recordTypes.Lot = {
|
||||||
|
lotId: -1,
|
||||||
lotOccupancies: []
|
lotOccupancies: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export const getFeesByFeeCategory = (lotOccupancy, feeCategory, feeCategoryConta
|
||||||
};
|
};
|
||||||
export const getTransactionTotal = (lotOccupancy) => {
|
export const getTransactionTotal = (lotOccupancy) => {
|
||||||
let transactionTotal = 0;
|
let transactionTotal = 0;
|
||||||
for (const transaction of lotOccupancy.lotOccupancyTransactions) {
|
for (const transaction of (lotOccupancy.lotOccupancyTransactions || [])) {
|
||||||
transactionTotal += transaction.transactionAmount;
|
transactionTotal += transaction.transactionAmount;
|
||||||
}
|
}
|
||||||
return transactionTotal;
|
return transactionTotal;
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ export const getFeesByFeeCategory = (
|
||||||
export const getTransactionTotal = (lotOccupancy: recordTypes.LotOccupancy) => {
|
export const getTransactionTotal = (lotOccupancy: recordTypes.LotOccupancy) => {
|
||||||
let transactionTotal = 0;
|
let transactionTotal = 0;
|
||||||
|
|
||||||
for (const transaction of lotOccupancy.lotOccupancyTransactions) {
|
for (const transaction of (lotOccupancy.lotOccupancyTransactions || [])) {
|
||||||
transactionTotal += transaction.transactionAmount;
|
transactionTotal += transaction.transactionAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,7 @@ export const addWorkOrderLotOccupancy = (
|
||||||
" where workOrderId = ?" +
|
" where workOrderId = ?" +
|
||||||
" and lotOccupancyId = ?"
|
" and lotOccupancyId = ?"
|
||||||
)
|
)
|
||||||
.get(
|
.get(workOrderLotOccupancyForm.workOrderId, workOrderLotOccupancyForm.lotOccupancyId);
|
||||||
workOrderLotOccupancyForm.workOrderId,
|
|
||||||
workOrderLotOccupancyForm.lotOccupancyId
|
|
||||||
);
|
|
||||||
|
|
||||||
if (row) {
|
if (row) {
|
||||||
if (row.recordDelete_timeMillis) {
|
if (row.recordDelete_timeMillis) {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ export interface LotStatus extends Record {
|
||||||
orderNumber?: number;
|
orderNumber?: number;
|
||||||
}
|
}
|
||||||
export interface Lot extends Record {
|
export interface Lot extends Record {
|
||||||
lotId?: number;
|
lotId: number;
|
||||||
lotName?: string;
|
lotName?: string;
|
||||||
lotTypeId?: number;
|
lotTypeId?: number;
|
||||||
lotType?: string;
|
lotType?: string;
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ export interface LotStatus extends Record {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Lot extends Record {
|
export interface Lot extends Record {
|
||||||
lotId?: number;
|
lotId: number;
|
||||||
lotName?: string;
|
lotName?: string;
|
||||||
|
|
||||||
lotTypeId?: number;
|
lotTypeId?: number;
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<form id="form--lot">
|
<form id="form--lot">
|
||||||
<input id="lot--lotId" name="lotId" type="hidden" value="<%= lot.lotId %>" />
|
<input id="lot--lotId" name="lotId" type="hidden" value="<%= isCreate ? "" : lot.lotId %>" />
|
||||||
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-block is-block">
|
<div class="panel-block is-block">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue