Skip to content

Commit

Permalink
removes business licenses that don't have addressed_license == Yes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrothwell committed Nov 7, 2024
1 parent dfb14bf commit 3ae1d47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/stores/LiStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,14 @@ export const useLiStore = defineStore('LiStore', {

let query;
if (eclipse_location_id) {
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( addressobjectid IN ('`+ eclipse_location_id +`') \
OR address = '${streetaddress}' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) ) \
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( addressobjectid IN ('`+ eclipse_location_id +`') AND addressed_license = 'Yes' \
OR address = '${streetaddress}' AND addressed_license = 'Yes' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) AND addressed_license = 'Yes' ) \
${opaQuery } \
ORDER BY licensetype`;
} else {
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( address = '${streetaddress}' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) ) \
query = `SELECT * FROM BUSINESS_LICENSES WHERE ( address = '${streetaddress}' AND addressed_license = 'Yes' \
OR parcel_id_num IN ( '${ pwd_parcel_id }' ) AND addressed_license = 'Yes' ) \
${opaQuery } \
ORDER BY licensetype`;
}
Expand Down

0 comments on commit 3ae1d47

Please sign in to comment.