downloadReport

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-21 15:15:52 +07:00
parent a7a76c6d3f
commit 487ecd852a
3 changed files with 51 additions and 20 deletions

View file

@ -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);