瀏覽代碼

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 年之前
父節點
當前提交
f1b0fd34ef
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      src/app/api/reports/index.ts
  2. +3
    -3
      src/components/ProjectCompletionReport/ProjectCompletionReport.tsx

+ 1
- 1
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 {


+ 3
- 3
src/components/ProjectCompletionReport/ProjectCompletionReport.tsx 查看文件

@@ -39,7 +39,7 @@ const ProjectCompletionReport: React.FC<Props> = (
},
{
label: t("Type"),
paramName: "Outstanding",
paramName: "outstanding",
type: "select",
needAll: false,
options: outstandingList
@@ -57,7 +57,7 @@ const ProjectCompletionReport: React.FC<Props> = (
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<Props> = (
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
}


Loading…
取消
儲存