홈 화면 month api 수정

This commit is contained in:
focp212@naver.com
2025-10-20 17:54:41 +09:00
parent 948657db3f
commit 61c7e6c8f7
10 changed files with 385 additions and 119 deletions

View File

@@ -44,6 +44,7 @@ export const BoxContainer2 = () => {
let previousMonthAmount = rs.sales.previousMonthAmount;
if(currentMonthAmount && previousMonthAmount){
let increase = (currentMonthAmount - previousMonthAmount) / previousMonthAmount * 100;
increase = Math.round(increase * 100) / 100;
setSalesIncrease(increase);
}
@@ -51,6 +52,7 @@ export const BoxContainer2 = () => {
let previousMonthSettlementAmount = rs.settlement.previousMonthSettlementAmount;
if(currentMonthSettlementAmount && previousMonthSettlementAmount){
let increase = (currentMonthSettlementAmount - previousMonthSettlementAmount) / previousMonthSettlementAmount * 100;
increase = Math.round(increase * 100) / 100;
setSettlementIncrease(increase);
}
});
@@ -72,7 +74,7 @@ export const BoxContainer2 = () => {
};
useEffect(() => {
// callMonth();
callMonth();
callOverview();
}, []);