소스 검색

update

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui 1 년 전
부모
커밋
92b4994115
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -2
      src/components/CostAndExpenseReport/CostAndExpenseReport.tsx
  2. +2
    -1
      src/components/ProjectCompletionReport/ProjectCompletionReport.tsx

+ 2
- 2
src/components/CostAndExpenseReport/CostAndExpenseReport.tsx 파일 보기

@@ -72,7 +72,7 @@ const CostAndExpenseReport: React.FC<Props> = ({ team, customer, subsidiary, nee
let postData: CostAndExpenseReportRequest = {
teamId: null,
clientId: null,
budgetPercentage: null,
budgetPercentage: 0.99,
type: "all"
}
console.log(query.budgetPercentage)
@@ -88,7 +88,7 @@ const CostAndExpenseReport: React.FC<Props> = ({ team, customer, subsidiary, nee
postData.type = customerIndex >= 0 ? "client" : subsidiaryIndex >= 0 ? "subsidiary" : "all"
}
if (Boolean(query.budgetPercentage)) {
postData.budgetPercentage = query.budgetPercentage/100
postData.budgetPercentage = query.budgetPercentage / 100
}
console.log(postData)
const response = await fetchCostAndExpenseReport(postData)


+ 2
- 1
src/components/ProjectCompletionReport/ProjectCompletionReport.tsx 파일 보기

@@ -57,13 +57,14 @@ const ProjectCompletionReport: React.FC<Props> = (
endDate: dayjs().format(INPUT_DATE_FORMAT).toString(),
outstanding: query.outstanding && query.outstanding === "Outstanding Accounts Receivable"
};
console.log(query)
if (query.startDateTo && query.startDateTo.length > 0) {
postData.endDate = query.startDateTo;
}
if (teamId) {
postData.teamId = teamId
}
if (query.startDateFrom && query.startDateFrom.length > 0) {
if (query.startDate && query.startDate.length > 0) {
postData.startDate = query.startDate;
}
console.log(postData)


불러오는 중...
취소
저장