From 8a4d64ffc0d0953a731ad1cb799ea1a0090fbaf8 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 8 Feb 2026 18:25:20 -0500 Subject: [PATCH] Update appointment link with selected invoice links --- assets/javascripts/application.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/application.js b/assets/javascripts/application.js index 809c0dd..11ce176 100644 --- a/assets/javascripts/application.js +++ b/assets/javascripts/application.js @@ -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 = `${value}%0A` + console.log(link); + invoice_link += link; + } // You can return the array or use it as needed - return selectedIds; + return invoice_link; }