fix add grouped fee

pull/11/head
Dan Gowans 2025-04-24 09:15:20 -04:00
parent dcbaad753b
commit 3da2aad21b
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,10 @@ export default async function getFeeCategories(filters, options, connectedDataba
select feeCategoryId from Fees where recordDelete_timeMillis is null and (burialSiteTypeId is null or burialSiteTypeId = ?))`;
sqlParameters.push(filters.burialSiteTypeId);
}
if ((filters.feeCategoryId ?? '') !== '') {
sqlWhereClause += ` and feeCategoryId = ?`;
sqlParameters.push(filters.feeCategoryId);
}
const feeCategories = database
.prepare(`select feeCategoryId, feeCategory, isGroupedFee, orderNumber
from FeeCategories

View File

@ -44,6 +44,11 @@ export default async function getFeeCategories(
sqlParameters.push(filters.burialSiteTypeId)
}
if ((filters.feeCategoryId ?? '') !== '') {
sqlWhereClause += ` and feeCategoryId = ?`
sqlParameters.push(filters.feeCategoryId)
}
const feeCategories = database
.prepare(
`select feeCategoryId, feeCategory, isGroupedFee, orderNumber