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