This commit is contained in:
2025-12-30 16:47:12 +01:00
parent 9629eb3c9e
commit 08f17f7ac2

View File

@@ -79,28 +79,32 @@ const inv_s = params.get("inv_s");
const move_cash = params.get("move_cash");
const data = [
{ date: "2025-01-01", value: 12 },
{ date: "2025-01-02", value: 14 },
{ date: "2025-01-03", value: 10 },
{ date: "2025-01-04", value: 18 },
{ date: "2025-01-05", value: 22 },
{ 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 purchaseData = [
{ status: "Draft", count: draft_p, color: "bg-teal-500", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'draft']])},
{ status: "Validated", count: val_p, color: "bg-gray-300", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'quotation']]) },
{ status: "Validated", count: val_p, color: "bg-gray-400", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'quotation']]) },
{ status: "Confirmed", count: conf_p, color: "bg-sky-600", onClick: () => openInTryton("purchase.purchase", undefined, ['tree', 'form'],[['state', '=', 'confirmed']]) },
];
const saleData = [
{ status: "Draft", count: draft_s, color: "bg-teal-500", onClick: () => openInTryton("sale.sale", undefined, ['tree', 'form'],[['state', '=', 'draft']])},
{ status: "Validated", count: val_s, color: "bg-gray-300", onClick: () => openInTryton("sale.sale", undefined, ['tree', 'form'],[['state', '=', 'quotation']]) },
{ status: "Validated", count: val_s, color: "bg-gray-400", onClick: () => openInTryton("sale.sale", undefined, ['tree', 'form'],[['state', '=', 'quotation']]) },
{ status: "Confirmed", count: conf_s, color: "bg-sky-600", onClick: () => openInTryton("sale.sale", undefined, ['tree', 'form'],[['state', '=', 'confirmed']]) },
];
const shipmentData = [
{ status: "Draft", count: shipment_d, color: "bg-teal-500", onClick: () => openInTryton("stock.shipment.in", undefined, ['tree', 'form'],[['state', '=', 'draft']])},
{ status: "Started", count: shipment_s, color: "bg-gray-300", onClick: () => openInTryton("stock.shipment.in", undefined, ['tree', 'form'],[['state', '=', 'started']]) },
{ status: "Started", count: shipment_s, color: "bg-gray-400", onClick: () => openInTryton("stock.shipment.in", undefined, ['tree', 'form'],[['state', '=', 'started']]) },
{ status: "Received", count: shipment_r, color: "bg-sky-600", onClick: () => openInTryton("stock.shipment.in", undefined, ['tree', 'form'],[['state', '=', 'received']]) },
];
@@ -114,7 +118,7 @@ const lotData = [
wh: 'all',
group: 'by_physic'
})},
{ status: "Available", count: lot_a, color: "bg-gray-300", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') },
{ 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') },
];