mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
display specific comparison details in the period over period title within the tooltip
This commit is contained in:
@@ -20,7 +20,7 @@ import { type NameNumeralValue, itemAndIndex } from '@/core/base.ts';
|
||||
import { TextDirection } from '@/core/text.ts';
|
||||
import type { ColorStyleValue } from '@/core/color.ts';
|
||||
import { ThemeType } from '@/core/theme.ts';
|
||||
import { AccountBalanceTrendChartType } from '@/core/statistics.ts';
|
||||
import { AccountBalanceTrendChartType, ChartDateAggregationType } from '@/core/statistics.ts';
|
||||
import { DEFAULT_CHART_COLORS } from '@/consts/color.ts';
|
||||
|
||||
import { isArray } from '@/lib/common.ts';
|
||||
@@ -241,7 +241,17 @@ const chartOptions = computed<object>(() => {
|
||||
}
|
||||
|
||||
if (periodOverPeriodDataItemDisplayItems && periodOverPeriodDataItemDisplayItems.length) {
|
||||
tooltip += `<td><span class="ms-5" style="float: inline-end">${tt('Period-over-Period')}</span></td>`;
|
||||
let periodOverPeriodText = tt('Period-over-Period');
|
||||
|
||||
if (props.dateAggregationType === ChartDateAggregationType.Quarter.type) {
|
||||
periodOverPeriodText = tt('Quarter-over-Quarter');
|
||||
} else if (props.dateAggregationType === ChartDateAggregationType.Month.type) {
|
||||
periodOverPeriodText = tt('Month-over-Month');
|
||||
} else if (props.dateAggregationType === ChartDateAggregationType.Day.type) {
|
||||
periodOverPeriodText = tt('Day-over-Day');
|
||||
}
|
||||
|
||||
tooltip += `<td><span class="ms-5" style="float: inline-end">${periodOverPeriodText}</span></td>`;
|
||||
}
|
||||
|
||||
tooltip += '</tr>';
|
||||
|
||||
@@ -121,7 +121,15 @@ const allTooltipExtraColumnNames = computed<string[]>(() => {
|
||||
}
|
||||
|
||||
if (props.showPeriodOverPeriod) {
|
||||
extraColumnNames.push(tt('Period-over-Period'));
|
||||
if (props.dateAggregationType === ChartDateAggregationType.Quarter.type) {
|
||||
extraColumnNames.push(tt('Quarter-over-Quarter'));
|
||||
} else if (props.dateAggregationType === ChartDateAggregationType.Month.type) {
|
||||
extraColumnNames.push(tt('Month-over-Month'));
|
||||
} else if (props.dateAggregationType === ChartDateAggregationType.Day.type && props.chartMode === 'daily') {
|
||||
extraColumnNames.push(tt('Day-over-Day'));
|
||||
} else {
|
||||
extraColumnNames.push(tt('Period-over-Period'));
|
||||
}
|
||||
}
|
||||
|
||||
return extraColumnNames;
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Nach Geschäftsjahr aggregieren",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Jahresvergleich",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Periodenvergleich",
|
||||
"Filter Accounts": "Konten filtern",
|
||||
"Filter Transaction Categories": "Transaktionskategorien filtern",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Aggregate by Fiscal Year",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Filter Accounts",
|
||||
"Filter Transaction Categories": "Filter Transaction Categories",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Agregado por Año Fiscal",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Filtrar cuentas",
|
||||
"Filter Transaction Categories": "Filtrar categorías de transacciones",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Agréger par année fiscale",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Filtrer les comptes",
|
||||
"Filter Transaction Categories": "Filtrer les catégories de transaction",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Aggregate by Fiscal Year",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Filtra conti",
|
||||
"Filter Transaction Categories": "Filtra categorie transazione",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Aggregate by Fiscal Year",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "口座で絞り込み",
|
||||
"Filter Transaction Categories": "取引カテゴリで絞り込み",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "ಹಣಕಾಸು ವರ್ಷವಾರು ಒಕ್ಕೂಟ",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "ಖಾತೆಗಳನ್ನು ಫಿಲ್ಟರ್ ಮಾಡಿ",
|
||||
"Filter Transaction Categories": "ವಹಿವಾಟು ವರ್ಗಗಳನ್ನು ಫಿಲ್ಟರ್ ಮಾಡಿ",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "회계 연도별 집계",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "계좌 필터",
|
||||
"Filter Transaction Categories": "거래 범주 필터",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Groeperen per boekjaar",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Rekeningen filteren",
|
||||
"Filter Transaction Categories": "Transactiecategorieën filteren",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Agregar por Ano Fiscal",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Filtrar Contas",
|
||||
"Filter Transaction Categories": "Filtrar Categorias de Transações",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Агрегировать по фискальным годам",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Фильтровать счета",
|
||||
"Filter Transaction Categories": "Фильтровать категории транзакций",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Združi po fiskalnih letih",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Filtriraj račune",
|
||||
"Filter Transaction Categories": "Filtriraj kategorije transakcij",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "நிதி ஆண்டுவாரி கூட்டமைப்பு",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "கணக்குகளை வடிகட்டி செய்",
|
||||
"Filter Transaction Categories": "பரிவர்த்தனை வகைகளை வடிகட்டி செய்",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "รวมตามปีงบประมาณ",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "กรองบัญชี",
|
||||
"Filter Transaction Categories": "กรองหมวดรายการ",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Mali Yıla Göre Topla",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Hesapları Filtrele",
|
||||
"Filter Transaction Categories": "İşlem Kategorilerini Filtrele",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Aggregate by Fiscal Year",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Фільтрувати рахунки",
|
||||
"Filter Transaction Categories": "Фільтрувати категорії транзакцій",
|
||||
|
||||
@@ -2216,6 +2216,9 @@
|
||||
"Aggregate by Fiscal Year": "Aggregate by Fiscal Year",
|
||||
"Aggregate by Billing Cycle": "Aggregate by Billing Cycle",
|
||||
"Year-over-Year": "Year-over-Year",
|
||||
"Quarter-over-Quarter": "Quarter-over-Quarter",
|
||||
"Month-over-Month": "Month-over-Month",
|
||||
"Day-over-Day": "Day-over-Day",
|
||||
"Period-over-Period": "Period-over-Period",
|
||||
"Filter Accounts": "Lọc tài khoản",
|
||||
"Filter Transaction Categories": "Lọc danh mục giao dịch",
|
||||
|
||||
@@ -2215,7 +2215,10 @@
|
||||
"Aggregate by Year": "按年聚合",
|
||||
"Aggregate by Fiscal Year": "按财年聚合",
|
||||
"Aggregate by Billing Cycle": "按账单周期聚合",
|
||||
"Year-over-Year": "同比",
|
||||
"Year-over-Year": "年同比",
|
||||
"Quarter-over-Quarter": "季环比",
|
||||
"Month-over-Month": "月环比",
|
||||
"Day-over-Day": "日环比",
|
||||
"Period-over-Period": "环比",
|
||||
"Filter Accounts": "过滤账户",
|
||||
"Filter Transaction Categories": "过滤交易分类",
|
||||
|
||||
@@ -2215,7 +2215,10 @@
|
||||
"Aggregate by Year": "依年份彙整",
|
||||
"Aggregate by Fiscal Year": "依財年彙整",
|
||||
"Aggregate by Billing Cycle": "依帳單週期彙整",
|
||||
"Year-over-Year": "同比",
|
||||
"Year-over-Year": "年同比",
|
||||
"Quarter-over-Quarter": "季環比",
|
||||
"Month-over-Month": "月環比",
|
||||
"Day-over-Day": "日環比",
|
||||
"Period-over-Period": "環比",
|
||||
"Filter Accounts": "篩選帳戶",
|
||||
"Filter Transaction Categories": "篩選交易分類",
|
||||
|
||||
Reference in New Issue
Block a user