mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
add top 5 amount share and transactions for 80% of amount to value metric in insights explorer
This commit is contained in:
@@ -70,6 +70,7 @@ const props = defineProps<{
|
||||
displayOrdersField?: string;
|
||||
translateName?: boolean;
|
||||
amountValue?: boolean;
|
||||
percentValue?: boolean;
|
||||
defaultCurrency?: string;
|
||||
enableClickItem?: boolean;
|
||||
tooltipExtraColumnNames?: string[];
|
||||
@@ -477,7 +478,7 @@ function getItemName(name: string): string {
|
||||
}
|
||||
|
||||
function getDisplayValue(value: number): string {
|
||||
if (props.oneHundredPercentStacked) {
|
||||
if (props.oneHundredPercentStacked || props.percentValue) {
|
||||
return formatPercentToLocalizedNumerals(value, 2, '<0.01');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user