[object Object]

← back to Dw Pitch Followup

Make invoice # on the note chip + notes editor clickable — opens the invoice in FileMaker Pro via fmp:// GotoInvoice

109d6a36fe03143469fe3d3bdf1a4d0789e774bc · 2026-07-15 10:48:35 -0700 · Steve

Files touched

Diff

commit 109d6a36fe03143469fe3d3bdf1a4d0789e774bc
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Jul 15 10:48:35 2026 -0700

    Make invoice # on the note chip + notes editor clickable — opens the invoice in FileMaker Pro via fmp:// GotoInvoice
---
 public/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/index.html b/public/index.html
index 1ffbbe0..8997664 100644
--- a/public/index.html
+++ b/public/index.html
@@ -714,7 +714,7 @@ function paintNoteline(card){
   const el=card.querySelector('[data-noteline]'); const r=card._row;
   if(!el||!r||!r.account) return;
   const d=NOTES_CHIP[String(r.account)]; if(!d){el.setAttribute('hidden','');return}
-  const inv=d.invoice?`🧾 inv #${esc(d.invoice)}`:'🧾 inv —';
+  const inv=d.invoice?`🧾 ${invoiceLink(d.invoice,'inv #'+d.invoice)}`:'🧾 inv —';
   const first=(d.notes||'').split('\n').find(l=>l.trim())||'';
   const noteTxt=first?esc(first.length>110?first.slice(0,110)+'…':first):'<i>no internal notes</i>';
   el.innerHTML=`${inv} · 🗒 ${noteTxt}`;
@@ -751,7 +751,7 @@ async function toggleNotes(card){
 }
 function paintNotes(box,j){
   const cur=box.querySelector('.nb-cur'); if(!cur)return;
-  const head=`<b>Internal notes</b>${j.invoice?` · invoice #${esc(j.invoice)}`:''}`;
+  const head=`<b>Internal notes</b>${j.invoice?` · ${invoiceLink(j.invoice,'invoice #'+j.invoice)}`:''}`;
   const extras=(j.extraReps||[]).length?'\n<i>— other note slots —</i>\n'+j.extraReps.map(esc).join('\n'):'';
   cur.innerHTML=head+'\n'+(j.notes?esc(j.notes):'<i>— none yet —</i>')+extras;
 }

← a923a04 fix: ✓ emailed date chip appears immediately after send — re  ·  back to Dw Pitch Followup  ·  fix(notes): FileMaker note-save silently no-op'd — write rep 229cd17 →