bugfixing
This commit is contained in:
parent
7956ecfd5a
commit
a1f71dbff5
@ -180,11 +180,11 @@
|
||||
switch (timeFrame) {
|
||||
case "5Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 5,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 5,
|
||||
);
|
||||
case "10Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 10,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 10,
|
||||
);
|
||||
default:
|
||||
return fullStatement;
|
||||
@ -203,7 +203,7 @@
|
||||
|
||||
let properties = [
|
||||
{
|
||||
key: filterRule === "annual" ? "calendarYear" : "date",
|
||||
key: filterRule === "annual" ? "fiscalYear" : "date",
|
||||
label: filterRule === "annual" ? "Year" : "Quarter",
|
||||
},
|
||||
];
|
||||
@ -264,7 +264,7 @@
|
||||
const xList = [];
|
||||
for (let i = financialData.length - 1; i >= 0; i--) {
|
||||
const statement = financialData[i];
|
||||
const year = statement.calendarYear.slice(-2);
|
||||
const year = statement.fiscalYear.slice(-2);
|
||||
const quarter = statement.period;
|
||||
xList.push(
|
||||
filterRule === "annual" ? "FY" + year : "FY" + year + " " + quarter,
|
||||
@ -514,12 +514,12 @@
|
||||
{#each financialData as cash}
|
||||
{#if filterRule === "annual"}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" + cash?.calendarYear?.slice(-2)}
|
||||
{"FY" + cash?.fiscalYear?.slice(-2)}
|
||||
</td>
|
||||
{:else}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" +
|
||||
cash?.calendarYear?.slice(-2) +
|
||||
cash?.fiscalYear?.slice(-2) +
|
||||
" " +
|
||||
cash?.period}
|
||||
</td>
|
||||
|
||||
@ -217,11 +217,11 @@
|
||||
switch (timeFrame) {
|
||||
case "5Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 5,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 5,
|
||||
);
|
||||
case "10Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 10,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 10,
|
||||
);
|
||||
default:
|
||||
return fullStatement;
|
||||
@ -240,7 +240,7 @@
|
||||
|
||||
let properties = [
|
||||
{
|
||||
key: filterRule === "annual" ? "calendarYear" : "date",
|
||||
key: filterRule === "annual" ? "fiscalYear" : "date",
|
||||
label: filterRule === "annual" ? "Year" : "Quarter",
|
||||
},
|
||||
];
|
||||
@ -300,7 +300,7 @@
|
||||
const xList = [];
|
||||
for (let i = financialData.length - 1; i >= 0; i--) {
|
||||
const statement = financialData[i];
|
||||
const year = statement.calendarYear.slice(-2);
|
||||
const year = statement.fiscalYear.slice(-2);
|
||||
const quarter = statement.period;
|
||||
xList.push(
|
||||
filterRule === "annual" ? "FY" + year : "FY" + year + " " + quarter,
|
||||
@ -550,12 +550,12 @@
|
||||
{#each financialData as cash}
|
||||
{#if filterRule === "annual"}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" + cash?.calendarYear?.slice(-2)}
|
||||
{"FY" + cash?.fiscalYear?.slice(-2)}
|
||||
</td>
|
||||
{:else}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" +
|
||||
cash?.calendarYear?.slice(-2) +
|
||||
cash?.fiscalYear?.slice(-2) +
|
||||
" " +
|
||||
cash?.period}
|
||||
</td>
|
||||
|
||||
@ -180,11 +180,11 @@
|
||||
switch (timeFrame) {
|
||||
case "5Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 5,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 5,
|
||||
);
|
||||
case "10Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 10,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 10,
|
||||
);
|
||||
default:
|
||||
return fullStatement;
|
||||
@ -202,7 +202,7 @@
|
||||
|
||||
let properties = [
|
||||
{
|
||||
key: filterRule === "annual" ? "calendarYear" : "date",
|
||||
key: filterRule === "annual" ? "fiscalYear" : "date",
|
||||
label: filterRule === "annual" ? "Year" : "Quarter",
|
||||
},
|
||||
];
|
||||
@ -262,7 +262,7 @@
|
||||
const xList = [];
|
||||
for (let i = financialData.length - 1; i >= 0; i--) {
|
||||
const statement = financialData[i];
|
||||
const year = statement.calendarYear.slice(-2);
|
||||
const year = statement.fiscalYear.slice(-2);
|
||||
const quarter = statement.period;
|
||||
xList.push(
|
||||
filterRule === "annual" ? "FY" + year : "FY" + year + " " + quarter,
|
||||
@ -512,12 +512,12 @@
|
||||
{#each financialData as cash}
|
||||
{#if filterRule === "annual"}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" + cash?.calendarYear?.slice(-2)}
|
||||
{"FY" + cash?.fiscalYear?.slice(-2)}
|
||||
</td>
|
||||
{:else}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" +
|
||||
cash?.calendarYear?.slice(-2) +
|
||||
cash?.fiscalYear?.slice(-2) +
|
||||
" " +
|
||||
cash?.period}
|
||||
</td>
|
||||
|
||||
@ -169,11 +169,11 @@
|
||||
switch (timeFrame) {
|
||||
case "5Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 5,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 5,
|
||||
);
|
||||
case "10Y":
|
||||
return fullStatement?.filter(
|
||||
(item) => currentYear - parseInt(item?.calendarYear) < 10,
|
||||
(item) => currentYear - parseInt(item?.fiscalYear) < 10,
|
||||
);
|
||||
default:
|
||||
return fullStatement;
|
||||
@ -191,7 +191,7 @@
|
||||
|
||||
let properties = [
|
||||
{
|
||||
key: filterRule === "annual" ? "calendarYear" : "date",
|
||||
key: filterRule === "annual" ? "fiscalYear" : "date",
|
||||
label: filterRule === "annual" ? "Year" : "Quarter",
|
||||
},
|
||||
];
|
||||
@ -251,7 +251,7 @@
|
||||
const xList = [];
|
||||
for (let i = financialData.length - 1; i >= 0; i--) {
|
||||
const statement = financialData[i];
|
||||
const year = statement.calendarYear.slice(-2);
|
||||
const year = statement.fiscalYear.slice(-2);
|
||||
const quarter = statement.period;
|
||||
xList.push(
|
||||
filterRule === "annual" ? "FY" + year : "FY" + year + " " + quarter,
|
||||
@ -501,12 +501,12 @@
|
||||
{#each financialData as cash}
|
||||
{#if filterRule === "annual"}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" + cash?.calendarYear?.slice(-2)}
|
||||
{"FY" + cash?.fiscalYear?.slice(-2)}
|
||||
</td>
|
||||
{:else}
|
||||
<td class=" font-semibold text-sm text-end">
|
||||
{"FY" +
|
||||
cash?.calendarYear?.slice(-2) +
|
||||
cash?.fiscalYear?.slice(-2) +
|
||||
" " +
|
||||
cash?.period}
|
||||
</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user