diff --git a/src/App.jsx b/src/App.jsx index 45f1667b..83b99519 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -538,8 +538,7 @@ export default function App() { /> - {/* Cards KPI */} - {cards.map((card) => { + {/* {cards.map((card) => { const Icon = card.icon; const bar_data = [ { label: "Invoiced", invoiced: card.amountInvoiced }, @@ -573,12 +572,84 @@ export default function App() { barRadius={9} /> - {/* + View details - */} + ); - })} + })} */} + + + Sale Invoices + + + + + + {/* TO VALIDATE */} + 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" + > + + {move_cash} + + + Paid + + + + {/* POSTED */} + 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" + > + + {move_cash} + + + Not Paid + + + + + + + + Purchase Invoices + + + + + + {/* TO VALIDATE */} + 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" + > + + {move_cash} + + + Paid + + + + {/* POSTED */} + 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" + > + + {move_cash} + + + Not Paid + + + + + Payments