Ver a proveniência

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek há 1 ano
ascendente
cometimento
f1b0fd34ef
2 ficheiros alterados com 4 adições e 4 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

@@ -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
}


Carregando…
Cancelar
Guardar