This commit is contained in:
2026-01-03 17:16:56 +01:00
parent fd23cd33db
commit 71c17debc4

View File

@@ -82,18 +82,13 @@ const inv_s_p = params.get("inv_s_p");
const inv_s_np = params.get("inv_s_np"); const inv_s_np = params.get("inv_s_np");
const pay_posted = params.get("pay_posted"); const pay_posted = params.get("pay_posted");
const pay_val = params.get("pay_val"); const pay_val = params.get("pay_val");
const eurusd = params.getAll("eurusd").map(Number);
const eurusd_date = params.getAll("eurusd_date");
const data = [ const data = eurusd.map((value, i) => ({
{ date: "2025-01-01", value: 1.2 }, date: eurusd_date[i],
{ date: "2025-01-02", value: 1.18 }, value
{ 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 purchaseData = [ const purchaseData = [
{ status: "Draft", count: draft_p, color: "bg-teal-500", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'draft']])}, { status: "Draft", count: draft_p, color: "bg-teal-500", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'draft']])},