|
@@ -39,7 +39,7 @@ const ProjectCompletionReport: React.FC<Props> = ( |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: t("Type"), |
|
|
label: t("Type"), |
|
|
paramName: "Outstanding", |
|
|
|
|
|
|
|
|
paramName: "outstanding", |
|
|
type: "select", |
|
|
type: "select", |
|
|
needAll: false, |
|
|
needAll: false, |
|
|
options: outstandingList |
|
|
options: outstandingList |
|
@@ -57,7 +57,7 @@ const ProjectCompletionReport: React.FC<Props> = ( |
|
|
let postData: ProjectCompletionReportRequest = { |
|
|
let postData: ProjectCompletionReportRequest = { |
|
|
startDate: "", |
|
|
startDate: "", |
|
|
endDate: dayjs().format(INPUT_DATE_FORMAT).toString(), |
|
|
endDate: dayjs().format(INPUT_DATE_FORMAT).toString(), |
|
|
oustanding: false |
|
|
|
|
|
|
|
|
outstanding: false |
|
|
}; |
|
|
}; |
|
|
if (query.endDate && query.endDate.length > 0) { |
|
|
if (query.endDate && query.endDate.length > 0) { |
|
|
postData.endDate = query.endDate; |
|
|
postData.endDate = query.endDate; |
|
@@ -68,7 +68,7 @@ const ProjectCompletionReport: React.FC<Props> = ( |
|
|
setError(t("Start Date cant be empty")); |
|
|
setError(t("Start Date cant be empty")); |
|
|
} else { |
|
|
} else { |
|
|
postData.startDate = query.startDate; |
|
|
postData.startDate = query.startDate; |
|
|
if (query.Outstanding && query.Outstanding === "Outstanding Accounts Receivable") { |
|
|
|
|
|
|
|
|
if (query.outstanding && query.outstanding === "Outstanding Accounts Receivable") { |
|
|
// outstanding report |
|
|
// outstanding report |
|
|
postData.outstanding = true |
|
|
postData.outstanding = true |
|
|
} |
|
|
} |
|
|