Merge branch 'release/v1.32.1'
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard"
|
NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard"
|
||||||
NEXT_PUBLIC_API_VERSION = "1.32.0"
|
NEXT_PUBLIC_API_VERSION = "1.32.1"
|
||||||
NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa"
|
NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa"
|
||||||
NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"
|
NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const ReferredCharts = ({reportList}) => {
|
|||||||
</Box>
|
</Box>
|
||||||
<Grid container sx={{width: "100%"}}>
|
<Grid container sx={{width: "100%"}}>
|
||||||
{innerObject.map((item, index) => {
|
{innerObject.map((item, index) => {
|
||||||
let percentage = item.total_budget !== 0 ? item.total_amount / item.total_budget * 100 : 0;
|
let percentage = item.total_budget !== 0 ? item.total_amount / (item.total_budget) * 100 : 0;
|
||||||
return (
|
return (
|
||||||
<Grid key={index} item xs={12} md={6} sx={{textAlign: "center"}}>
|
<Grid key={index} item xs={12} md={6} sx={{textAlign: "center"}}>
|
||||||
<Box>
|
<Box>
|
||||||
@@ -40,12 +40,13 @@ const ReferredCharts = ({reportList}) => {
|
|||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<RadialBarSemiCircularChart data={Math.round(percentage)}
|
<RadialBarSemiCircularChart
|
||||||
formatter={(val) => `${val}%`}
|
data={Math.round(percentage > 100 ? 100 : percentage)}
|
||||||
label={t("reports.dynamic_label_referred", {
|
formatter={(val) => `${Math.round(percentage)}%`}
|
||||||
count: (item.count).toLocaleString("en"),
|
label={t("reports.dynamic_label_referred", {
|
||||||
total_amount: (item.total_amount / 1000000).toLocaleString("en")
|
count: (item.count).toLocaleString("en"),
|
||||||
})}/>
|
total_amount: (item.total_amount / 1000000).toLocaleString("en")
|
||||||
|
})}/>
|
||||||
</Grid>
|
</Grid>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
Reference in New Issue
Block a user