diff --git a/src/app/api/reports/index.ts b/src/app/api/reports/index.ts index 7779e14..1648111 100644 --- a/src/app/api/reports/index.ts +++ b/src/app/api/reports/index.ts @@ -69,7 +69,7 @@ export interface LateStartReportRequest { export interface ProjectCompletionReportFilter { startDate: String; startDateTo: String; - Outstanding: String; + outstanding: String; } export interface ProjectCompletionReportRequest { diff --git a/src/components/ProjectCompletionReport/ProjectCompletionReport.tsx b/src/components/ProjectCompletionReport/ProjectCompletionReport.tsx index 397c27a..66bf505 100644 --- a/src/components/ProjectCompletionReport/ProjectCompletionReport.tsx +++ b/src/components/ProjectCompletionReport/ProjectCompletionReport.tsx @@ -39,7 +39,7 @@ const ProjectCompletionReport: React.FC = ( }, { label: t("Type"), - paramName: "Outstanding", + paramName: "outstanding", type: "select", needAll: false, options: outstandingList @@ -57,7 +57,7 @@ const ProjectCompletionReport: React.FC = ( let postData: ProjectCompletionReportRequest = { startDate: "", endDate: dayjs().format(INPUT_DATE_FORMAT).toString(), - oustanding: false + outstanding: false }; if (query.endDate && query.endDate.length > 0) { postData.endDate = query.endDate; @@ -68,7 +68,7 @@ const ProjectCompletionReport: React.FC = ( setError(t("Start Date cant be empty")); } else { postData.startDate = query.startDate; - if (query.Outstanding && query.Outstanding === "Outstanding Accounts Receivable") { + if (query.outstanding && query.outstanding === "Outstanding Accounts Receivable") { // outstanding report postData.outstanding = true }