From 881fed1895f5687f90d6fbb0b8fe45e4eb5fc38c Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sun, 5 Jan 2025 14:35:23 -0300 Subject: [PATCH] feat(transactions:action-bar): add more math options in a dropdown --- .../cotton/ui/transactions_action_bar.html | 304 ++++++++++++++---- 1 file changed, 239 insertions(+), 65 deletions(-) diff --git a/app/templates/cotton/ui/transactions_action_bar.html b/app/templates/cotton/ui/transactions_action_bar.html index ec98c03..e3adbbe 100644 --- a/app/templates/cotton/ui/transactions_action_bar.html +++ b/app/templates/cotton/ui/transactions_action_bar.html @@ -11,78 +11,252 @@
{% spaceless %} -
+
+ + +
+
+
+ + +
- -
-
-
- - -
- -
-
+ {# #} +
+ + set realTotal to realTotal / 100 + put realTotal.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 40}) into #real-total-front's innerText + put realTotal.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 40}) into #calc-menu-real-total's innerText + set flatTotal to flatTotal / 100 + put flatTotal.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 40}) into #calc-menu-flat-total's innerText + log amountValues + put Math.max.apply(Math, amountValues) into #calc-menu-max's innerText + put Math.min.apply(Math, amountValues) into #calc-menu-min's innerText + put flatTotal / amountValues.length into #calc-menu-mean's innerText + put amountValues.length into #calc-menu-count's innerText + end" + > + + + + +
{% endspaceless %}