downloadReport
This commit is contained in:
parent
a7a76c6d3f
commit
487ecd852a
3 changed files with 51 additions and 20 deletions
|
|
@ -309,15 +309,16 @@ function fetchDataPeriodNew() {
|
|||
}
|
||||
|
||||
function onClickDownload(data: DataOption) {
|
||||
showLoader();
|
||||
if (data.id === "gov-06") {
|
||||
const formData = {
|
||||
type: "HAFT",
|
||||
startDate:
|
||||
data.id === "gov-06"
|
||||
props?.roundFilter?.shortCode === "APR"
|
||||
? `${props?.roundFilter?.year - 1}-10-01`
|
||||
: `${props?.roundFilter?.year}-04-01`,
|
||||
endDate:
|
||||
data.id === "gov-06"
|
||||
props?.roundFilter?.shortCode === "APR"
|
||||
? `${props?.roundFilter?.year}-03-31`
|
||||
: `${props?.roundFilter?.year}-09-30`,
|
||||
};
|
||||
|
|
@ -335,7 +336,6 @@ function onClickDownload(data: DataOption) {
|
|||
});
|
||||
} else {
|
||||
if (props.rootId && props.periodId) {
|
||||
showLoader();
|
||||
console.log("id==>", data.id);
|
||||
console.log("rootId==>", props.rootId);
|
||||
console.log("periodId==>", props.periodId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue