Fix client export to only show licnesed software by the selected client only

This commit is contained in:
johnnyq 2025-03-29 16:22:48 -04:00
parent 2f82647f5e
commit 309ad724ec
1 changed files with 4 additions and 0 deletions

View File

@ -716,6 +716,8 @@ if (isset($_POST["export_client_pdf"])) {
software ON software_contacts.software_id = software.software_id
WHERE software_archived_at IS NULL
AND contact_archived_at IS NULL
AND software_client_id = $client_id
AND contact_client_id = $client_id
ORDER BY
contact_name, software_name;"
);
@ -732,6 +734,8 @@ if (isset($_POST["export_client_pdf"])) {
software ON software_assets.software_id = software.software_id
WHERE software_archived_at IS NULL
AND asset_archived_at IS NULL
AND software_client_id = $client_id
AND asset_client_id = $client_id
ORDER BY
asset_name, software_name;"
);