complete excel export in reports page

This commit is contained in:
2024-01-20 15:43:13 +03:30
parent 425cdcb87d
commit 0f08d1a573
5 changed files with 68 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ const FunctionalityCharts = ({reportList}) => {
<Grid container sx={{width: "100%"}}>
{
Object.entries(reportList).map(([entryKey, innerObject]) => {
let percentage = innerObject.total !== 0 ? (innerObject.total - innerObject.pending) / innerObject.total * 100 : 0;
let percentage = innerObject.total !== 0 && innerObject.pending !== 64 ? (innerObject.total - innerObject.pending) / innerObject.total * 100 : 0;
const ItemName = DataItemsName.find(item => item.id === entryKey).name;
return (
<Grid key={entryKey} item xs={12} sm={10} md={6} xl={3}