03.01.26
This commit is contained in:
38
src/App.jsx
38
src/App.jsx
@@ -121,10 +121,29 @@ const lotData = [
|
|||||||
type: 'matched',
|
type: 'matched',
|
||||||
state: 'all',
|
state: 'all',
|
||||||
wh: 'all',
|
wh: 'all',
|
||||||
group: 'by_physic'
|
group: 'by_physic',
|
||||||
|
origin: 'physic'
|
||||||
|
})},
|
||||||
|
{ status: "Available", count: lot_a, color: "bg-gray-400", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[["r_lot_matched", ">", 0]],'exec_window',{
|
||||||
|
purchase: null,
|
||||||
|
sale: null,
|
||||||
|
shipment: null,
|
||||||
|
type: 'not matched',
|
||||||
|
state: 'all',
|
||||||
|
wh: 'all',
|
||||||
|
group: 'by_physic',
|
||||||
|
origin: 'physic'
|
||||||
|
})},
|
||||||
|
{ status: "All", count: lot_al, color: "bg-sky-600", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[["r_lot_matched", ">", 0]],'exec_window',{
|
||||||
|
purchase: null,
|
||||||
|
sale: null,
|
||||||
|
shipment: null,
|
||||||
|
type: 'all',
|
||||||
|
state: 'all',
|
||||||
|
wh: 'all',
|
||||||
|
group: 'by_physic',
|
||||||
|
origin: 'physic'
|
||||||
})},
|
})},
|
||||||
{ status: "Available", count: lot_a, color: "bg-gray-400", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') },
|
|
||||||
{ status: "All", count: lot_al, color: "bg-sky-600", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const kpis = [
|
const kpis = [
|
||||||
@@ -513,6 +532,7 @@ export default function App() {
|
|||||||
<div
|
<div
|
||||||
key={idx}
|
key={idx}
|
||||||
className="flex justify-between items-center p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer"
|
className="flex justify-between items-center p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer"
|
||||||
|
onClick={() => openInTryton('currency.currency', undefined, ["form"], [[('id','=',2)]])}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
@@ -602,7 +622,7 @@ export default function App() {
|
|||||||
<div className="grid grid-rows-2 gap-3">
|
<div className="grid grid-rows-2 gap-3">
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
|
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','=','paid'),('type','=','in')]])}
|
||||||
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"
|
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">
|
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
|
||||||
@@ -614,7 +634,7 @@ export default function App() {
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
|
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','!=','paid'),('type','=','in')]])}
|
||||||
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"
|
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">
|
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
|
||||||
@@ -636,7 +656,7 @@ export default function App() {
|
|||||||
<div className="grid grid-rows-2 gap-3">
|
<div className="grid grid-rows-2 gap-3">
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
|
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','=','paid'),('type','=','out')]])}
|
||||||
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"
|
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">
|
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
|
||||||
@@ -648,7 +668,7 @@ export default function App() {
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
|
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','!=','paid'),('type','=','out')]])}
|
||||||
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"
|
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">
|
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
|
||||||
@@ -671,7 +691,7 @@ export default function App() {
|
|||||||
|
|
||||||
{/* TO VALIDATE */}
|
{/* TO VALIDATE */}
|
||||||
<button
|
<button
|
||||||
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
|
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-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
|
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">
|
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
|
||||||
@@ -684,7 +704,7 @@ export default function App() {
|
|||||||
|
|
||||||
{/* POSTED */}
|
{/* POSTED */}
|
||||||
<button
|
<button
|
||||||
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
|
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"
|
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">
|
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
|
||||||
|
|||||||
Reference in New Issue
Block a user