diff --git a/src/routes/stocks/[tickerID]/financials/+page.svelte b/src/routes/stocks/[tickerID]/financials/+page.svelte
index d0909333..15184e7f 100644
--- a/src/routes/stocks/[tickerID]/financials/+page.svelte
+++ b/src/routes/stocks/[tickerID]/financials/+page.svelte
@@ -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"}
- {"FY" + cash?.calendarYear?.slice(-2)}
+ {"FY" + cash?.fiscalYear?.slice(-2)}
|
{:else}
{"FY" +
- cash?.calendarYear?.slice(-2) +
+ cash?.fiscalYear?.slice(-2) +
" " +
cash?.period}
|
diff --git a/src/routes/stocks/[tickerID]/financials/balance-sheet/+page.svelte b/src/routes/stocks/[tickerID]/financials/balance-sheet/+page.svelte
index faec1db5..ddf312c9 100644
--- a/src/routes/stocks/[tickerID]/financials/balance-sheet/+page.svelte
+++ b/src/routes/stocks/[tickerID]/financials/balance-sheet/+page.svelte
@@ -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"}
- {"FY" + cash?.calendarYear?.slice(-2)}
+ {"FY" + cash?.fiscalYear?.slice(-2)}
|
{:else}
{"FY" +
- cash?.calendarYear?.slice(-2) +
+ cash?.fiscalYear?.slice(-2) +
" " +
cash?.period}
|
diff --git a/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte b/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte
index f4907ea4..ade1e8ab 100644
--- a/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte
+++ b/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte
@@ -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"}
- {"FY" + cash?.calendarYear?.slice(-2)}
+ {"FY" + cash?.fiscalYear?.slice(-2)}
|
{:else}
{"FY" +
- cash?.calendarYear?.slice(-2) +
+ cash?.fiscalYear?.slice(-2) +
" " +
cash?.period}
|
diff --git a/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte b/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte
index 5a46c031..64232f61 100644
--- a/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte
+++ b/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte
@@ -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"}
- {"FY" + cash?.calendarYear?.slice(-2)}
+ {"FY" + cash?.fiscalYear?.slice(-2)}
|
{:else}
{"FY" +
- cash?.calendarYear?.slice(-2) +
+ cash?.fiscalYear?.slice(-2) +
" " +
cash?.period}
|