This commit is contained in:
2026-01-03 13:24:31 +01:00
parent c57fa8155d
commit c7a806d0fc

View File

@@ -75,8 +75,13 @@ const lot_m = params.get("lot_m");
const lot_a = params.get("lot_a");
const lot_al = params.get("lot_al");
const inv_p = params.get("inv_p");
const inv_p_p = params.get("inv_p_p");
const inv_p_np = params.get("inv_p_np");
const inv_s = params.get("inv_s");
const move_cash = params.get("move_cash");
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 data = [
{ date: "2025-01-01", value: 1.2 },
@@ -597,26 +602,24 @@ export default function App() {
<div className="grid grid-rows-2 gap-3">
{/* TO VALIDATE */}
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
{move_cash}
{inv_p_p}
</span>
<span className="mt-1 text-sm font-semibold tracking-wide text-teal-600">
Paid
</span>
</button>
{/* POSTED */}
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-sky-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
{move_cash}
{inv_p_np}
</span>
<span className="mt-1 text-sm font-semibold tracking-wide text-sky-600">
Not Paid
@@ -633,26 +636,24 @@ export default function App() {
<div className="grid grid-rows-2 gap-3">
{/* TO VALIDATE */}
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
{move_cash}
{inv_s_p}
</span>
<span className="mt-1 text-sm font-semibold tracking-wide text-teal-600">
Paid
</span>
</button>
{/* POSTED */}
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-sky-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
{move_cash}
{inv_s_np}
</span>
<span className="mt-1 text-sm font-semibold tracking-wide text-sky-600">
Not Paid
@@ -675,7 +676,7 @@ export default function App() {
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
{move_cash}
{pay_val}
</span>
<span className="mt-1 text-sm font-semibold tracking-wide text-teal-600">
To validate
@@ -688,7 +689,7 @@ export default function App() {
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-sky-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
{move_cash}
{pay_posted}
</span>
<span className="mt-1 text-sm font-semibold tracking-wide text-sky-600">
Posted