mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 17:13:59 -05:00
Update appointment link with selected invoice links
This commit is contained in:
@@ -24,7 +24,15 @@ function getSelectedInvoiceIds() {
|
||||
|
||||
// Display the result (for demonstration)
|
||||
console.log(JSON.stringify(selectedIds));
|
||||
|
||||
let invoice_link = '';
|
||||
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 selectedIds;
|
||||
return invoice_link;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user