diff --git a/src/app/(dashboard)/hit-parade/client.tsx b/src/app/(dashboard)/hit-parade/client.tsx index 80b3581..722da42 100644 --- a/src/app/(dashboard)/hit-parade/client.tsx +++ b/src/app/(dashboard)/hit-parade/client.tsx @@ -107,7 +107,7 @@ export function HitParadeClient({ dateDebut, dateFin, pivotted }: Props) { key={k} onClick={sortable ? () => handleSort(sortable) : undefined} className={[ - "px-4 py-2 text-center text-xs font-semibold whitespace-nowrap select-none", + "px-2 py-2 text-center text-xs font-semibold whitespace-nowrap select-none", sortable ? "cursor-pointer" : "", isActive ? activeBg : `${groupBg} text-gray-600`, ].join(" ")} @@ -209,10 +209,10 @@ export function HitParadeClient({ dateDebut, dateFin, pivotted }: Props) { - - - - + + + + @@ -226,64 +226,64 @@ export function HitParadeClient({ dateDebut, dateFin, pivotted }: Props) { - + - + - + {sorted.map((row, idx) => ( - - - - + + + - - - - - - - - - - - - @@ -295,17 +295,17 @@ export function HitParadeClient({ dateDebut, dateFin, pivotted }: Props) { TOTAL — {sorted.length} articles - - - - - - - - - - - + + + + + + + + + + +
CodeDésignationFournisseurNomenclatureCodeDésignationFournisseurNom. Frouard / Nancy — 292
% Marge% Marge % Marge% Marge % Marge% Marge
{row.codein}{row.libelle.trim()}{row.fournisseur} + {row.codein}{row.libelle.trim()}{row.fournisseur} {row.nomenclature_code ? {row.nomenclature_code} : — } + {row.qte292 > 0 ? formatQte(row.qte292) : —} + {row.ca292 > 0 ? formatCA(row.ca292) : —} + {row.ca292 > 0 ? formatPct(row.ca292, row.marge292) : ""} + {row.stock292 > 0 ? formatQte(row.stock292) : —} + {row.qte579 > 0 ? formatQte(row.qte579) : —} + {row.ca579 > 0 ? formatCA(row.ca579) : —} + {row.ca579 > 0 ? formatPct(row.ca579, row.marge579) : ""} + {row.stock579 > 0 ? formatQte(row.stock579) : —} + {row.qteTotal > 0 ? formatQte(row.qteTotal) : —} + {row.caTotal > 0 ? formatCA(row.caTotal) : —} + {row.caTotal > 0 ? formatPct(row.caTotal, row.margeTotal) : ""} + {row.stockTotal > 0 ? formatQte(row.stockTotal) : 0}
{formatQte(totals.qte292)}{formatCA(totals.ca292)}{formatPct(totals.ca292, totals.marge292)}{formatQte(totals.stock292)}{formatQte(totals.qte579)}{formatCA(totals.ca579)}{formatPct(totals.ca579, totals.marge579)}{formatQte(totals.stock579)}{formatQte(totals.qteTotal)}{formatCA(totals.caTotal)}{formatPct(totals.caTotal, totals.margeTotal)}{formatQte(totals.stockTotal)}{formatCA(totals.ca292)}{formatPct(totals.ca292, totals.marge292)}{formatQte(totals.stock292)}{formatQte(totals.qte579)}{formatCA(totals.ca579)}{formatPct(totals.ca579, totals.marge579)}{formatQte(totals.stock579)}{formatQte(totals.qteTotal)}{formatCA(totals.caTotal)}{formatPct(totals.caTotal, totals.margeTotal)}{formatQte(totals.stockTotal)}