parent
40f6079d32
commit
95fd36be87
|
|
@ -1091,8 +1091,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyFee', {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyFee', {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
feeId
|
feeId
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
||||||
renderLotOccupancyFees();
|
renderLotOccupancyFees();
|
||||||
|
|
@ -1174,7 +1175,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>×</td>' +
|
'<td>×</td>' +
|
||||||
'<td class="has-text-right">' +
|
'<td class="has-text-right">' +
|
||||||
lotOccupancyFee.quantity +
|
lotOccupancyFee.quantity.toString() +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>=</td>') +
|
'<td>=</td>') +
|
||||||
'<td class="has-text-right">$' +
|
'<td class="has-text-right">$' +
|
||||||
|
|
@ -1216,8 +1217,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
feeId,
|
feeId,
|
||||||
quantity
|
quantity
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
||||||
renderLotOccupancyFees();
|
renderLotOccupancyFees();
|
||||||
|
|
@ -1273,7 +1275,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function filterFees() {
|
function filterFees() {
|
||||||
var _a, _b, _c, _d, _e;
|
var _a, _b, _c, _d, _e, _f;
|
||||||
const filterStringPieces = feeFilterElement.value
|
const filterStringPieces = feeFilterElement.value
|
||||||
.trim()
|
.trim()
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
|
|
@ -1296,9 +1298,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let includeFee = true;
|
let includeFee = true;
|
||||||
const feeSearchString = (((_b = fee.feeName) !== null && _b !== void 0 ? _b : '') +
|
const feeSearchString = (((_b = feeCategory.feeCategory) !== null && _b !== void 0 ? _b : '') +
|
||||||
' ' +
|
' ' +
|
||||||
((_c = fee.feeDescription) !== null && _c !== void 0 ? _c : '')).toLowerCase();
|
((_c = fee.feeName) !== null && _c !== void 0 ? _c : '') +
|
||||||
|
' ' +
|
||||||
|
((_d = fee.feeDescription) !== null && _d !== void 0 ? _d : '')).toLowerCase();
|
||||||
for (const filterStringPiece of filterStringPieces) {
|
for (const filterStringPiece of filterStringPieces) {
|
||||||
if (!feeSearchString.includes(filterStringPiece)) {
|
if (!feeSearchString.includes(filterStringPiece)) {
|
||||||
includeFee = false;
|
includeFee = false;
|
||||||
|
|
@ -1317,11 +1321,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
panelBlockElement.href = '#';
|
panelBlockElement.href = '#';
|
||||||
panelBlockElement.innerHTML =
|
panelBlockElement.innerHTML =
|
||||||
'<strong>' +
|
'<strong>' +
|
||||||
cityssm.escapeHTML((_d = fee.feeName) !== null && _d !== void 0 ? _d : '') +
|
cityssm.escapeHTML((_e = fee.feeName) !== null && _e !== void 0 ? _e : '') +
|
||||||
'</strong><br />' +
|
'</strong><br />' +
|
||||||
'<small>' +
|
'<small>' +
|
||||||
cityssm
|
cityssm
|
||||||
.escapeHTML((_e = fee.feeDescription) !== null && _e !== void 0 ? _e : '')
|
.escapeHTML((_f = fee.feeDescription) !== null && _f !== void 0 ? _f : '')
|
||||||
.replace(/\n/g, '<br />') +
|
.replace(/\n/g, '<br />') +
|
||||||
'</small>';
|
'</small>';
|
||||||
panelBlockElement.addEventListener('click', tryAddFee);
|
panelBlockElement.addEventListener('click', tryAddFee);
|
||||||
|
|
@ -1338,7 +1342,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
feeFilterResultsElement = modalElement.querySelector('#resultsContainer--feeSelect');
|
feeFilterResultsElement = modalElement.querySelector('#resultsContainer--feeSelect');
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doGetFees', {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doGetFees', {
|
||||||
lotOccupancyId
|
lotOccupancyId
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
feeCategories = responseJSON.feeCategories;
|
feeCategories = responseJSON.feeCategories;
|
||||||
feeFilterElement.disabled = false;
|
feeFilterElement.disabled = false;
|
||||||
feeFilterElement.addEventListener('keyup', filterFees);
|
feeFilterElement.addEventListener('keyup', filterFees);
|
||||||
|
|
@ -1373,8 +1378,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyTransaction', {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyTransaction', {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
transactionIndex
|
transactionIndex
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
||||||
renderLotOccupancyTransactions();
|
renderLotOccupancyTransactions();
|
||||||
|
|
@ -1460,7 +1466,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
;
|
;
|
||||||
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = '$' + transactionGrandTotal.toFixed(2);
|
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = '$' + transactionGrandTotal.toFixed(2);
|
||||||
const feeGrandTotal = getFeeGrandTotal();
|
const feeGrandTotal = getFeeGrandTotal();
|
||||||
if (feeGrandTotal > transactionGrandTotal) {
|
if (feeGrandTotal.toFixed(2) !== transactionGrandTotal.toFixed(2)) {
|
||||||
lotOccupancyTransactionsContainerElement.insertAdjacentHTML('afterbegin', '<div class="message is-warning">' +
|
lotOccupancyTransactionsContainerElement.insertAdjacentHTML('afterbegin', '<div class="message is-warning">' +
|
||||||
'<div class="message-body">' +
|
'<div class="message-body">' +
|
||||||
'<div class="level">' +
|
'<div class="level">' +
|
||||||
|
|
@ -1479,8 +1485,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
let addCloseModalFunction;
|
let addCloseModalFunction;
|
||||||
function doAddTransaction(submitEvent) {
|
function doAddTransaction(submitEvent) {
|
||||||
submitEvent.preventDefault();
|
submitEvent.preventDefault();
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doAddLotOccupancyTransaction', submitEvent.currentTarget, (responseJSON) => {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doAddLotOccupancyTransaction', submitEvent.currentTarget, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
||||||
addCloseModalFunction();
|
addCloseModalFunction();
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,9 @@ function deleteLotOccupancyFee(clickEvent) {
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyFee', {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyFee', {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
feeId
|
feeId
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
||||||
renderLotOccupancyFees();
|
renderLotOccupancyFees();
|
||||||
|
|
@ -103,7 +104,7 @@ function renderLotOccupancyFees() {
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>×</td>' +
|
'<td>×</td>' +
|
||||||
'<td class="has-text-right">' +
|
'<td class="has-text-right">' +
|
||||||
lotOccupancyFee.quantity +
|
lotOccupancyFee.quantity.toString() +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>=</td>') +
|
'<td>=</td>') +
|
||||||
'<td class="has-text-right">$' +
|
'<td class="has-text-right">$' +
|
||||||
|
|
@ -145,8 +146,9 @@ function renderLotOccupancyFees() {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
feeId,
|
feeId,
|
||||||
quantity
|
quantity
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
lotOccupancyFees = responseJSON.lotOccupancyFees;
|
||||||
renderLotOccupancyFees();
|
renderLotOccupancyFees();
|
||||||
|
|
@ -202,7 +204,7 @@ function renderLotOccupancyFees() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function filterFees() {
|
function filterFees() {
|
||||||
var _a, _b, _c, _d, _e;
|
var _a, _b, _c, _d, _e, _f;
|
||||||
const filterStringPieces = feeFilterElement.value
|
const filterStringPieces = feeFilterElement.value
|
||||||
.trim()
|
.trim()
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
|
|
@ -225,9 +227,11 @@ function renderLotOccupancyFees() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let includeFee = true;
|
let includeFee = true;
|
||||||
const feeSearchString = (((_b = fee.feeName) !== null && _b !== void 0 ? _b : '') +
|
const feeSearchString = (((_b = feeCategory.feeCategory) !== null && _b !== void 0 ? _b : '') +
|
||||||
' ' +
|
' ' +
|
||||||
((_c = fee.feeDescription) !== null && _c !== void 0 ? _c : '')).toLowerCase();
|
((_c = fee.feeName) !== null && _c !== void 0 ? _c : '') +
|
||||||
|
' ' +
|
||||||
|
((_d = fee.feeDescription) !== null && _d !== void 0 ? _d : '')).toLowerCase();
|
||||||
for (const filterStringPiece of filterStringPieces) {
|
for (const filterStringPiece of filterStringPieces) {
|
||||||
if (!feeSearchString.includes(filterStringPiece)) {
|
if (!feeSearchString.includes(filterStringPiece)) {
|
||||||
includeFee = false;
|
includeFee = false;
|
||||||
|
|
@ -246,11 +250,11 @@ function renderLotOccupancyFees() {
|
||||||
panelBlockElement.href = '#';
|
panelBlockElement.href = '#';
|
||||||
panelBlockElement.innerHTML =
|
panelBlockElement.innerHTML =
|
||||||
'<strong>' +
|
'<strong>' +
|
||||||
cityssm.escapeHTML((_d = fee.feeName) !== null && _d !== void 0 ? _d : '') +
|
cityssm.escapeHTML((_e = fee.feeName) !== null && _e !== void 0 ? _e : '') +
|
||||||
'</strong><br />' +
|
'</strong><br />' +
|
||||||
'<small>' +
|
'<small>' +
|
||||||
cityssm
|
cityssm
|
||||||
.escapeHTML((_e = fee.feeDescription) !== null && _e !== void 0 ? _e : '')
|
.escapeHTML((_f = fee.feeDescription) !== null && _f !== void 0 ? _f : '')
|
||||||
.replace(/\n/g, '<br />') +
|
.replace(/\n/g, '<br />') +
|
||||||
'</small>';
|
'</small>';
|
||||||
panelBlockElement.addEventListener('click', tryAddFee);
|
panelBlockElement.addEventListener('click', tryAddFee);
|
||||||
|
|
@ -267,7 +271,8 @@ function renderLotOccupancyFees() {
|
||||||
feeFilterResultsElement = modalElement.querySelector('#resultsContainer--feeSelect');
|
feeFilterResultsElement = modalElement.querySelector('#resultsContainer--feeSelect');
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doGetFees', {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doGetFees', {
|
||||||
lotOccupancyId
|
lotOccupancyId
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
feeCategories = responseJSON.feeCategories;
|
feeCategories = responseJSON.feeCategories;
|
||||||
feeFilterElement.disabled = false;
|
feeFilterElement.disabled = false;
|
||||||
feeFilterElement.addEventListener('keyup', filterFees);
|
feeFilterElement.addEventListener('keyup', filterFees);
|
||||||
|
|
@ -302,8 +307,9 @@ function deleteLotOccupancyTransaction(clickEvent) {
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyTransaction', {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doDeleteLotOccupancyTransaction', {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
transactionIndex
|
transactionIndex
|
||||||
}, (responseJSON) => {
|
}, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
||||||
renderLotOccupancyTransactions();
|
renderLotOccupancyTransactions();
|
||||||
|
|
@ -389,7 +395,7 @@ function renderLotOccupancyTransactions() {
|
||||||
;
|
;
|
||||||
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = '$' + transactionGrandTotal.toFixed(2);
|
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = '$' + transactionGrandTotal.toFixed(2);
|
||||||
const feeGrandTotal = getFeeGrandTotal();
|
const feeGrandTotal = getFeeGrandTotal();
|
||||||
if (feeGrandTotal > transactionGrandTotal) {
|
if (feeGrandTotal.toFixed(2) !== transactionGrandTotal.toFixed(2)) {
|
||||||
lotOccupancyTransactionsContainerElement.insertAdjacentHTML('afterbegin', '<div class="message is-warning">' +
|
lotOccupancyTransactionsContainerElement.insertAdjacentHTML('afterbegin', '<div class="message is-warning">' +
|
||||||
'<div class="message-body">' +
|
'<div class="message-body">' +
|
||||||
'<div class="level">' +
|
'<div class="level">' +
|
||||||
|
|
@ -408,8 +414,9 @@ document
|
||||||
let addCloseModalFunction;
|
let addCloseModalFunction;
|
||||||
function doAddTransaction(submitEvent) {
|
function doAddTransaction(submitEvent) {
|
||||||
submitEvent.preventDefault();
|
submitEvent.preventDefault();
|
||||||
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doAddLotOccupancyTransaction', submitEvent.currentTarget, (responseJSON) => {
|
cityssm.postJSON(los.urlPrefix + '/lotOccupancies/doAddLotOccupancyTransaction', submitEvent.currentTarget, (rawResponseJSON) => {
|
||||||
var _a;
|
var _a;
|
||||||
|
const responseJSON = rawResponseJSON;
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions;
|
||||||
addCloseModalFunction();
|
addCloseModalFunction();
|
||||||
|
|
|
||||||
|
|
@ -47,11 +47,13 @@ function deleteLotOccupancyFee(clickEvent: Event): void {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
feeId
|
feeId
|
||||||
},
|
},
|
||||||
(responseJSON: {
|
(rawResponseJSON) => {
|
||||||
success: boolean
|
const responseJSON = rawResponseJSON as {
|
||||||
errorMessage?: string
|
success: boolean
|
||||||
lotOccupancyFees?: recordTypes.LotOccupancyFee[]
|
errorMessage?: string
|
||||||
}) => {
|
lotOccupancyFees?: recordTypes.LotOccupancyFee[]
|
||||||
|
}
|
||||||
|
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyFees = responseJSON.lotOccupancyFees!
|
lotOccupancyFees = responseJSON.lotOccupancyFees!
|
||||||
renderLotOccupancyFees()
|
renderLotOccupancyFees()
|
||||||
|
|
@ -140,7 +142,7 @@ function renderLotOccupancyFees(): void {
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>×</td>' +
|
'<td>×</td>' +
|
||||||
'<td class="has-text-right">' +
|
'<td class="has-text-right">' +
|
||||||
lotOccupancyFee.quantity +
|
lotOccupancyFee.quantity!.toString() +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>=</td>') +
|
'<td>=</td>') +
|
||||||
'<td class="has-text-right">$' +
|
'<td class="has-text-right">$' +
|
||||||
|
|
@ -205,11 +207,13 @@ document.querySelector('#button--addFee')?.addEventListener('click', () => {
|
||||||
feeId,
|
feeId,
|
||||||
quantity
|
quantity
|
||||||
},
|
},
|
||||||
(responseJSON: {
|
(rawResponseJSON) => {
|
||||||
success: boolean
|
const responseJSON = rawResponseJSON as {
|
||||||
errorMessage?: string
|
success: boolean
|
||||||
lotOccupancyFees?: recordTypes.LotOccupancyFee[]
|
errorMessage?: string
|
||||||
}) => {
|
lotOccupancyFees?: recordTypes.LotOccupancyFee[]
|
||||||
|
}
|
||||||
|
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyFees = responseJSON.lotOccupancyFees!
|
lotOccupancyFees = responseJSON.lotOccupancyFees!
|
||||||
renderLotOccupancyFees()
|
renderLotOccupancyFees()
|
||||||
|
|
@ -321,6 +325,8 @@ document.querySelector('#button--addFee')?.addEventListener('click', () => {
|
||||||
let includeFee = true
|
let includeFee = true
|
||||||
|
|
||||||
const feeSearchString = (
|
const feeSearchString = (
|
||||||
|
(feeCategory.feeCategory ?? '') +
|
||||||
|
' ' +
|
||||||
(fee.feeName ?? '') +
|
(fee.feeName ?? '') +
|
||||||
' ' +
|
' ' +
|
||||||
(fee.feeDescription ?? '')
|
(fee.feeDescription ?? '')
|
||||||
|
|
@ -381,7 +387,11 @@ document.querySelector('#button--addFee')?.addEventListener('click', () => {
|
||||||
{
|
{
|
||||||
lotOccupancyId
|
lotOccupancyId
|
||||||
},
|
},
|
||||||
(responseJSON: { feeCategories: recordTypes.FeeCategory[] }) => {
|
(rawResponseJSON) => {
|
||||||
|
const responseJSON = rawResponseJSON as {
|
||||||
|
feeCategories: recordTypes.FeeCategory[]
|
||||||
|
}
|
||||||
|
|
||||||
feeCategories = responseJSON.feeCategories
|
feeCategories = responseJSON.feeCategories
|
||||||
|
|
||||||
feeFilterElement.disabled = false
|
feeFilterElement.disabled = false
|
||||||
|
|
@ -436,11 +446,13 @@ function deleteLotOccupancyTransaction(clickEvent: Event): void {
|
||||||
lotOccupancyId,
|
lotOccupancyId,
|
||||||
transactionIndex
|
transactionIndex
|
||||||
},
|
},
|
||||||
(responseJSON: {
|
(rawResponseJSON) => {
|
||||||
success: boolean
|
const responseJSON = rawResponseJSON as {
|
||||||
errorMessage?: string
|
success: boolean
|
||||||
lotOccupancyTransactions?: recordTypes.LotOccupancyTransaction[]
|
errorMessage?: string
|
||||||
}) => {
|
lotOccupancyTransactions?: recordTypes.LotOccupancyTransaction[]
|
||||||
|
}
|
||||||
|
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions!
|
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions!
|
||||||
renderLotOccupancyTransactions()
|
renderLotOccupancyTransactions()
|
||||||
|
|
@ -543,7 +555,7 @@ function renderLotOccupancyTransactions(): void {
|
||||||
|
|
||||||
const feeGrandTotal = getFeeGrandTotal()
|
const feeGrandTotal = getFeeGrandTotal()
|
||||||
|
|
||||||
if (feeGrandTotal > transactionGrandTotal) {
|
if (feeGrandTotal.toFixed(2) !== transactionGrandTotal.toFixed(2)) {
|
||||||
lotOccupancyTransactionsContainerElement.insertAdjacentHTML(
|
lotOccupancyTransactionsContainerElement.insertAdjacentHTML(
|
||||||
'afterbegin',
|
'afterbegin',
|
||||||
'<div class="message is-warning">' +
|
'<div class="message is-warning">' +
|
||||||
|
|
@ -571,11 +583,13 @@ document
|
||||||
cityssm.postJSON(
|
cityssm.postJSON(
|
||||||
los.urlPrefix + '/lotOccupancies/doAddLotOccupancyTransaction',
|
los.urlPrefix + '/lotOccupancies/doAddLotOccupancyTransaction',
|
||||||
submitEvent.currentTarget,
|
submitEvent.currentTarget,
|
||||||
(responseJSON: {
|
(rawResponseJSON) => {
|
||||||
success: boolean
|
const responseJSON = rawResponseJSON as {
|
||||||
errorMessage?: string
|
success: boolean
|
||||||
lotOccupancyTransactions?: recordTypes.LotOccupancyTransaction[]
|
errorMessage?: string
|
||||||
}) => {
|
lotOccupancyTransactions?: recordTypes.LotOccupancyTransaction[]
|
||||||
|
}
|
||||||
|
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions!
|
lotOccupancyTransactions = responseJSON.lotOccupancyTransactions!
|
||||||
addCloseModalFunction()
|
addCloseModalFunction()
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue