Update appointment link with selected invoice links

This commit is contained in:
2026-02-08 18:25:20 -05:00
parent 5d7d9a81bb
commit 8a4d64ffc0

View File

@@ -25,6 +25,14 @@ function getSelectedInvoiceIds() {
// Display the result (for demonstration) // Display the result (for demonstration)
console.log(JSON.stringify(selectedIds)); console.log(JSON.stringify(selectedIds));
// You can return the array or use it as needed let invoice_link = '';
return selectedIds; let link = '';
for (const value of selectedIds) {
link = `<a href="${window.location.origin}/invoices/${value}">${value}</a>%0A`
console.log(link);
invoice_link += link;
}
// You can return the array or use it as needed
return invoice_link;
} }