From 71c17debc4da9a2a2a4597c5b4178136505ecb34 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 3 Jan 2026 17:16:56 +0100 Subject: [PATCH] 03.01.26 --- src/App.jsx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index b244bf4b..a09ffcfb 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -82,18 +82,13 @@ const inv_s_p = params.get("inv_s_p"); const inv_s_np = params.get("inv_s_np"); const pay_posted = params.get("pay_posted"); const pay_val = params.get("pay_val"); +const eurusd = params.getAll("eurusd").map(Number); +const eurusd_date = params.getAll("eurusd_date"); -const data = [ - { date: "2025-01-01", value: 1.2 }, - { date: "2025-01-02", value: 1.18 }, - { date: "2025-01-03", value: 1.11 }, - { date: "2025-01-04", value: 1.23 }, - { date: "2025-01-05", value: 1.14 }, - { date: "2025-01-06", value: 1.12 }, - { date: "2025-01-07", value: 1.17 }, - { date: "2025-01-08", value: 1.09 }, - { date: "2025-01-09", value: 1.13 }, -]; +const data = eurusd.map((value, i) => ({ + date: eurusd_date[i], + value +})); const purchaseData = [ { status: "Draft", count: draft_p, color: "bg-teal-500", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'draft']])},