|
|
@@ -80,9 +80,10 @@ const GenerateProjectPotentialDelayReport: React.FC<Props> = ({ teams, clients, |
|
|
|
|
|
|
|
const response = await fetchProjectPotentialDelayReport({ |
|
|
|
teamId: typeof query.team === "number" ? query.team : "All", |
|
|
|
clientId: typeof query.client === "number" ? clientIndex >= 0 ? clients[clientIndex].id : subsidiaries[subsidiaryIndex].id : "All", |
|
|
|
clientId: clientIndex >= 0 ? clients[clientIndex].id : subsidiaryIndex >= 0 ? subsidiaries[subsidiaryIndex].id : "All", |
|
|
|
numberOfDays: parseInt(query.numberOfDays), |
|
|
|
projectCompletion: parseInt(query.projectCompletion) |
|
|
|
projectCompletion: parseInt(query.projectCompletion), |
|
|
|
type: clientIndex >= 0 ? "client" : subsidiaryIndex >= 0 ? "subsidiary" : "All", |
|
|
|
}) |
|
|
|
if (response) { |
|
|
|
downloadFile(new Uint8Array(response.blobValue), response.filename!!) |
|
|
|