aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/ark.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 11:15:11 -0700
committerAdam Soltys <[email protected]>2026-09-21 11:15:11 -0700
commit01827dd23f29a6e0d6db673f5dc330cd7f4a6f4f (patch)
treef4634d212fe5a81020afcc51fe8a0cb9fa5f20f9 /src/features/ark.js
parent792b15ffbb90b82f1e6c07ce5430bae18f239f1e (diff)
downloadcoinosv3-01827dd23f29a6e0d6db673f5dc330cd7f4a6f4f.tar.gz
coinosv3-01827dd23f29a6e0d6db673f5dc330cd7f4a6f4f.zip
Point of sale: a paid sale opens its payment detail, which now says bill and tip.
The row finds the ln-receive movement by the invoice it recorded and opens the same detail screen the history page shows; the detail asks features for more (arkMoveDetailExtra) and the till adds Bills, Tips (with the percentage) and the note. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src/features/ark.js')
-rw-r--r--src/features/ark.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index ef5d8fc..4cc0188 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -1403,6 +1403,8 @@ export function arkFeature(ctx) {
(failed ? '' : incoming ? '+' : '-') + fmtAmount(m.amountSat, m.ts / 1000) + ' ' + unitLabel()),
row(t('dateLabel'), new Date(m.ts).toLocaleString()),
ctx.worthLine ? ctx.worthLine(m.amountSat, m.ts / 1000, row) : null,
+ // a feature that knows more about this movement (the till: bill and tip)
+ ctx.hook ? ctx.hook('arkMoveDetailExtra', m, row) : null,
(() => {
const pk = zapNoteFor(m);
const chip = pk ? ctx.hook('profileChip', pk) : null;